Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjxcxServer
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
zjxcxServer
Commits
e07fd5c1
Commit
e07fd5c1
authored
Feb 10, 2023
by
lixinming
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://123.207.147.179:8888/node_server/zjxcxServer
parents
5fc514e9
e2b8e7c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
+16
-1
admin.ts
src/routers/admin.ts
+16
-1
No files found.
src/routers/admin.ts
View file @
e07fd5c1
...
...
@@ -7,6 +7,7 @@ import * as guanWeiHuiBiz from '../biz/guanWeiHui/user';
import
{
checkParamaterType
,
checkReqParam
}
from
'../util/tools'
;
import
{
BizError
}
from
'../util/bizError'
;
import
{
ERRORENUM
}
from
'../config/errorEnum'
;
import
{
monthTableList
}
from
'../biz/fuHuqQi/month'
;
export
function
setRouter
(
httpServer
)
{
...
...
@@ -14,7 +15,7 @@ export function setRouter(httpServer) {
httpServer
.
post
(
'/admin/login'
,
asyncHandler
(
login
));
// /** 孵化器*/
httpServer
.
post
(
'/admin/fuhuaqi/baselist'
,
asyncHandler
(
fuHuaQiBaseList
));
// httpServer.post('/admin/fuhuaqi/monthoccupancyrate', asyncHandler(
));
httpServer
.
post
(
'/admin/fuhuaqi/monthoccupancyrate'
,
asyncHandler
(
getMonthList
));
httpServer
.
post
(
'/admin/fuhuaqi/userlist'
,
asyncHandler
(
getFuHuaQiUserList
));
httpServer
.
post
(
'/admin/fuhuaqi/updatestate'
,
asyncHandler
(
updateState
));
httpServer
.
post
(
'/admin/fuhuaqi/adduser'
,
asyncHandler
(
addUser
));
...
...
@@ -55,6 +56,20 @@ async function fuHuaQiBaseList(req, res) {
/**
* 后台管理 获取月度出租率信息列表
* @param req
* @param res
*/
async
function
getMonthList
(
req
,
res
)
{
let
reqConf
=
{
state
:
'Number'
,
year
:
'Number'
,
month
:
'Number'
,
page
:
'Number'
};
let
{
state
,
year
,
month
,
page
}
=
checkReqParam
(
reqConf
,
req
.
body
);
let
result
=
await
monthTableList
(
state
,
year
,
month
,
page
);
res
.
success
(
result
);
}
/**
* 后台管理 获取孵化器账号信息列表
* @param req
* @param 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