feat: 角色默认信用与店铺实际额度管理
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m12s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m12s
This commit is contained in:
@@ -8,7 +8,7 @@ import type {
|
||||
PlatformRole,
|
||||
RoleQueryParams,
|
||||
PlatformRoleFormData,
|
||||
PermissionTreeNode,
|
||||
UpdateRoleDefaultCreditRequest,
|
||||
BaseResponse,
|
||||
PaginationResponse
|
||||
} from '@/types/api'
|
||||
@@ -51,6 +51,19 @@ export class RoleService extends BaseService {
|
||||
return this.update(`/api/admin/roles/${id}`, data)
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新客户角色默认信用
|
||||
* PUT /api/admin/roles/{id}/default-credit
|
||||
* @param id 角色ID
|
||||
* @param data 默认信用配置
|
||||
*/
|
||||
static updateRoleDefaultCredit(
|
||||
id: number,
|
||||
data: UpdateRoleDefaultCreditRequest
|
||||
): Promise<BaseResponse> {
|
||||
return this.put<BaseResponse>(`/api/admin/roles/${id}/default-credit`, data)
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除角色
|
||||
* DELETE /api/admin/roles/{id}
|
||||
|
||||
Reference in New Issue
Block a user