暂存一下,防止丢失
This commit is contained in:
@@ -55,6 +55,14 @@ func registerRoleRoutes(api fiber.Router, h *admin.RoleHandler, doc *openapi.Gen
|
||||
Auth: true,
|
||||
})
|
||||
|
||||
Register(roles, doc, groupPath, "PUT", "/:id/default-credit", h.UpdateDefaultCredit, RouteSpec{
|
||||
Summary: "更新客户角色的新建代理默认信用模板",
|
||||
Tags: []string{"角色"},
|
||||
Input: new(dto.UpdateRoleDefaultCreditParams),
|
||||
Output: new(dto.RoleDefaultCreditResponse),
|
||||
Auth: true,
|
||||
})
|
||||
|
||||
Register(roles, doc, groupPath, "DELETE", "/:id", h.Delete, RouteSpec{
|
||||
Summary: "删除角色",
|
||||
Tags: []string{"角色"},
|
||||
|
||||
Reference in New Issue
Block a user