Files
xl-root/src/api/admin.js

53 lines
1.2 KiB
JavaScript
Raw Normal View History

2025-04-19 15:28:32 +08:00
import request from "../utils/request.js";
import Method from "./Method.js";
const admin = {
login: async (data) => {
return request({
url: '/admin/login/login',
method: Method.POST,
data: data,
});
},
phoneLogin: async (data) => {
return request({
url: '/admin/login/mobileLogin',
method: Method.POST,
data: data,
});
},
sendSms: async (mobile) => {
return request({
url: '/admin/login/sendSms',
method: Method.POST,
data: {mobile},
});
},
getMenu: async () => {
return request({
url: '/admin/admin/menu',
method: Method.POST,
});
},
getTaskList: async () => {
return request({
url: '/admin/task/getStatusList',
method: Method.POST,
});
},
getPlatform: async () => {
return request({
url: '/admin/platform/getList',
method: Method.POST,
});
},
getCheckStatusList: async () => {
return request({
url: '/admin/task/getCheckStatusList',
method: Method.POST,
});
},
}
export default admin;