mart-admin/src/api/log/index.ts
2024-11-18 14:22:56 +08:00

25 lines
570 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 获取日志列表
*/
export function logApi() {
return {
getlogList: (params: object) => {
// console.log(1111111111111111);
return request({
url: baseUrlHost + '/acLog',
method: 'get',
params,
});
},
};
}