Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wenHuaBu_adminServer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
wenHuaBu_adminServer
Commits
c7f1bbde
Commit
c7f1bbde
authored
Mar 21, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
ecb28620
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
15 deletions
+29
-15
member.ts
src/biz/member/member.ts
+13
-2
router.ts
src/routers/member/router.ts
+8
-1
router.ts
src/routers/portal/router.ts
+0
-1
router.ts
src/routers/router.ts
+8
-11
No files found.
src/biz/member/member.ts
View file @
c7f1bbde
...
@@ -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
src/routers/member/router.ts
View file @
c7f1bbde
...
@@ -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
},
],
],
"审批管理"
:[
"审批管理"
:[
{
{
...
...
src/routers/portal/router.ts
View file @
c7f1bbde
...
@@ -939,7 +939,6 @@ export const Config = {
...
@@ -939,7 +939,6 @@ export const Config = {
bindBiz
:
wenZiZiLiaoBiz
.
update
bindBiz
:
wenZiZiLiaoBiz
.
update
},
},
],
],
"分支机构_机构管理_工作动态"
:[
"分支机构_机构管理_工作动态"
:[
{
{
apiName
:
"列表"
,
apiName
:
"列表"
,
...
...
src/routers/router.ts
View file @
c7f1bbde
...
@@ -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
=
tru
e
;
//true更新文档
const
Look
=
fals
e
;
//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
);
//支付
}
}
a
wait
a
nalysisRouter
(
httpServer
,
portalRouter
.
Config
,
portalRouter
.
FirstRouter
,
false
);
//网站编辑
analysisRouter
(
httpServer
,
portalRouter
.
Config
,
portalRouter
.
FirstRouter
,
false
);
//网站编辑
a
wait
a
nalysisRouter
(
httpServer
,
publicRouter
.
Config
,
publicRouter
.
FirstRouter
,
false
);
//公用组件
analysisRouter
(
httpServer
,
publicRouter
.
Config
,
publicRouter
.
FirstRouter
,
false
);
//公用组件
a
wait
a
nalysisRouter
(
httpServer
,
memberRouter
.
Config
,
memberRouter
.
FirstRouter
,
true
);
//用户路由
analysisRouter
(
httpServer
,
memberRouter
.
Config
,
memberRouter
.
FirstRouter
,
true
);
//用户路由
a
wait
a
nalysisRouter
(
httpServer
,
officalWebsiteRouter
.
Config
,
officalWebsiteRouter
.
FirstRouter
,
false
);
//官网路由
analysisRouter
(
httpServer
,
officalWebsiteRouter
.
Config
,
officalWebsiteRouter
.
FirstRouter
,
false
);
//官网路由
a
wait
a
nalysisRouter
(
httpServer
,
orderRouter
.
Config
,
orderRouter
.
FirstRouter
,
true
);
//会费相关
analysisRouter
(
httpServer
,
orderRouter
.
Config
,
orderRouter
.
FirstRouter
,
true
);
//会费相关
a
wait
a
nalysisRouter
(
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
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment