mart-admin/src/api/log/index.ts
2025-01-13 21:18:04 +08:00

38 lines
909 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '/@/utils/request';
import { baseUrlHost } from '../baseUrlHost';
/**
* (不建议写成 request.post(xxx),因为这样 post 时,无法 params 与 data 同时传参)
* 注意在写get请求时参数是params而不是data要标注好
*
* 登录api接口集合
* @method getlogList 获取日志列表
* @method getaiabilityList 获取统计AI能力列表
* @method getbaseUserList 获取统计基础信息列表
*/
export function logApi() {
return {
getlogList: (params: object) => {
return request({
url: baseUrlHost + '/acLog',
method: 'get',
params,
});
},
getabilityList: (params:object) => {
return request({
url: baseUrlHost + '/acLog/AiAbility',
method: 'get',
params,
});
},
getbaseUserList: () => {
return request({
url: baseUrlHost + '/acLog/basicInformation',
method: 'get',
});
},
};
}