This commit is contained in:
2025-04-19 15:28:32 +08:00
parent c80b173e28
commit 9731d104f6
17 changed files with 796 additions and 738 deletions

52
src/api/admin.js Normal file
View File

@@ -0,0 +1,52 @@
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;