refactor(account): 优化账号管理模块结构
This commit is contained in:
@@ -83,12 +83,12 @@ type PlatformAccountListRequest struct {
|
|||||||
|
|
||||||
// UpdatePasswordParams 修改密码参数(用于 OpenAPI 生成)
|
// UpdatePasswordParams 修改密码参数(用于 OpenAPI 生成)
|
||||||
type UpdatePasswordParams struct {
|
type UpdatePasswordParams struct {
|
||||||
ID uint `params:"id" description:"账号ID"`
|
IDReq
|
||||||
RequestBody UpdatePasswordRequest `json:"body" description:"请求体"`
|
UpdatePasswordRequest
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateStatusParams 状态切换参数(用于 OpenAPI 生成)
|
// UpdateStatusParams 状态切换参数(用于 OpenAPI 生成)
|
||||||
type UpdateStatusParams struct {
|
type UpdateStatusParams struct {
|
||||||
ID uint `params:"id" description:"账号ID"`
|
IDReq
|
||||||
RequestBody UpdateStatusRequest `json:"body" description:"请求体"`
|
UpdateStatusRequest
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ func registerPlatformAccountRoutes(api fiber.Router, h *admin.AccountHandler, do
|
|||||||
Output: new([]model.Role),
|
Output: new([]model.Role),
|
||||||
})
|
})
|
||||||
|
|
||||||
Register(platformAccounts, doc, groupPath, "DELETE", "/:id/roles/:role_id", h.RemoveRole, RouteSpec{
|
Register(platformAccounts, doc, groupPath, "DELETE", "/:account_id/roles/:role_id", h.RemoveRole, RouteSpec{
|
||||||
Summary: "移除角色",
|
Summary: "移除角色",
|
||||||
Tags: []string{"PlatformAccount"},
|
Tags: []string{"PlatformAccount"},
|
||||||
Input: new(model.RemoveRoleParams),
|
Input: new(model.RemoveRoleParams),
|
||||||
|
|||||||
Reference in New Issue
Block a user