Commit fd4079da by 孙香冬

no message

parent 0ae7ec49
...@@ -77,7 +77,7 @@ export async function homeData(uscc:string) { ...@@ -77,7 +77,7 @@ export async function homeData(uscc:string) {
/** /**
* 获取孵化器列表 * 获取孵化器基本信息列表
* @param lv 孵化器等级 * @param lv 孵化器等级
* @param institutionalNature 机构性质 * @param institutionalNature 机构性质
* @param industry 领域 * @param industry 领域
......
...@@ -27,6 +27,9 @@ export enum INSTITUTIONALNATURE { ...@@ -27,6 +27,9 @@ export enum INSTITUTIONALNATURE {
外资为主 外资为主
} }
/**
* 孵化器投资方式
*/
export enum FUHUAQILNVESTMENTSTYLE { export enum FUHUAQILNVESTMENTSTYLE {
自有资金 = 1, 自有资金 = 1,
自有基金, 自有基金,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
*/ */
import * as asyncHandler from 'express-async-handler'; import * as asyncHandler from 'express-async-handler';
import { FUHUAQILV, INSTITUTIONALNATURE, FUHUAINDUSTRY, INDUSTRY } from '../config/enum'; import { FUHUAQILV, INSTITUTIONALNATURE, FUHUAINDUSTRY, INDUSTRY, FUHUAQILNVESTMENTSTYLE } from '../config/enum';
import { checkFuHuaQiToken } from '../middleware/user'; import { checkFuHuaQiToken } from '../middleware/user';
export function setRouter(httpServer) { export function setRouter(httpServer) {
...@@ -11,6 +11,7 @@ export function setRouter(httpServer) { ...@@ -11,6 +11,7 @@ export function setRouter(httpServer) {
httpServer.post('/public/institutionalnature', asyncHandler(getInstitutionalNature)); httpServer.post('/public/institutionalnature', asyncHandler(getInstitutionalNature));
httpServer.post('/public/fuhuaqiindustry', asyncHandler(getFuHuaQiIndustry)); httpServer.post('/public/fuhuaqiindustry', asyncHandler(getFuHuaQiIndustry));
httpServer.post('/public/industry', asyncHandler(getIndustry)); httpServer.post('/public/industry', asyncHandler(getIndustry));
httpServer.post('/public/investmentstyle', asyncHandler(getFuHuaQiInvestmentStyle));
} }
/** /**
...@@ -77,3 +78,19 @@ async function getIndustry(req, res) { ...@@ -77,3 +78,19 @@ async function getIndustry(req, res) {
} }
res.success({lvList}); res.success({lvList});
} }
/**
* 获取孵化器投资方式
* @param req
* @param res
*/
async function getFuHuaQiInvestmentStyle(req, res) {
let lvList = [];
for (let key in FUHUAQILNVESTMENTSTYLE) {
let anyKey:any = key;
if (isNaN(anyKey)) {
lvList.push({key, value:FUHUAQILNVESTMENTSTYLE[key]});
}
}
res.success({lvList});
}
\ No newline at end of file
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