package com.softwarebr.nunu.dto.oper;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @date 2020-02-18 10:58:32
 * @author lilin
 */

@Data
public class AdvertisementParamDTO {

    @ApiModelProperty(value = "广告位置", required = true, example = "")
    private Integer position;

    @ApiModelProperty(value = "广告名称", required = true, example = "")
    private String name;

    @ApiModelProperty(value = "广告图片", required = true, example = "")
    private String advertUri;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "开始时间", required = true, example = "")
    private LocalDateTime startDate;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "结束时间", required = true, example = "")
    private LocalDateTime endDate;

    @ApiModelProperty(value = "排序值", required = true, example = "")
    private Integer sortValue;

    @ApiModelProperty(value = "链接类型", required = true, example = "")
    private Integer linkType;

    @ApiModelProperty(value = "跳转类型", required = true, example = "")
    private Integer type;

    @ApiModelProperty(value = "跳转地址", required = true, example = "")
    private String linkUri;
}
