Commit cbf072f6 by 孙香冬

no message

parent 1b0947f1
......@@ -6,14 +6,15 @@ import * as financingBiz from '../biz/enterprise/financing';
import { checkReqParam } from '../util/tools';
import { BizError } from '../util/bizError';
import { ERRORENUM } from '../config/errorEnum';
import { monthTableList } from '../biz/fuHuqQi/month';
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/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));
......@@ -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 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