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;

/**
 * 浏览广告
 *
 * @author yelz 30262728@qq.com
 * @since 1.0.0 2025-11-17
 */
@Data
@Schema(name = "浏览广告")
public class C2cAdViewDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@SchemaProperty(name = "自增广告编号")
	private Long id;

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

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

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

	@SchemaProperty(name = "数币的总数量")
	private BigDecimal amount;

	@SchemaProperty(name = "支付方式")
	private String payway;

	@SchemaProperty(name = "页码")
	private String pageNum;

	@SchemaProperty(name = "每页条数")
	private String pageSize;

    @SchemaProperty(name = "标签")
    @NotNull(message="{NotNull.tag}")//标签不能为空
    private Integer tag;

}
