Commit 0e0e053e authored by Hsinli's avatar Hsinli

addd

parent fb2a35ec
......@@ -49,7 +49,7 @@ class CollectionService extends Service {
remark: inputParams.remark || ''
}
let ret = await service.houseCommon.collection.add(data);
return { collection_id: ret.id };
return { id: ret.id };
}
......
......@@ -52,7 +52,7 @@ class OrderService extends Service {
remark: inputParams.remark || ''
};
let ret = await service.houseCommon.order.add(data);
return { order_id: ret.id };
return { id: ret.id };
}
/**
......
......@@ -19,36 +19,6 @@ class SearchHistoryService extends Service {
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) {
const { ctx } = this;
const queryConditions = data.queryConditions;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment