package com.copy.trade.entity.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import java.math.BigDecimal;

@Data
@ApiModel
public class TraderLevelForm {
	
	private Long id;

    @ApiModelProperty("等级中文名称")
    @Length(min = 1,max = 10,message = "超过最大字符长度")
    private String name;

    @ApiModelProperty("等级英文名称")
    private String enName;

    @ApiModelProperty("资产要求")
    @DecimalMin(value = "1")
    private BigDecimal asset;

    @ApiModelProperty("最大跟随人数")
    @Min(value = 1)
    private Integer maxFollow;
    
    @ApiModelProperty("分润比例")
    private BigDecimal dividendPercent;

}
