From 6c2e9ba62c418185361179e7014862c481f34e17 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Wed, 09 Mar 2022 14:22:09 +0800 Subject: [PATCH] conflect merge --- src/main/java/com/xcong/excoin/modules/otc/dto/EntrustOrderAddDto.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/otc/dto/EntrustOrderAddDto.java b/src/main/java/com/xcong/excoin/modules/otc/dto/EntrustOrderAddDto.java new file mode 100644 index 0000000..8f0700b --- /dev/null +++ b/src/main/java/com/xcong/excoin/modules/otc/dto/EntrustOrderAddDto.java @@ -0,0 +1,38 @@ +package com.xcong.excoin.modules.otc.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import java.math.BigDecimal; + + +@Data +@ApiModel(value = "EntrustOrderAddDto", description = "添加委托单接口参数接收类") +public class EntrustOrderAddDto { + + @ApiModelProperty(value = "id-编辑时传") + private Long id; + + @NotBlank(message = "单价不能为空") + @ApiModelProperty(value = "单价", example = "1") + private BigDecimal unitPrice; + + @NotBlank(message = "数量不能为空") + @ApiModelProperty(value = "数量", example = "1") + private BigDecimal amount; + + @ApiModelProperty(value = "总额", example = "1") + private BigDecimal totalAmount; + + @ApiModelProperty(value = "限额 - 最大值", example = "2") + private BigDecimal max; + + @ApiModelProperty(value = "限额 - 最小值", example = "1") + private BigDecimal min; + + @NotBlank(message = "委托单类型不能为空") + @ApiModelProperty(value = "类型", example = "B/买-S/卖 编辑不传") + private String type; +} -- Gitblit v1.9.1