7 changed files with 276 additions and 5 deletions
@ -0,0 +1,33 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
const serviceTitle = '/file' |
||||
|
//GET 传参需要用 params
|
||||
|
//POST 传参需要用 data
|
||||
|
|
||||
|
|
||||
|
// 批量上传
|
||||
|
export function uploadBatch(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}/uploadBatch`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 批量图片审核
|
||||
|
export function checkBatch(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}/checkBatch`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 批量压缩上传
|
||||
|
export function uploadBatchCompImg(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}/uploadBatchCompImg`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
@ -0,0 +1,76 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
const serviceTitle = '/img' |
||||
|
const prefix = '/img/mini/creator' |
||||
|
//GET 传参需要用 params
|
||||
|
//POST 传参需要用 data
|
||||
|
|
||||
|
|
||||
|
// 艺术家手动确认收益
|
||||
|
export function handleUpdateConfirmType(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/handleUpdateConfirmType`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询指定艺术家即将入账广告及邀请次数列表
|
||||
|
export function queryFrontPreDownloadAndInviteCount(creatorId) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/queryFrontPreDownloadAndInviteCount/${creatorId}`, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询指定艺术家即将入账收益列表
|
||||
|
export function queryFrontPreProfit(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/queryFrontPreProfit`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询指定艺术家已入账/转入钱包累计收益
|
||||
|
export function queryFrontInOrOutAmt(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/queryFrontInOrOutAmt`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询指定艺术家已入账收益列表
|
||||
|
export function queryFrontInProfitAmt(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/queryFrontInProfitAmt`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询指定艺术家已入账收益详情
|
||||
|
export function queryFrontInAmtDetails(id) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/queryFrontInAmtDetails/${id}`, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询指定艺术家转入钱包收益列表
|
||||
|
export function queryFrontEndProfitAmt(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/queryFrontEndProfitAmt`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询指定艺术家收益统计
|
||||
|
export function queryFrontProfitInfo(creatorId) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/queryFrontProfitInfo/${creatorId}`, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
@ -0,0 +1,101 @@ |
|||||
|
import request from '@/utils/request' |
||||
|
const serviceTitle = '/img' |
||||
|
const prefix = '/img/mini/creator' |
||||
|
//GET 传参需要用 params
|
||||
|
//POST 传参需要用 data
|
||||
|
|
||||
|
|
||||
|
|
||||
|
// 查询公告详情
|
||||
|
export function getNoticeDetails(id) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/listType/${id}`, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询公告列表
|
||||
|
export function getNoticeList() { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/getNoticeList`, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询邀请记录
|
||||
|
export function getInviteLog(creatorId) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/getInviteLog/${creatorId}`, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询指定艺术家账户
|
||||
|
export function getAccount(creatorId) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/getAccount/${creatorId}`, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询指定艺术家提现记录列表
|
||||
|
export function getWithdrawList(creatorId) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/getWithdrawList/${creatorId}`, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查询指定艺术家提现记录明细
|
||||
|
export function getWithdrawDetails(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/getWithdrawDetails`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 检查艺术家是否可提现
|
||||
|
export function checkWithdraw(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/checkWithdraw`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 发起提现申请
|
||||
|
export function withdraw(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/withdraw`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 10天内重新发起审核
|
||||
|
export function reVerify(creatorId) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/reVerify/${creatorId}`, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 查看艺术家审核结果
|
||||
|
export function queryVerifyStatus(creatorId) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/queryVerifyStatus/${creatorId}`, |
||||
|
method: 'get' |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
// 成为艺术家
|
||||
|
export function insertCreator(data) { |
||||
|
return request({ |
||||
|
url: `${serviceTitle}${prefix}/insertCreator`, |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
|
||||
Loading…
Reference in new issue