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
fd4079da
Commit
fd4079da
authored
Feb 08, 2023
by
孙香冬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0ae7ec49
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
base.ts
src/biz/fuHuqQi/base.ts
+1
-1
enum.ts
src/config/enum.ts
+3
-0
public.ts
src/routers/public.ts
+19
-1
No files found.
src/biz/fuHuqQi/base.ts
View file @
fd4079da
...
...
@@ -77,7 +77,7 @@ export async function homeData(uscc:string) {
/**
* 获取孵化器列表
* 获取孵化器
基本信息
列表
* @param lv 孵化器等级
* @param institutionalNature 机构性质
* @param industry 领域
...
...
src/config/enum.ts
View file @
fd4079da
...
...
@@ -27,6 +27,9 @@ export enum INSTITUTIONALNATURE {
外资为主
}
/**
* 孵化器投资方式
*/
export
enum
FUHUAQILNVESTMENTSTYLE
{
自有资金
=
1
,
自有基金
,
...
...
src/routers/public.ts
View file @
fd4079da
...
...
@@ -3,7 +3,7 @@
*/
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'
;
export
function
setRouter
(
httpServer
)
{
...
...
@@ -11,6 +11,7 @@ export function setRouter(httpServer) {
httpServer
.
post
(
'/public/institutionalnature'
,
asyncHandler
(
getInstitutionalNature
));
httpServer
.
post
(
'/public/fuhuaqiindustry'
,
asyncHandler
(
getFuHuaQiIndustry
));
httpServer
.
post
(
'/public/industry'
,
asyncHandler
(
getIndustry
));
httpServer
.
post
(
'/public/investmentstyle'
,
asyncHandler
(
getFuHuaQiInvestmentStyle
));
}
/**
...
...
@@ -77,3 +78,19 @@ async function getIndustry(req, res) {
}
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
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