package com.seer.teach.mp.admin.controller.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
@Schema(name = "AgentEmployeeSaveReq", description = "新增代理商员工请求参数")
public class AgentEmployeeSaveReq {


    @Schema(description = "代理商Id")
    @NotNull(message = "代理商Id不能为空")
    private Integer agentId;

    @Schema(description = "用户Id")
    private Integer userId;

    @Schema(description = "员工名称")
    @NotBlank(message = "员工名称不能为空")
    private String employeeName;

    @Schema(description = "员工密码")
    @NotBlank(message = "员工密码不能为空")
    private String password;

    @Schema(description = "员工手机号")
    @NotBlank(message = "员工手机号不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "请输入正确的手机号")
    private String mobile;

    @Schema(description = "员工职位")
    private String position;

    @Schema(description = "员工状态：0-禁用，1-启用")
    private Integer status = 1;

}
