shinnosuke
2026-08-06 f40ffaabddb93649ac0d9af95036eb1cbd0bf915
1
2
3
4
5
6
7
8
9
10
11
12
package com.talentcard.server.business.admin;
import jakarta.validation.constraints.*;
public record AdminStaffRequest(
        @NotBlank @Size(max=32) @Pattern(regexp="[A-Za-z0-9]+", message="登录账号只能包含英文和数字") String account,
        @Size(max=64) String password,
        @NotBlank @Size(max=64) String displayName,
        @Pattern(regexp="^$|^1\\d{10}$", message="联系电话格式不正确") String mobile,
        @NotBlank @Size(max=32) String roleCode,
        @NotBlank @Size(max=64) String positionName,
        @Size(max=64) String customerWechat,
        @NotNull Byte status
) {}