package com.copy.trade.entity.form;

import com.copy.trade.entity.base.BaseQueryForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("带单查询表单")
@Data
public class LeadOrderForm extends BaseQueryForm {
    @ApiModelProperty(name = "交易员ID",required = true)
    @NotNull(message = "chk.leadOrder.traderId.not.null")
    private Long traderId;

    @ApiModelProperty(name = "类型",notes = "current-当前,history-历史",required = true,allowableValues = "current,history")
    @NotBlank(message = "chk.leadOrder.type.not.null")
    private String type;
}
