package com.softwarebr.nunu.json.admin.oper;

import com.alibaba.fastjson.annotation.JSONField;
import com.brframework.commoncms.annatotion.column.HideColumn;
import com.brframework.commoncms.annatotion.column.ImageColumn;
import com.brframework.commoncms.annatotion.column.SelectColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

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

@Data
@ApiModel
public class AdvertisementResult {

	@ApiModelProperty(value = "id", required = true, example = "1")
	@HideColumn
	private Long id;

	@ApiModelProperty(value = "广告位置", required = true, example = "")
	@SelectColumn(options = {"1,首页","2,创新项目路演厅"})
	private Integer position;

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

	@ApiModelProperty(value = "广告图片", required = true, example = "")
	@ImageColumn
	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 = "")
	@SelectColumn(options = {"1,政策","2,创新资源交易区","3,服务平台","4,创新项目路演厅","5,培训学院"})
	private Integer type;

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

	@ApiModelProperty(value = "状态", required = true, example = "")
	@SelectColumn(options = {"0,下架","1,上架"})
	private Integer status;

	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间", required = true, example = "2018-03-12 21:32:33")
	private LocalDateTime createDate;

}