package com.hzs.system.config.dto;/**
 * @Description:
 * @Author: yuhui
 * @Time: 2023/5/15 10:21
 * @Classname: AdvertBannerDTO
 * @PackageName: com.hzs.system.config.dto
 */

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.core.annotation.Transaction;
import com.hzs.common.core.constant.EnumsPrefixConstants;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 广告banner
 *@BelongsProject: hzs_cloud
 *@BelongsPackage: com.hzs.system.config.dto
 *@Author: yh
 *@CreateTime: 2023-05-15  10:21
 *@Description: TODO
 *@Version: 1.0
 */
@Data
public class AdvertBannerDTO implements Serializable {




    private Long pkId;

    /**
     * 发布位置 EPosition
     */
    @Transaction(transactionKey = EnumsPrefixConstants.POSITION)
    private Integer position;

    /**
     * 发布位置
     */
    private String positionVal;

    /**
     * 生效日期
     */

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

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 图片
     */
    private String picture;

    /**
     * 链接
     */
    private String link;

}
