package com.copy.trade.entity.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

@Data
@ApiModel(value = "用户信息表单",description = "更新用户个人信息")
public class CustomerForm {

    @ApiModelProperty(name = "昵称")
    @Length(min = 0, max = 10, message = "chk.customer.nickName.invalid")
    private String nickName;

    @ApiModelProperty(name = "描述")
    @Length(min = 0, max = 25, message = "chk.customer.description.invalid")
    private String description;
    
    @ApiModelProperty(name = "自动跟随")
    private Boolean automaticUnfollow;
    
    @ApiModelProperty(name = "最大亏损比例")
    private BigDecimal maxLoss;
    
    @ApiModelProperty(name = "最大盈利比例")
    private BigDecimal maxProfit;

}
