package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 市场币交易参数表 - 币交易相关市场字段
 * </p>
 *
 * @author XKF
 * @since 2025-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("MARKETCOINCONFIG")
@ApiModel(value="Marketcoinconfig对象", description="市场币交易参数表 - 币交易相关市场字段")
public class Marketcoinconfig extends Model<Marketcoinconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "市场ID - 法币交易")
    private Long marketid;

    @ApiModelProperty(value = "交易货币IDs [逗号分隔]  - currency枚举 >=1000")
    @TableField("TRADECURRENCYIDS")
    private String tradecurrencyids;

    @ApiModelProperty(value = "支付货币IDs [逗号分隔] - paycurrency枚举")
    @TableField("PAYCURRENCYIDS")
    private String paycurrencyids;

    @ApiModelProperty(value = "挂牌最小量")
    @TableField("LISTMINQTY")
    private BigDecimal listminqty;

    @ApiModelProperty(value = "挂牌最大量")
    @TableField("LISTMAXQTY")
    private BigDecimal listmaxqty;

    @ApiModelProperty(value = "支持的支付方式  [逗号分隔] - 1:银行卡 2:微信 3:支付宝 4:PayPal")
    @TableField("PAYMODELS")
    private String paymodels;

    @ApiModelProperty(value = "确认付款时长(分)")
    @TableField("PAYOVERTIME")
    private Integer payovertime;

    @ApiModelProperty(value = "确认放行时长(分)")
    @TableField("CONFIRMOVERTIME")
    private Integer confirmovertime;

    @ApiModelProperty(value = "修改人")
    @TableField("MODIFIERID")
    private BigDecimal modifierid;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATETIME")
    private Date updatetime;


    @Override
    public Serializable pkVal() {
        return this.marketid;
    }

}
