You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import request from "@/utils/request.js";
|
|
|
|
import {host} from "@/config/host.js";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 顾问创建/编辑
|
|
|
|
* @param {Object} data
|
|
|
|
*/
|
|
|
|
export function setAdvisor(data) {
|
|
|
|
|
|
|
|
return request({
|
|
|
|
url: `${host}/advisor/up-advisor`,
|
|
|
|
method: "post",
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 问题创建/编辑
|
|
|
|
* @param {Object} data
|
|
|
|
*/
|
|
|
|
export function setQuestions(data) {
|
|
|
|
|
|
|
|
return request({
|
|
|
|
url: `${host}/advisor/up-questions`,
|
|
|
|
method: "post",
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 顾问列表
|
|
|
|
* @param {Object} data
|
|
|
|
*/
|
|
|
|
export function advisorList(data) {
|
|
|
|
|
|
|
|
return request({
|
|
|
|
url: `${host}/advisor/list`,
|
|
|
|
method: "get",
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|