package com.ssm.manage.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ssm.manage.utils.DateUtils;
import lombok.Data;
import lombok.experimental.FieldNameConstants;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "sms_type")
@FieldNameConstants
@JsonIgnoreProperties(ignoreUnknown = true)
public class SmsType {
    @Id
    private Long id;
    private Integer startNumber;
    private String rechargeTypeNum;
    private String rechargeTypeName;
    private Integer state;
    private Integer type;
    private BigDecimal rechargeMoney;
    private Integer smsNumber;
    private Integer giftNumber;
    private BigDecimal smsPrice;
    private Integer smsType;
    private String inputStaff;
    private Date inputDate;
    private String updateStaff;
    private Date updateDate;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startDate;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date stopDate;
}
