package com.storlead.sales.pojo.entity.systemrule;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 币种设置表
 * </p>
 *
 * @author YPZ
 * @since 2024-04-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("currency_settings")
@ApiModel(value="CurrencySettingsEntity对象", description="币种设置表")
public class CurrencySettingsEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "币种设置主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "币种ISO代码")
    @TableField("iso")
    private String iso;

    @ApiModelProperty(value = "币种符号")
    @TableField("currency_symbol")
    private String currencySymbol;

    @ApiModelProperty(value = "中文名称")
    @TableField("chinese_name")
    private String chineseName;

    @ApiModelProperty(value = "英文名称")
    @TableField("english_name")
    private String englishName;

    @ApiModelProperty(value = "汇率")
    @TableField("rate")
    private BigDecimal rate;

    @ApiModelProperty(value = "是否置顶（0不置顶，1置顶）")
    @TableField("has_top")
    private Boolean hasTop;

    @ApiModelProperty(value = "置顶时间")
    @TableField("top_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime topTime;


}
