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-22 11:47:25 +08:00
|
|
|
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
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-23 19:48:47 +08:00
|
|
|
getBarragelist: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/barrage/getlist',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
addBarrage: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/barrage/add',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
editBarrage: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/barrage/edit',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
barrageWeigh: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/barrage/weigh',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
barrageDel: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/barrage/del',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getNoticeList: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/notice/getList',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
addNotice: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/notice/add',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
editNotice: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/notice/edit',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
delNotice: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/notice/del',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getNoticeType: async () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/notice/getType',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
setNoticeStatus: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/notice/status',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
setNoticeTop: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/notice/top',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
setNotcieWeigh: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/notice/weigh',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getADVType: async () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/adv/getType',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
addADV: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/adv/add',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-24 17:17:26 +08:00
|
|
|
editADV: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/adv/edit',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-23 19:48:47 +08:00
|
|
|
setADVStatus: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/adv/status',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
setADVWeigh: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/adv/weigh',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
delADV: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/adv/del',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getADVList: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/adv/getList',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-24 19:17:53 +08:00
|
|
|
getQRList: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/qrcode/getList',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
editQRList: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/qrcode/edit',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getArticleCategoryList: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/articleCategory/getList',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-25 11:47:08 +08:00
|
|
|
getArticleCategoryList2: async (data) => {
|
|
|
|
|
const res = await request({
|
|
|
|
|
url: '/admin/articleCategory/getList',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
return {data: res.data.list};
|
|
|
|
|
},
|
2025-04-24 19:17:53 +08:00
|
|
|
addArticleCategory: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/articleCategory/add',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
detailArticleCategory: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/articleCategory/detail',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
editArticleCategory: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/articleCategory/edit',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-25 11:47:08 +08:00
|
|
|
delArticleCategory: async (id) => {
|
2025-04-24 19:17:53 +08:00
|
|
|
return request({
|
|
|
|
|
url: '/admin/articleCategory/del',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
weighArticleCategory: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/articleCategory/weigh',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-25 11:47:08 +08:00
|
|
|
getArticleList: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/article/getList',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
addArticle: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/article/add',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
statusArticle: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/article/status',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
topArticle: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/article/top',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
weighArticle: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/article/weigh',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
delArticle: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/article/del',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
editArticle: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/article/edit',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
typeArticle: async () => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/article/getType',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getSingleList: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/single/getList',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
addSingle: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/single/add',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
editSingle: async (data) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/single/edit',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: data,
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
delSingle: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/single/del',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
detailSingle: async (id) => {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/admin/single/detail',
|
|
|
|
|
method: Method.POST,
|
|
|
|
|
data: {id},
|
|
|
|
|
});
|
|
|
|
|
},
|
2025-04-19 15:28:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default admin;
|