update
This commit is contained in:
157
src/api/merchant.js
Normal file
157
src/api/merchant.js
Normal file
@@ -0,0 +1,157 @@
|
||||
import request from "../utils/request.js";
|
||||
import Method from "./Method.js";
|
||||
|
||||
const merchant = {
|
||||
sendSms: async (mobile) => {
|
||||
return request({
|
||||
url: '/index/login/sendSms',
|
||||
method: Method.POST,
|
||||
data: {mobile},
|
||||
});
|
||||
},
|
||||
register: async (data) => {
|
||||
return request({
|
||||
url: '/index/login/register',
|
||||
method: Method.POST,
|
||||
data: data,
|
||||
});
|
||||
},
|
||||
login: async (data) => {
|
||||
return request({
|
||||
url: '/index/login/login',
|
||||
method: Method.POST,
|
||||
data: data,
|
||||
});
|
||||
},
|
||||
getMenu: async (data) => {
|
||||
return request({
|
||||
url: '/index/business/getMenu',
|
||||
method: Method.POST,
|
||||
data: data,
|
||||
});
|
||||
},
|
||||
getPlatformList: async () => {
|
||||
return request({
|
||||
url: '/index/task/getPlatformList',
|
||||
method: Method.POST,
|
||||
});
|
||||
},
|
||||
getMaterialType: async (data) => {
|
||||
return request({
|
||||
url: '/index/task/getMaterialType',
|
||||
method: Method.POST,
|
||||
data: data,
|
||||
});
|
||||
},
|
||||
getProvince: async () => {
|
||||
return request({
|
||||
url: '/index/task/getProvince',
|
||||
method: Method.POST,
|
||||
});
|
||||
},
|
||||
getSettlementAfter: async () => {
|
||||
return request({
|
||||
url: '/index/task/getSettlementAfter',
|
||||
method: Method.POST,
|
||||
});
|
||||
},
|
||||
getChooseContent: async (data) => {
|
||||
return request({
|
||||
url: '/index/task/getChooseContent',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
getNumberOfReleases: async () => {
|
||||
return Promise.resolve({
|
||||
data: [
|
||||
{
|
||||
id: 1,
|
||||
name: '一次'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: '两次'
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: '三次'
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: '四次'
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
name: '五次'
|
||||
},
|
||||
]
|
||||
})
|
||||
},
|
||||
getPublicationDuration: async () => {
|
||||
return Promise.resolve({
|
||||
data: [
|
||||
{
|
||||
id: 5,
|
||||
name: '5分钟'
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
name: '10分钟'
|
||||
},
|
||||
{
|
||||
id: 20,
|
||||
name: '20分钟'
|
||||
},
|
||||
{
|
||||
id: 30,
|
||||
name: '30分钟'
|
||||
},
|
||||
]
|
||||
})
|
||||
},
|
||||
createTask: async (data) => {
|
||||
return request({
|
||||
url: '/index/task/createTask',
|
||||
method: Method.POST,
|
||||
data: data,
|
||||
});
|
||||
},
|
||||
getTaskPlatformList: async (data) => {
|
||||
return request({
|
||||
url: '/index/task/getPlatformList',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
getTaskStatusList: async (data) => {
|
||||
return request({
|
||||
url: '/index/task/getStatusList',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
getTaskList: async (data) => {
|
||||
return request({
|
||||
url: '/index/task/getTaskList',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
addWithdrawal: async (data) => {
|
||||
return request({
|
||||
url: '/index/business/addWithdrawal',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
getWithdrawalList: async (data) => {
|
||||
return request({
|
||||
url: '/index/business/getWithdrawalList',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
}
|
||||
|
||||
export default merchant;
|
||||
Reference in New Issue
Block a user