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 }); }, 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 }); }, editADV: async (data) => { return request({ url: '/admin/adv/edit', method: Method.POST, data: data }); }, 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 }); }, 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 }); }, getArticleCategoryList2: async (data) => { const res = await request({ url: '/admin/articleCategory/getList', method: Method.POST, data: data }); return {data: res.data.list}; }, 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 }); }, delArticleCategory: async (id) => { 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 }); }, 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}, }); }, } export default admin;