| | |
| | | package com.talentcard.server.business.admin; |
| | | import jakarta.validation.constraints.*; |
| | | public record AdminRoleRequest(@NotBlank @Size(max=64) String roleName, @NotBlank @Pattern(regexp="^[A-Za-z0-9_]{2,32}$") String roleCode, @Size(max=255) String remark, @NotNull Byte status) {} |
| | | public record AdminRoleRequest( |
| | | @NotBlank @Size(max=64) String roleName, |
| | | @Pattern(regexp="^$|^[A-Za-z0-9_]{2,32}$") String roleCode, |
| | | @Size(max=255) String remark, |
| | | @NotNull Byte status, |
| | | java.util.List<@Pattern(regexp="^[a-z0-9_.-]{1,80}$") String> permissionCodes |
| | | ) {} |