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,
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-21 10:30:45 +08:00
|
|
|
getTaskStatusList: async () => {
|
2025-04-19 15:28:32 +08:00
|
|
|
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,
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-21 10:30:45 +08:00
|
|
|
getTaskList: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/task/getTaskList ',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
passTask: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/task/passTask',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
refuseTask: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/task/refuseTask',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
stopTask: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/task/stopTask',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getTaskDetail: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/task/getTaskInfo',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getStatusList: async () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/taskchildren/getStatusList',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getSubCheckStatusList: async () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/taskchildren/getCheckStatusList',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getTaskChildrenList: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/taskchildren/getTaskChildrenList',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getTaskChildrenInfo: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/taskchildren/getTaskChildrenInfo',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
passTaskChildren: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/taskchildren/passTaskChildren',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
refuseTaskChildren: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/taskchildren/refuseTaskChildren',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-21 11:47:50 +08:00
|
|
|
getStatusAttr: async () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/exchangelog/getStatusAttr',
|
|
|
|
|
method: Method.POST
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getPattenAttr: async () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/exchangelog/getPattenAttr',
|
|
|
|
|
method: Method.POST
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getTypeAttr: async () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/exchangelog/getTypeAttr',
|
|
|
|
|
method: Method.POST
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getExchangeLog: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/exchangelog/getExchangeLog',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-19 15:28:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default admin;
|