package com.goafanti.common.model;

import java.util.Date;

import javax.validation.constraints.Max;
import javax.validation.constraints.Size;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat.Shape;

public class Banners {
	/**
	 * 主键
	 */
	private Long	id;

	/**
	 * 广告图位置标识
	 */
	private String	sign;

	/**
	 * 图片描述
	 */
	@Size(min = 0, max = 255)
	private String	text;

	/**
	 * 图片url
	 */
	@Size(min = 0, max = 255)
	private String	imgurl;

	/**
	 * 广告图跳转链接地址
	 */
	@Size(min = 0, max = 255)
	private String	url;

	/**
	 * 广告图宽度
	 */
	@Max(value = 99999)
	private Integer	width;

	/**
	 * 广告图高度
	 */
	@Max(value = 99999)
	private Integer	height;

	/**
	 * 开始日期
	 */
	private Date	startDate;

	/**
	 * 结束日期
	 */
	private Date	endDate;

	@JsonFormat(shape = Shape.STRING)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getWidth() {
		return width;
	}

	public void setWidth(Integer width) {
		this.width = width;
	}

	public Integer getHeight() {
		return height;
	}

	public void setHeight(Integer height) {
		this.height = height;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
}