Finish role add and get

This commit is contained in:
2023-11-09 23:28:43 +08:00
parent 5af0c8283e
commit d176cc684b
9 changed files with 83 additions and 25 deletions

View File

@@ -5,11 +5,11 @@ import jakarta.validation.constraints.NotBlank
data class RoleAddParam(
@Schema(description = "角色名称")
@field:NotBlank
val name: String,
@field:NotBlank(message = "Name can not be blank")
val name: String?,
@Schema(description = "启用")
val enable: Boolean = true,
val enable: Boolean? = true,
@Schema(description = "权限 ID 列表")
val powerIds: List<Long>? = null