optimize the list of comments

This commit is contained in:
landaiqing
2024-09-24 21:37:37 +08:00
parent 5d86914cb7
commit bb2f49fe74
12 changed files with 411 additions and 258 deletions

View File

@@ -1,11 +1,11 @@
package dto
type RoleRequestDto struct {
RoleName string `json:"role_name"`
RoleKey string `json:"role_key"`
RoleName string `json:"role_name" binding:"required"`
RoleKey string `json:"role_key" binding:"required"`
}
type AddRoleToUserRequestDto struct {
Uid string `json:"uid"`
RoleKey string `json:"role_key"`
Uid string `json:"uid" binding:"required"`
RoleKey string `json:"role_key" binding:"required"`
}