259 lines
6.7 KiB
JavaScript
259 lines
6.7 KiB
JavaScript
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,
|
|
});
|
|
},
|
|
getTaskStatusList: 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,
|
|
});
|
|
},
|
|
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
|
|
});
|
|
},
|
|
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
|
|
});
|
|
},
|
|
getInterventionList: async (data) => {
|
|
return request({
|
|
url: '/admin/intervention/getInterventionList',
|
|
method: Method.POST,
|
|
data: data
|
|
});
|
|
},
|
|
getBusinessmoneylogPlatform: async () => {
|
|
return request({
|
|
url: '/admin/businessmoneylog/getPlatform',
|
|
method: Method.POST,
|
|
});
|
|
},
|
|
getBusinessmoneylogPurpose: async () => {
|
|
return request({
|
|
url: '/admin/businessmoneylog/getPurpose',
|
|
method: Method.POST,
|
|
});
|
|
},
|
|
getBusinessmoneylogList: async (data) => {
|
|
return request({
|
|
url: '/admin/businessmoneylog/getList',
|
|
method: Method.POST,
|
|
data: data
|
|
});
|
|
},
|
|
getUsermoneylogPlatform: async () => {
|
|
return request({
|
|
url: '/admin/usermoneylog/getPlatform',
|
|
method: Method.POST,
|
|
});
|
|
},
|
|
getUsermoneylogPurpose: async () => {
|
|
return request({
|
|
url: '/admin/usermoneylog/getPurpose',
|
|
method: Method.POST,
|
|
});
|
|
},
|
|
getUsermoneylogList: async (data) => {
|
|
return request({
|
|
url: '/admin/usermoneylog/getList',
|
|
method: Method.POST,
|
|
data: data
|
|
});
|
|
},
|
|
getWithdrawalPerson: async () => {
|
|
return request({
|
|
url: '/admin/withdrawal/getPerson',
|
|
method: Method.POST,
|
|
});
|
|
},
|
|
getWithdrawalPlatform: async () => {
|
|
return request({
|
|
url: '/admin/withdrawal/getPlatform',
|
|
method: Method.POST,
|
|
});
|
|
},
|
|
getWithdrawalList: async (data) => {
|
|
return request({
|
|
url: '/admin/withdrawal/getList',
|
|
method: Method.POST,
|
|
data: data
|
|
});
|
|
},
|
|
getWithdrawllogStatus: async (data) => {
|
|
return request({
|
|
url: '/admin/withdrawallog/getStatus',
|
|
method: Method.POST,
|
|
data: data
|
|
});
|
|
},
|
|
getWithdrawllogList: async (data) => {
|
|
return request({
|
|
url: '/admin/withdrawallog/getList',
|
|
method: Method.POST,
|
|
data: data
|
|
});
|
|
},
|
|
getBusinessList: async (data) => {
|
|
return request({
|
|
url: '/admin/business/getList',
|
|
method: Method.POST,
|
|
data: data
|
|
});
|
|
},
|
|
getUserList: async (data) => {
|
|
return request({
|
|
url: '/admin/user/getList',
|
|
method: Method.POST,
|
|
data: data
|
|
});
|
|
},
|
|
getAccountList: async (data) => {
|
|
return request({
|
|
url: '/admin/account/getList',
|
|
method: Method.POST,
|
|
data: data
|
|
});
|
|
},
|
|
getTaskblockList: async (data) => {
|
|
return request({
|
|
url: '/admin/taskblock/getList',
|
|
method: Method.POST,
|
|
data: data
|
|
});
|
|
},
|
|
}
|
|
|
|
export default admin;
|