|
@@ -8,6 +8,7 @@ import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.Data;
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.util.Set;
|
|
|
|
|
@@ -24,7 +25,8 @@ public class RoleRespVO {
|
|
|
@ExcelProperty("角色名称")
|
|
|
private String name;
|
|
|
|
|
|
- @Schema(description = "角色标志", requiredMode = Schema.RequiredMode.REQUIRED, example = "ADMIN")
|
|
|
+ @Schema(description = "角色标志", requiredMode = Schema.RequiredMode.REQUIRED, example = "admin")
|
|
|
+ @NotBlank(message = "角色标志不能为空")
|
|
|
@ExcelProperty("角色标志")
|
|
|
private String code;
|
|
|
|