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

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

@Schema(name = "MpAgentReq", description = "代理商请求参数")
@Data
public class MpAgentReq {

    @Schema(description = "代理商ID")
    private Integer id;

    /**
     * 代理商名称
     */
    @Schema(description = "代理商名称")
    private String agentName;

    /**
     * 代理商编码
     */
    @Schema(description = "代理商编码")
    private String agentCode;

    /**
     * 代理商等级
     */
    @Schema(description = "代理商等级")
    private String agentLevel;

    /**
     * 联系人姓名
     */
    @Schema(description = "联系人姓名")
    private String contactName;

    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "请输入正确的手机号")
    private String contactPhone;

    /**
     * 登录密码
     */
    @Schema(description = "登录密码")
    private String password;

    /**
     * 代理商地址
     */
    @Schema(description = "代理商地址")
    private String address;

    /**
     * 代理商状态：0-禁用，1-启用
     */
    @Schema(description = "代理商状态：0-禁用，1-启用")
    private Integer status;
}