Commit c7f1bbde by lixinming

no message

parent ecb28620
...@@ -222,6 +222,16 @@ export async function individualMemberDetails({id}) { ...@@ -222,6 +222,16 @@ export async function individualMemberDetails({id}) {
return successResult(); return successResult();
} }
export async function systemBase({userId}) {
let userInfo = await findOnce(TABLEENUM.用户表, {userId});
if (!userInfo || !userInfo.userId) throw new BizError(ERRORENUM.目标数据不存在);
let dataInfo = {
isAdmin:userInfo.isAdmin == STATE.,
name:userInfo.name,
userId:userInfo.userId,
token:userInfo.token,
adminLv:userInfo.adminLv
}
return {dataInfo}
}
\ No newline at end of file
...@@ -341,7 +341,14 @@ export const Config = { ...@@ -341,7 +341,14 @@ export const Config = {
} }
], ],
bindBiz:memberBiz.individualMemberUpdate bindBiz:memberBiz.individualMemberUpdate
} },
{
apiName:"获取个人基础信息",
subUrl:'/memberdb/systembase',
param:[],
bindBiz:memberBiz.systemBase
},
], ],
"审批管理":[ "审批管理":[
{ {
......
...@@ -939,7 +939,6 @@ export const Config = { ...@@ -939,7 +939,6 @@ export const Config = {
bindBiz:wenZiZiLiaoBiz.update bindBiz:wenZiZiLiaoBiz.update
}, },
], ],
"分支机构_机构管理_工作动态":[ "分支机构_机构管理_工作动态":[
{ {
apiName:"列表", apiName:"列表",
......
...@@ -18,7 +18,7 @@ import * as asyncHandler from 'express-async-handler'; ...@@ -18,7 +18,7 @@ import * as asyncHandler from 'express-async-handler';
import { payCallback } from "../biz/member/cost"; import { payCallback } from "../biz/member/cost";
import { checkUser, notCheck } from "../middleware/user"; import { checkUser, notCheck } from "../middleware/user";
const Look = true;//true更新文档 const Look = false;//true更新文档
export async function setRouter(httpServer){ export async function setRouter(httpServer){
if (Look) { if (Look) {
...@@ -30,15 +30,15 @@ export async function setRouter(httpServer){ ...@@ -30,15 +30,15 @@ export async function setRouter(httpServer){
await initDoc(orderRouter.FirstName, orderRouter.Config, orderRouter.FirstRouter);//会费相关 await initDoc(orderRouter.FirstName, orderRouter.Config, orderRouter.FirstRouter);//会费相关
await initDoc(costRouter.FirstName, costRouter.Config, costRouter.FirstRouter);//支付 await initDoc(costRouter.FirstName, costRouter.Config, costRouter.FirstRouter);//支付
} }
await analysisRouter(httpServer, portalRouter.Config, portalRouter.FirstRouter, false);//网站编辑 analysisRouter(httpServer, portalRouter.Config, portalRouter.FirstRouter, false);//网站编辑
await analysisRouter(httpServer, publicRouter.Config, publicRouter.FirstRouter, false);//公用组件 analysisRouter(httpServer, publicRouter.Config, publicRouter.FirstRouter, false);//公用组件
await analysisRouter(httpServer, memberRouter.Config, memberRouter.FirstRouter, true);//用户路由 analysisRouter(httpServer, memberRouter.Config, memberRouter.FirstRouter, true);//用户路由
await analysisRouter(httpServer, officalWebsiteRouter.Config, officalWebsiteRouter.FirstRouter, false);//官网路由 analysisRouter(httpServer, officalWebsiteRouter.Config, officalWebsiteRouter.FirstRouter, false);//官网路由
await analysisRouter(httpServer, orderRouter.Config, orderRouter.FirstRouter, true);//会费相关 analysisRouter(httpServer, orderRouter.Config, orderRouter.FirstRouter, true);//会费相关
await analysisRouter(httpServer, costRouter.Config, costRouter.FirstRouter, true);//支付 analysisRouter(httpServer, costRouter.Config, costRouter.FirstRouter, true);//支付
} }
async function analysisRouter(httpServer, config, firstRouter, haveMiddleware) { function analysisRouter(httpServer, config, firstRouter, haveMiddleware) {
for (let modelKey in config) { for (let modelKey in config) {
config[modelKey].forEach(info => { config[modelKey].forEach(info => {
let {apiName, defaultParam, subUrl, param, bindBiz, notMiddleware} = info; let {apiName, defaultParam, subUrl, param, bindBiz, notMiddleware} = info;
...@@ -84,9 +84,6 @@ async function analysisRouter(httpServer, config, firstRouter, haveMiddleware) { ...@@ -84,9 +84,6 @@ async function analysisRouter(httpServer, config, firstRouter, haveMiddleware) {
} }
async function allRouter(apiName, defaultParam, subUrl, param, bindBiz) {
}
export async function setAdditionalRouter(httpServer) { export async function setAdditionalRouter(httpServer) {
httpServer.post('/pay/wechart/callback', asyncHandler(async (req, res) => { httpServer.post('/pay/wechart/callback', asyncHandler(async (req, res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment