a029219c596ebece8779f9cd3e8de95ae39e552c.svn-base 1.82 KB
/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ycsl.entity.token;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 一窗受理token获取、调度Entity
 * @author lw
 * @version 2020-07-17
 */
public class YcslToken extends DataEntity<YcslToken> {
	
	private static final long serialVersionUID = 1L;
	private String token;		// token
	private String userid;		// userid
	private Integer syrq;		// syrq
	private Date sdate;		// sdate
	private Date edate;		// edate
	private String isuser;		// 1 使用 0 失效
	
	public YcslToken() {
		super();
	}

	public YcslToken(String id){
		super(id);
	}

	@Length(min=0, max=200, message="token长度必须介于 0 和 200 之间")
	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}
	
	@Length(min=0, max=100, message="userid长度必须介于 0 和 100 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	public Integer getSyrq() {
		return syrq;
	}

	public void setSyrq(Integer syrq) {
		this.syrq = syrq;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getSdate() {
		return sdate;
	}

	public void setSdate(Date sdate) {
		this.sdate = sdate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEdate() {
		return edate;
	}

	public void setEdate(Date edate) {
		this.edate = edate;
	}
	
	@Length(min=0, max=1, message="1 使用 0 失效长度必须介于 0 和 1 之间")
	public String getIsuser() {
		return isuser;
	}

	public void setIsuser(String isuser) {
		this.isuser = isuser;
	}
	
}