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
cbf072f6
Commit
cbf072f6
authored
Feb 10, 2023
by
孙香冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
1b0947f1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
admin.ts
src/routers/admin.ts
+17
-2
No files found.
src/routers/admin.ts
View file @
cbf072f6
...
@@ -6,14 +6,15 @@ import * as financingBiz from '../biz/enterprise/financing';
...
@@ -6,14 +6,15 @@ import * as financingBiz from '../biz/enterprise/financing';
import
{
checkReqParam
}
from
'../util/tools'
;
import
{
checkReqParam
}
from
'../util/tools'
;
import
{
BizError
}
from
'../util/bizError'
;
import
{
BizError
}
from
'../util/bizError'
;
import
{
ERRORENUM
}
from
'../config/errorEnum'
;
import
{
ERRORENUM
}
from
'../config/errorEnum'
;
import
{
monthTableList
}
from
'../biz/fuHuqQi/month'
;
export
function
setRouter
(
httpServer
)
{
export
function
setRouter
(
httpServer
)
{
// /**登录 */
// /**登录 */
//
httpServer.post('/admin/login', asyncHandler(login));
httpServer
.
post
(
'/admin/login'
,
asyncHandler
(
login
));
// /** 孵化器*/
// /** 孵化器*/
httpServer
.
post
(
'/admin/fuhuaqi/baselist'
,
asyncHandler
(
fuHuaQiBaseList
));
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/userlist'
,
asyncHandler
(
getFuHuaQiUserList
));
httpServer
.
post
(
'/admin/fuhuaqi/updatestate'
,
asyncHandler
(
updateState
));
httpServer
.
post
(
'/admin/fuhuaqi/updatestate'
,
asyncHandler
(
updateState
));
httpServer
.
post
(
'/admin/fuhuaqi/adduser'
,
asyncHandler
(
addUser
));
httpServer
.
post
(
'/admin/fuhuaqi/adduser'
,
asyncHandler
(
addUser
));
...
@@ -57,6 +58,20 @@ async function fuHuaQiBaseList(req, res) {
...
@@ -57,6 +58,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 req
* @param res
* @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