29 lines
608 B
JavaScript
29 lines
608 B
JavaScript
import fetch from './fetch';
|
|
import fetchLogin from './fetchLogin';
|
|
|
|
/**智能体分类列表***/
|
|
export function getAgentTypeList(params) {
|
|
return fetch({
|
|
url: `/console-api/home-page/agent-square/get-bot-type-list`,
|
|
method: 'get',
|
|
params
|
|
});
|
|
}
|
|
|
|
/**智能体列表***/
|
|
export function getAgentList(params) {
|
|
return fetch({
|
|
url: `/console-api/home-page/agent-square/get-bot-page-by-type`,
|
|
method: 'get',
|
|
params
|
|
});
|
|
}
|
|
|
|
/**智能体登录***/
|
|
export function agentLogin(data) {
|
|
return fetchLogin({
|
|
url: `/api/login/oauth/access_token`,
|
|
method: 'post',
|
|
data
|
|
});
|
|
} |