This commit is contained in:
@@ -26,6 +26,18 @@ module.exports = {
|
||||
})
|
||||
},
|
||||
|
||||
uploadRegistrationAvatar(registrationTicket, filePath) {
|
||||
const { uploadFile } = require('../utils/upload')
|
||||
return uploadFile({
|
||||
url: '/user/workbench/register/avatar',
|
||||
baseUrl: API_DOMAIN,
|
||||
filePath,
|
||||
name: 'file',
|
||||
formData: { registrationTicket },
|
||||
errorMessage: '头像上传失败'
|
||||
})
|
||||
},
|
||||
|
||||
getAvailableRegistrationShops() {
|
||||
return request({
|
||||
url: '/user/workbench/shops/available',
|
||||
|
||||
@@ -24,7 +24,7 @@ module.exports = {
|
||||
|
||||
createUser(data) {
|
||||
return request({
|
||||
url: '/manager/employees/users',
|
||||
url: '/manager/employees/users/unlinked',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
@@ -80,10 +80,27 @@ module.exports = {
|
||||
})
|
||||
},
|
||||
|
||||
approveApplication(id) {
|
||||
unassociatedApplications() {
|
||||
return request({ url: '/user/workbench/registration/unassociated' })
|
||||
},
|
||||
|
||||
unboundArtists(id) {
|
||||
return request({ url: `/user/workbench/registration/${id}/unbound-artists` })
|
||||
},
|
||||
|
||||
preAssociateApplication(id, targetArtistUserId) {
|
||||
return request({
|
||||
url: `/user/workbench/registration/${id}/pre-associate`,
|
||||
method: 'POST',
|
||||
data: { targetArtistUserId }
|
||||
})
|
||||
},
|
||||
|
||||
approveApplication(id, data) {
|
||||
return request({
|
||||
url: `/user/workbench/registration/${id}/approve`,
|
||||
method: 'POST'
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user