package com.ssm.manage.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ssm.manage.page.BasePage;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Setter
@Getter
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class PlatformApiRequest extends BasePage {
    @Id
    private Long id;

    /**
     * 门店id
     */
    @Column(name = "store_id")
    private Long storeId;


    /**
     * 门店名称
     */
    @Column(name = "store_name")
    private String storeName;

    /**
     * 门店编码
     */
    @Column(name = "store_num")
    private String storeNum;

    /**
     * 平台名称
     */
    @Column(name = "platform_name")
    private String platformName;

    /**
     * 平台id
     */
    @Column(name = "platform_id")
    private Long platformId;

    /**
     * 平台key
     */
    @Column(name = "api_key")
    private String apiKey;

    /**
     * 平台名称
     */
    @Column(name = "api_secret")
    private String apiSecret;

    /**
     * 状态，0待审核/1已审核/2停用
     */
    @Column(name = "state")
    private Integer state;

    /**
     * 申请人
     */
    @Column(name = "add_name")
    private String addName;

    /**
     * 申请时间
     */
    @Column(name = "add_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addDate;

    /**
     * 审核人
     */
    @Column(name = "opening_name")
    private String openingName;

    /**
     * 审核通过时间
     */
    @Column(name = "opening_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date openingDate;

    /**
     * 开通年限
     */
    @Column(name = "opening_year")
    private Integer openingYear;

    /**
     * 申请时间
     */
    @Column(name = "end_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endDate;

    /**
     * 修改人
     */
    @Column(name = "update_name")
    private Integer updateName;

    /**
     * 修改时间
     */
    @Column(name = "update_date")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;


    private String upName;

    private String startTime;
    private String endTime;

}
