市北党建引领小程序初始化
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.7 KiB

var fly = require("./request.js")
module.exports = {
submitIntoparty: submitIntoparty,
getByLoginUser: getByLoginUser,
submitFlowparty: submitFlowparty,
submitKnightpionner: submitKnightpionner,
submitReportparty: submitReportparty,
getDeptTree: getDeptTree,
getUserInfo: getUserInfo,
getByIdCardAndName: getByIdCardAndName,
submitCentralhousehold:submitCentralhousehold,
getCentralhousehold:getCentralhousehold
}
// 我要入党提交接口
function submitIntoparty(para) {
return fly.post("app-user/intoparty/save", para)
}
// 获取社区信息
function getByLoginUser() {
return fly.get("sys/dept/party/getDeptTree")
}
//流动党员提交接口
function submitFlowparty(para) {
return fly.post("app-user/flowparty/save", para)
}
//城市观察员提交接口
function submitKnightpionner(para) {
return fly.post("app-user/knightpionner/save", para)
}
//在职党员提交接口
function submitReportparty(para) {
if(para.id){
return fly.post("app-user/reportparty/update", para)
}else {
return fly.post("app-user/reportparty/save", para)
}
}
//街道tree
function getDeptTree() {
return fly.get(`admin/dept/getAllDeptTree`)
//带有微网格
// return fly.get(`sys/dept/party/getDeptTree`)
}
function getUserInfo() {
return fly.get("app-user/user/getNamInfoById")
}
function getByIdCardAndName(para) {
return fly.post("app-user/reportparty/getByIdCardAndName", para)
}
// 党员中心户认证申请接口
function submitCentralhousehold(para) {
return fly.post("app-user/centralhousehold/save", para)
}
/**
* 获取党员中心户认证
*/
function getCentralhousehold(userId) {
return fly.get("app-user/centralhousehold/getByUserId")
}