Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
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
方斌
51business
Commits
9baff1f6
Commit
9baff1f6
authored
Jun 27, 2019
by
李尚科
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ecf80c69
Pipeline
#9689
passed with stage
in 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
house_analysis.js
app/controller/house/v2/house_analysis.js
+10
-0
house.js
app/router/house.js
+1
-0
No files found.
app/controller/house/v2/house_analysis.js
View file @
9baff1f6
...
...
@@ -75,6 +75,16 @@ class HouseAnalysisController extends Controller {
}
//上传户型解析的城市列表
async
getHouseAnalysisSupportCity
()
{
const
{
ctx
}
=
this
;
const
results
=
await
ctx
.
blockModel
.
City
.
all
({
where
:
{
code
:
{
$in
:
[
110000
,
310000
,
330100
,
440100
,
440300
,
500000
]
}
}
});
ctx
.
success
({
results
});
}
}
module
.
exports
=
HouseAnalysisController
;
app/router/house.js
View file @
9baff1f6
...
...
@@ -107,6 +107,7 @@ module.exports = app => {
router
.
get
(
'/v2/house_analysis/info/:house_analysis_id'
,
'house.v2.houseAnalysis.getHouseAnalysisInfo'
);
//户型解析列表
router
.
post
(
'/v2/house_analysis/'
,
loginAuth
,
'house.v2.houseAnalysis.uploadHouseAnalysis'
);
//上传户型信息
router
.
get
(
'/v2/house_analysis/mine'
,
loginAuth
,
'house.v2.houseAnalysis.getUserHouseAnalysis'
);
//我的户型
router
.
get
(
'/v2/house_analysis/city_list'
,
'house.v2.houseAnalysis.getHouseAnalysisSupportCity'
);
//上传户型解析的城市列表
//提问
router
.
post
(
'/v2/question'
,
loginAuth
,
'house.v2.question.addQuestion'
);
//提问
...
...
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