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
ecf80c69
Commit
ecf80c69
authored
Jun 27, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add app
parent
62aba897
Pipeline
#9674
passed with stage
in 4 seconds
Changes
11
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
62 additions
and
11 deletions
+62
-11
collection.js
app/model/realestate/collection.js
+8
-0
foot_print.js
app/model/realestate/foot_print.js
+8
-4
order.js
app/model/realestate/order.js
+8
-0
search_history.js
app/model/realestate/search_history.js
+8
-0
answer_like.js
app/service/house/v2/answer_like.js
+4
-0
collection.js
app/service/house/v2/collection.js
+5
-2
foot_print.js
app/service/house/v2/foot_print.js
+2
-2
hot_question_answer.js
app/service/house/v2/hot_question_answer.js
+4
-0
hot_question_put.js
app/service/house/v2/hot_question_put.js
+4
-0
order.js
app/service/house/v2/order.js
+7
-2
search_history.js
app/service/house/v2/search_history.js
+4
-1
No files found.
app/model/realestate/collection.js
View file @
ecf80c69
...
@@ -19,6 +19,14 @@ module.exports = app => {
...
@@ -19,6 +19,14 @@ module.exports = app => {
type
:
STRING
,
type
:
STRING
,
allowNull
:
true
allowNull
:
true
},
},
app_id
:
{
type
:
STRING
,
allowNull
:
true
},
app_type_id
:
{
type
:
STRING
,
allowNull
:
true
},
connect_id
:
{
connect_id
:
{
type
:
INTEGER
,
type
:
INTEGER
,
allowNull
:
true
allowNull
:
true
...
...
app/model/realestate/foot_print.js
View file @
ecf80c69
...
@@ -11,10 +11,6 @@ module.exports = app => {
...
@@ -11,10 +11,6 @@ module.exports = app => {
primaryKey
:
true
,
primaryKey
:
true
,
autoIncrement
:
true
,
autoIncrement
:
true
,
},
},
app_type_id
:
{
type
:
STRING
,
allowNull
:
true
,
},
user_id
:
{
user_id
:
{
type
:
STRING
,
type
:
STRING
,
allowNull
:
true
allowNull
:
true
...
@@ -23,6 +19,14 @@ module.exports = app => {
...
@@ -23,6 +19,14 @@ module.exports = app => {
type
:
STRING
,
type
:
STRING
,
allowNull
:
true
allowNull
:
true
},
},
app_id
:
{
type
:
STRING
,
allowNull
:
true
},
app_type_id
:
{
type
:
STRING
,
allowNull
:
true
},
connect_id
:
{
connect_id
:
{
type
:
INTEGER
,
type
:
INTEGER
,
allowNull
:
true
allowNull
:
true
...
...
app/model/realestate/order.js
View file @
ecf80c69
...
@@ -19,6 +19,14 @@ module.exports = app => {
...
@@ -19,6 +19,14 @@ module.exports = app => {
type
:
STRING
,
type
:
STRING
,
allowNull
:
true
allowNull
:
true
},
},
app_id
:
{
type
:
STRING
,
allowNull
:
true
},
app_type_id
:
{
type
:
STRING
,
allowNull
:
true
},
connect_id
:
{
connect_id
:
{
type
:
INTEGER
,
type
:
INTEGER
,
allowNull
:
true
allowNull
:
true
...
...
app/model/realestate/search_history.js
View file @
ecf80c69
...
@@ -19,6 +19,14 @@ module.exports = app => {
...
@@ -19,6 +19,14 @@ module.exports = app => {
type
:
STRING
,
type
:
STRING
,
allowNull
:
true
allowNull
:
true
},
},
app_id
:
{
type
:
STRING
,
allowNull
:
true
},
app_type_id
:
{
type
:
STRING
,
allowNull
:
true
},
key_word
:
{
key_word
:
{
type
:
STRING
,
type
:
STRING
,
allowNull
:
true
allowNull
:
true
...
...
app/service/house/v2/answer_like.js
View file @
ecf80c69
...
@@ -12,6 +12,10 @@ class AnswerLikeService extends Service {
...
@@ -12,6 +12,10 @@ class AnswerLikeService extends Service {
*/
*/
async
like
(
id
)
{
async
like
(
id
)
{
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
if
(
!
ctx
.
appUserId
||
!
ctx
.
userId
)
{
//如果没有登录就不做处理
return
false
;
}
let
filter
=
{
let
filter
=
{
where
:
{
where
:
{
answer_id
:
id
,
answer_id
:
id
,
...
...
app/service/house/v2/collection.js
View file @
ecf80c69
...
@@ -12,10 +12,11 @@ class CollectionService extends Service {
...
@@ -12,10 +12,11 @@ class CollectionService extends Service {
*/
*/
async
addCollection
(
inputParams
)
{
async
addCollection
(
inputParams
)
{
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
if
(
!
ctx
.
appUserId
||
!
ctx
.
deviceId
||
!
ctx
.
deviceLoginId
||
!
ctx
.
userId
)
{
if
(
!
ctx
.
appUserId
||
!
ctx
.
userId
)
{
//如果没有登录就不做处理
//如果没有登录就不做处理
return
ret
;
return
false
;
}
}
let
filter
=
{
let
filter
=
{
where
:
{
where
:
{
state
:
1
,
state
:
1
,
...
@@ -31,6 +32,8 @@ class CollectionService extends Service {
...
@@ -31,6 +32,8 @@ class CollectionService extends Service {
let
data
=
{
let
data
=
{
user_id
:
ctx
.
userId
,
user_id
:
ctx
.
userId
,
app_user_id
:
ctx
.
appUserId
,
app_user_id
:
ctx
.
appUserId
,
app_id
:
ctx
.
appId
,
app_type_id
:
ctx
.
appTypeId
,
house_style
:
inputParams
.
type
,
house_style
:
inputParams
.
type
,
connect_id
:
inputParams
.
id
,
connect_id
:
inputParams
.
id
,
state
:
1
,
state
:
1
,
...
...
app/service/house/v2/foot_print.js
View file @
ecf80c69
...
@@ -15,15 +15,15 @@ class FootPrintService extends Service {
...
@@ -15,15 +15,15 @@ class FootPrintService extends Service {
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
const
user_id
=
ctx
.
userId
;
const
user_id
=
ctx
.
userId
;
const
app_user_id
=
ctx
.
appUserId
;
const
app_user_id
=
ctx
.
appUserId
;
const
app_type_id
=
ctx
.
appTypeId
;
if
(
!
user_id
||
!
app_user_id
)
{
if
(
!
user_id
||
!
app_user_id
)
{
return
false
;
return
false
;
}
}
const
data
=
{
const
data
=
{
user_id
:
user_id
,
user_id
:
user_id
,
app_type_id
:
app_type_id
,
app_user_id
:
app_user_id
,
app_user_id
:
app_user_id
,
app_id
:
ctx
.
appId
,
app_type_id
:
ctx
.
appTypeId
,
house_style
:
inputParams
.
type
,
house_style
:
inputParams
.
type
,
connect_id
:
inputParams
.
id
,
connect_id
:
inputParams
.
id
,
state
:
1
,
state
:
1
,
...
...
app/service/house/v2/hot_question_answer.js
View file @
ecf80c69
...
@@ -12,6 +12,10 @@ class HotQuestionAnswerService extends Service {
...
@@ -12,6 +12,10 @@ class HotQuestionAnswerService extends Service {
*/
*/
async
addAnswer
(
inputParams
)
{
async
addAnswer
(
inputParams
)
{
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
if
(
!
ctx
.
appUserId
||
!
ctx
.
userId
)
{
//如果没有登录就不做处理
return
false
;
}
let
data
=
{
let
data
=
{
user_id
:
ctx
.
userId
,
user_id
:
ctx
.
userId
,
app_user_id
:
ctx
.
appUserId
,
app_user_id
:
ctx
.
appUserId
,
...
...
app/service/house/v2/hot_question_put.js
View file @
ecf80c69
...
@@ -12,6 +12,10 @@ class HotQuestionPutService extends Service {
...
@@ -12,6 +12,10 @@ class HotQuestionPutService extends Service {
*/
*/
async
addQuestion
(
inputParams
)
{
async
addQuestion
(
inputParams
)
{
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
if
(
!
ctx
.
appUserId
||
!
ctx
.
userId
)
{
//如果没有登录就不做处理
return
false
;
}
let
data
=
{
let
data
=
{
user_id
:
ctx
.
userId
,
user_id
:
ctx
.
userId
,
app_user_id
:
ctx
.
appUserId
,
app_user_id
:
ctx
.
appUserId
,
...
...
app/service/house/v2/order.js
View file @
ecf80c69
...
@@ -11,8 +11,11 @@ class OrderService extends Service {
...
@@ -11,8 +11,11 @@ class OrderService extends Service {
* @param {object} inputParams
* @param {object} inputParams
*/
*/
async
addOrder
(
inputParams
)
{
async
addOrder
(
inputParams
)
{
const
{
ctx
,
service
}
=
this
;
const
{
ctx
}
=
this
;
if
(
!
ctx
.
appUserId
||
!
ctx
.
userId
)
{
//如果没有登录就不做处理
return
false
;
}
let
filter
=
{
let
filter
=
{
where
:
{
where
:
{
state
:
1
,
state
:
1
,
...
@@ -33,6 +36,8 @@ class OrderService extends Service {
...
@@ -33,6 +36,8 @@ class OrderService extends Service {
let
data
=
{
let
data
=
{
user_id
:
ctx
.
userId
,
user_id
:
ctx
.
userId
,
app_user_id
:
ctx
.
appUserId
,
app_user_id
:
ctx
.
appUserId
,
app_id
:
ctx
.
appId
,
app_type_id
:
ctx
.
appTypeId
,
house_style
:
inputParams
.
type
,
house_style
:
inputParams
.
type
,
connect_id
:
inputParams
.
id
,
connect_id
:
inputParams
.
id
,
name
:
inputParams
.
name
,
name
:
inputParams
.
name
,
...
...
app/service/house/v2/search_history.js
View file @
ecf80c69
...
@@ -12,12 +12,15 @@ class searchHistoryService extends Service {
...
@@ -12,12 +12,15 @@ class searchHistoryService extends Service {
*/
*/
async
addSearchHistory
(
inputParams
)
{
async
addSearchHistory
(
inputParams
)
{
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
if
(
!
ctx
.
userId
)
{
if
(
!
ctx
.
appUserId
||
!
ctx
.
userId
)
{
//如果没有登录就不做处理
return
false
;
return
false
;
}
}
let
data
=
{
let
data
=
{
user_id
:
ctx
.
userId
,
user_id
:
ctx
.
userId
,
app_user_id
:
ctx
.
appUserId
,
app_user_id
:
ctx
.
appUserId
,
app_id
:
ctx
.
appId
,
app_type_id
:
ctx
.
appTypeId
,
key_word
:
inputParams
.
key_word
,
key_word
:
inputParams
.
key_word
,
house_style
:
inputParams
.
type
,
house_style
:
inputParams
.
type
,
state
:
1
,
state
:
1
,
...
...
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