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
c2c15585
Commit
c2c15585
authored
Jun 13, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
ce2328b1
Pipeline
#8869
passed with stage
in 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
question.js
app/controller/house/v2/question.js
+2
-2
house.js
app/router/house.js
+6
-6
No files found.
app/controller/house/v2/question.js
View file @
c2c15585
...
...
@@ -60,9 +60,9 @@ class QuestionController extends Controller {
const
{
ctx
}
=
this
;
let
inputParams
=
ctx
.
request
.
body
;
const
rule
=
{
id
:
{
type
:
'integer'
,
required
:
fals
e
},
id
:
{
type
:
'integer'
,
required
:
tru
e
},
page
:
{
type
:
'integer'
,
required
:
false
},
limit
:
{
type
:
'integer'
,
required
:
tru
e
},
limit
:
{
type
:
'integer'
,
required
:
fals
e
},
};
ctx
.
validate
(
rule
,
inputParams
);
let
ret
=
await
ctx
.
service
.
house
.
v2
.
hotQuestionPut
.
questionDetail
(
inputParams
);
...
...
app/router/house.js
View file @
c2c15585
...
...
@@ -99,17 +99,17 @@ module.exports = app => {
router
.
get
(
'/v2/house_analysis/mine'
,
loginAuth
,
'house.v2.houseAnalysis.getUserHouseAnalysis'
);
//我的户型
//点赞
router
.
get
(
'/v2/like/:id'
,
'house.v2.like.like'
);
//点赞
router
.
put
(
'/v2/like/:id'
,
'house.v2.like.unLike'
);
//取消点赞
router
.
get
(
'/v2/like/:id'
,
loginAuth
,
'house.v2.like.like'
);
//点赞
router
.
put
(
'/v2/like/:id'
,
loginAuth
,
'house.v2.like.unLike'
);
//取消点赞
//提问
router
.
post
(
'/v2/question'
,
'house.v2.question.addQuestion'
);
//提问
router
.
post
(
'/v2/question/mine'
,
'house.v2.question.mineQuestion'
);
//我的问题
router
.
post
(
'/v2/question'
,
loginAuth
,
'house.v2.question.addQuestion'
);
//提问
router
.
post
(
'/v2/question/mine'
,
loginAuth
,
'house.v2.question.mineQuestion'
);
//我的问题
router
.
post
(
'/v2/question/list'
,
'house.v2.question.questionList'
);
//问题列表
router
.
post
(
'/v2/question/detail'
,
'house.v2.question.
addQuestion
'
);
//问题详情
router
.
post
(
'/v2/question/detail'
,
'house.v2.question.
questionDetail
'
);
//问题详情
//回答
router
.
post
(
'/v2/answer'
,
'house.v2.answer.answer'
);
//回答
router
.
post
(
'/v2/answer'
,
loginAuth
,
'house.v2.answer.answer'
);
//回答
...
...
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