Commit cf35a54d authored by Hsinli's avatar Hsinli

addd

parent e62be838
Pipeline #8898 passed with stage
in 13 seconds
......@@ -5,7 +5,7 @@ const Controller = require('egg').Controller;
class searchHistoryController extends Controller {
/**
* 获取预约列表
* 获取搜索历史
*/
async getSearchHistory() {
const { ctx } = this;
......@@ -50,6 +50,15 @@ class searchHistoryController extends Controller {
ctx.success(ret);
}
/**
* 获取热门问题搜索历史
*/
async getHotQuestionSearchHistory() {
const { ctx } = this;
let type = 3;
let ret = await ctx.service.house.v2.searchHistory.getSearchHistory(type);
ctx.success(ret);
}
}
......
......@@ -84,6 +84,7 @@ module.exports = app => {
//搜索历史
router.get('/v2/search_history/:city_code', 'house.v2.searchHistory.getSearchHistory');//搜索历史
router.put('/v2/search_history/:type', 'house.v2.searchHistory.cleanSearchHistory');//用户点击清除搜索记录
router.get('/v2/hot_question/search_history', 'house.v2.searchHistory.getHotQuestionSearchHistory');//热门问题搜索历史
//我的
router.get('/v2/mine', 'house.v2.mine.getMineInfo');//获取用户的头像昵称和关注等信息
......
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