24 lines
620 B
Kotlin
24 lines
620 B
Kotlin
package top.fatweb.api.param.authentication
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema
|
|
import jakarta.validation.constraints.NotBlank
|
|
|
|
/**
|
|
* Role add param
|
|
*
|
|
* @author FatttSnake, fatttsnake@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
@Schema(description = "角色添加请求参数")
|
|
data class RoleAddParam(
|
|
@Schema(description = "角色名称")
|
|
@field:NotBlank(message = "Name can not be blank")
|
|
val name: String?,
|
|
|
|
@Schema(description = "启用", allowableValues = ["true", "false"])
|
|
val enable: Boolean? = true,
|
|
|
|
@Schema(description = "权限 ID 列表")
|
|
val powerIds: List<Long>? = null
|
|
)
|