package com.qnfhq.modules.c2c.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * c2c订单
 *
 * @author yelz 30262728@qq.com
 * @since 1.0.0 2025-11-17
 */
@Data
@Schema(name = "c2c订单")
public class C2cOrderCreateDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@SchemaProperty(name = "方向1买入  2 卖出")
    @NotNull(message="{NotNull.direction}")//方向不能为空
	private Integer direction;

	@SchemaProperty(name = "法币")
    @NotBlank(message="{NotBlank.legalCoin}")//法币不能为空
	private String legalCoin;

	@SchemaProperty(name = "交易币种")
    @NotBlank(message="{NotBlank.symbol}")//交易币种不能为空
	private String symbol;

	@SchemaProperty(name = "广告编号")
    @NotNull(message="{NotNull.c2cAdId}")//广告编号不能为空
	private Long c2cAdId;

	@SchemaProperty(name = "法币/数币金额")
    @NotNull(message="{NotNull.tranAmount}")//交易金额/数量不能为空
	private BigDecimal tranAmount;

    @SchemaProperty(name = "单位cny/usdt")
    @NotBlank(message="{NotNull.unit}")//交易单位不能为空
    private String unit;

	@SchemaProperty(name = "支付方式比如1微信 2支付宝 3银行借记卡")
    @NotNull(message="{NotNull.payType}")//支付方式不能为空
	private Integer payType;

}
