AdminMsgTemplate.java 2.04 KB
Newer Older
ilal committed
1 2 3 4 5 6 7
package cn.timer.api.bean.admin;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

mobh committed
8
import com.baomidou.mybatisplus.annotation.FieldStrategy;
ilal committed
9
import com.baomidou.mybatisplus.annotation.IdType;
mobh committed
10
import com.baomidou.mybatisplus.annotation.TableField;
ilal committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* @author LAL 2020-11-09
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name="admin_msg_template")
@ApiModel("消息模板")
public class AdminMsgTemplate extends Model<AdminMsgTemplate> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue
    @TableId (type = IdType.AUTO)
	@ApiModelProperty(value="id id",example="101")
    private Integer id;
    
	@ApiModelProperty(value="模板名称 ",example="模板名称")
    private String templateName;
    
mobh committed
46 47
	@ApiModelProperty(value="对应平台模板编号 ",example="对应平台模板编号")
    private String platformNum;
ilal committed
48 49 50 51 52 53 54
    
	@ApiModelProperty(value="平台类型  1 阿里云",example="101")
    private Integer platformType;
    
	@ApiModelProperty(value="模板内容 ",example="模板内容")
    private String content;
    
mobh committed
55
	@ApiModelProperty(value="类型 1 合同到期提醒, 2 证照到期提醒",example="101")
ilal committed
56 57 58 59 60 61
    private Integer msgType;
    
	@ApiModelProperty(value="状态 0 启用 1 停用",example="101")
    private Integer state;
    
	@ApiModelProperty(value="生产时间 生产时间",example="101")
mobh committed
62
    private Long addtime;
mobh committed
63 64 65 66 67
	
	@ApiModelProperty(value="0 系统默认(公共模板),  1 企业定制",example="0")
	private Integer sysDefault;

	@TableField(updateStrategy= FieldStrategy.IGNORED)
ilal committed
68 69 70 71 72
	@ApiModelProperty(value="企业ID 企业ID",example="101")
    private Integer orgCode;
    

}