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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.mybatis.entity.SysBaseField;
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;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "CureencySettingsVO", description = "币种设置VO")
public class CurrencySettingsVO extends SysBaseField {
    @ApiModelProperty(value = "币种设置主键")
    private Long id;

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

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

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

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

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

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

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

    @ApiModelProperty(value = "归属人员姓名")
    private String ownerByName;
}
