实现Salon工作台注册审核闭环
This commit is contained in:
@@ -1972,5 +1972,30 @@ export const adminSystemParameterConfigApi = {
|
||||
}
|
||||
}
|
||||
|
||||
export interface WorkbenchRegistrationApplication {
|
||||
id: IdType
|
||||
applicationNo: string
|
||||
userId: IdType
|
||||
roleType: 'MANAGER' | 'STAFF'
|
||||
shopId?: IdType
|
||||
shopName?: string
|
||||
shopAddress?: string
|
||||
status: 'PENDING_ADMIN' | 'PENDING_MANAGER' | 'APPROVED' | 'REJECTED'
|
||||
rejectReason?: string
|
||||
createTime?: string
|
||||
}
|
||||
|
||||
export const adminWorkbenchRegistrationApi = {
|
||||
list() {
|
||||
return adminApi.get<WorkbenchRegistrationApplication[]>('/user/workbench/registration/list') as unknown as Promise<WorkbenchRegistrationApplication[]>
|
||||
},
|
||||
approve(id: IdType) {
|
||||
return adminApi.post<boolean>(`/user/workbench/registration/${id}/approve`)
|
||||
},
|
||||
reject(id: IdType, reason: string) {
|
||||
return adminApi.post<boolean>(`/user/workbench/registration/${id}/reject`, { reason })
|
||||
}
|
||||
}
|
||||
|
||||
export { adminApi }
|
||||
export default adminApi
|
||||
|
||||
Reference in New Issue
Block a user