创作者微信小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

201 lines
3.9 KiB

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}/getNoticeDetails/${id}`,
method: 'get'
})
}
// 查询公告列表
export function getNoticeList(data) {
return request({
url: `${serviceTitle}${prefix}/getNoticeList`,
method: 'post',
data
})
}
// 查询邀请记录
export function getInviteLog(data) {
return request({
url: `${serviceTitle}${prefix}/getInviteLog`,
method: 'post',
data
})
}
// 查询指定艺术家账户
export function getCreatorAccount(creatorId) {
return request({
url: `${serviceTitle}${prefix}/getAccount/${creatorId}`,
method: 'get'
})
}
// 查询指定艺术家提现记录分页
export function getWithdrawList(data) {
return request({
url: `${serviceTitle}${prefix}/getWithdrawList`,
method: 'post',
data
})
}
// 查询指定艺术家提现记录明细
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
})
}
// 检查手机号是否重复
export function checkPhone(data) {
return request({
url: `${serviceTitle}${prefix}/checkPhone`,
method: 'post',
data
})
}
// 检查搜索码是否重复
export function checkScanCode(data) {
return request({
url: `${serviceTitle}${prefix}/checkScanCode`,
method: 'post',
data
})
}
// 检查邀请码是否存在
export function checkInviteCode(data) {
return request({
url: `${serviceTitle}${prefix}/checkInviteCode`,
method: 'post',
data
})
}
// 新增艺术家收款账户
export function addCreatorAccount(data) {
return request({
url: `${serviceTitle}${prefix}/insertAccount`,
method: 'post',
data
})
}
// 检查艺术家收款账户是否存在
export function checkAccountExist(data) {
return request({
url: `${serviceTitle}${prefix}/checkAccountExist`,
method: 'post',
data
})
}
// 检查艺术家收款账户是否超过4个
export function checkAccountUpToFour(creatorId) {
return request({
url: `${serviceTitle}${prefix}/checkAccountUpToFour/${creatorId}`,
method: 'get',
})
}
// 删除艺术家收款账户
export function deleteAccount(ids) {
return request({
url: `${serviceTitle}${prefix}/deleteAccount/${ids}`,
method: 'get',
})
}
// 设置艺术家收款账户默认状态
export function setDefaultAccountStatus(data) {
return request({
url: `${serviceTitle}${prefix}/setDefaultAccountStatus`,
method: 'post',
data
})
}
// 获取艺术家信息
export function getCreatorInfo(creatorId) {
return request({
url: `${serviceTitle}${prefix}/getCreatorInfo/${creatorId}`,
method: 'get'
})
}
// 获取艺术家粉丝喜欢收藏量
export function getCreatorInfoFansLike(creatorId) {
return request({
url: `${serviceTitle}${prefix}/queryCreatorFansLikeNum/${creatorId}`,
method: 'get'
})
}
// 艺术家自定义标签
export function creatorSign(data) {
return request({
url: `${serviceTitle}${prefix}/creatorSign`,
method: 'post',
data
})
}