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
0e0e053e
Commit
0e0e053e
authored
Apr 11, 2019
by
Hsinli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addd
parent
fb2a35ec
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
32 deletions
+2
-32
collection.js
app/service/house/collection.js
+1
-1
order.js
app/service/house/order.js
+1
-1
search_history.js
app/service/house_common/search_history.js
+0
-30
No files found.
app/service/house/collection.js
View file @
0e0e053e
...
@@ -49,7 +49,7 @@ class CollectionService extends Service {
...
@@ -49,7 +49,7 @@ class CollectionService extends Service {
remark
:
inputParams
.
remark
||
''
remark
:
inputParams
.
remark
||
''
}
}
let
ret
=
await
service
.
houseCommon
.
collection
.
add
(
data
);
let
ret
=
await
service
.
houseCommon
.
collection
.
add
(
data
);
return
{
collection_
id
:
ret
.
id
};
return
{
id
:
ret
.
id
};
}
}
...
...
app/service/house/order.js
View file @
0e0e053e
...
@@ -52,7 +52,7 @@ class OrderService extends Service {
...
@@ -52,7 +52,7 @@ class OrderService extends Service {
remark
:
inputParams
.
remark
||
''
remark
:
inputParams
.
remark
||
''
};
};
let
ret
=
await
service
.
houseCommon
.
order
.
add
(
data
);
let
ret
=
await
service
.
houseCommon
.
order
.
add
(
data
);
return
{
order_
id
:
ret
.
id
};
return
{
id
:
ret
.
id
};
}
}
/**
/**
...
...
app/service/house_common/search_history.js
View file @
0e0e053e
...
@@ -19,36 +19,6 @@ class SearchHistoryService extends Service {
...
@@ -19,36 +19,6 @@ class SearchHistoryService extends Service {
return
result
.
data
;
return
result
.
data
;
}
}
async
edit
(
id
,
data
)
{
const
{
ctx
}
=
this
;
const
result
=
await
ctx
.
helper
.
send_request
(
this
.
config
.
HOUSE_SERVICE_API
+
'/v1/searchhistory/'
+
id
,
data
,
{
method
:
'PUT'
});
if
(
result
.
status
!==
200
)
{
let
err
=
''
;
if
(
typeof
(
result
.
data
)
!==
'string'
)
{
err
=
JSON
.
stringify
(
result
.
data
);
}
else
{
err
=
result
.
data
;
}
ctx
.
failed
(
err
);
}
return
result
.
data
;
}
async
delete
(
id
)
{
const
{
ctx
}
=
this
;
const
result
=
await
ctx
.
helper
.
send_request
(
this
.
config
.
HOUSE_SERVICE_API
+
'/v1/searchhistory/'
+
id
,
{},
{
method
:
'DELETE'
});
if
(
result
.
status
!==
200
)
{
let
err
=
''
;
if
(
typeof
(
result
.
data
)
!==
'string'
)
{
err
=
JSON
.
stringify
(
result
.
data
);
}
else
{
err
=
result
.
data
;
}
ctx
.
failed
(
err
);
}
return
result
.
data
;
}
async
all
(
data
)
{
async
all
(
data
)
{
const
{
ctx
}
=
this
;
const
{
ctx
}
=
this
;
const
queryConditions
=
data
.
queryConditions
;
const
queryConditions
=
data
.
queryConditions
;
...
...
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