热词功能完善

This commit is contained in:
Chopper
2021-07-26 16:02:31 +08:00
parent 2f8946f372
commit 31d28627f1
2 changed files with 134 additions and 0 deletions

View File

@@ -438,3 +438,14 @@ export const delCustom = (id) => {
return deleteRequest(`/manager/custom-words/${id}`);
};
// 设置热搜词
export const setHotWords = (params) => {
return postRequest(`/hotwords`, params);
};
// 获取热搜词
export const getHotWords = () => {
return getRequest(`/hotwords`);
};