update
This commit is contained in:
52
src/api/admin.js
Normal file
52
src/api/admin.js
Normal 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;
|
||||
Reference in New Issue
Block a user