| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.Valid; |
| | | import javax.validation.constraints.Min; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | |
| | | @ApiModel(value = "TransferDto", description = "转账接收参数类") |
| | | public class TransferDto { |
| | | |
| | | @NotBlank(message = "参数不能为空") |
| | | @ApiModelProperty(value = "联系电话或邀请码", example = "123") |
| | | @ApiModelProperty(value = "转出类型 1:FCM 2:令牌", example = "1") |
| | | private int type; |
| | | |
| | | @NotBlank(message = "转出账户不能为空") |
| | | @ApiModelProperty(value = "转出账户", example = "123") |
| | | private String account; |
| | | |
| | | @NotNull(message = "参数不能为空") |
| | | @Valid |
| | | @NotNull(message = "金额不能为空") |
| | | @Min(0) |
| | | @ApiModelProperty(value = "金额", example = "1") |
| | | private BigDecimal amount; |
| | | |
| | | @NotBlank(message = "参数不能为空") |
| | | @NotBlank(message = "交易密码不能为空") |
| | | @ApiModelProperty(value = "交易密码", example = "123456") |
| | | private String tradePwd; |
| | | } |