项目初始化

This commit is contained in:
2026-03-18 15:54:43 +08:00
commit dfcd762e23
601 changed files with 57883 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
import createAxios from '/@/utils/axios'
export const url = '/admin/routine.AdminInfo/'
export const actionUrl = new Map([
['index', url + 'index'],
['edit', url + 'edit'],
['log', '/admin/auth.AdminLog/index'],
])
export function index() {
return createAxios({
url: actionUrl.get('index'),
method: 'get',
})
}
export function log(filter: anyObj = {}) {
return createAxios<TableDefaultData>({
url: actionUrl.get('log'),
method: 'get',
params: filter,
})
}
export function postData(data: anyObj) {
return createAxios(
{
url: actionUrl.get('edit'),
method: 'post',
data: data,
},
{
showSuccessMessage: true,
}
)
}