package com.m2pool.pool.vo;

import com.m2pool.common.core.xss.Xss;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @Description 绑定挖矿账号请求体
 * @Date 2024/6/18 14:05
 * @Author 杜懿
 */
@Data
public class MinerAccountAddVo {

    @NotBlank(message = "请先选择币种")
    @Xss
    public String coin;

    @NotBlank(message = "请先输入挖矿账号")
    @Size(min = 3,max = 24,message="挖矿账户名长度必须在 3 ~ 24 字符之间！")
    @Pattern(regexp = "[a-zA-Z0-9|_]+$",message = "挖矿账户名仅允许使用字母、数字、下划线，不能包含其他特殊字符或空格")
    @Xss
    public String ma;

    //@NotBlank(message = "请先输入需要绑定的钱包地址")
    @Xss
    public String balance;

    @Xss
    public String remarks;

    public long code;
}
