package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author wy
 */
@Data
@TableName("tz_keyword")
public class Keyword implements Serializable {

    private static final long serialVersionUID = 2933585102741021542L;

    @TableId
    private Integer id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("类型 1关键词 2热门搜索词 3推荐搜索词 ")
    private Integer type;

    @ApiModelProperty("落地页名称")
    private String resultName;

    @ApiModelProperty("跳转参数")
    private String jumpParam;

    @ApiModelProperty("有效时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String effectiveTime;

    @ApiModelProperty("截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String deadTime;

    @ApiModelProperty("状态 1正常 2关闭")
    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @TableLogic
    private Integer deleted;
}
