package com.hssx.cloudmodel.entity; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.extension.activerecord.Model; import com.baomidou.mybatisplus.annotation.TableId; import java.time.LocalDateTime; import com.baomidou.mybatisplus.annotation.TableField; import com.fasterxml.jackson.annotation.JsonFormat; import java.io.Serializable; /** *

* *

* * @author 吴涛涛 * @since 2019-08-06 */ @TableName("tb_power") public class Power extends Model { private static final long serialVersionUID=1L; /** * 主键 */ @TableId(value = "id", type = IdType.AUTO) private Integer id; /** * 权限类型,0-上传,1-下载,2-浏览,3-审批 */ @TableField("power_type") private Integer powerType; /** * 用户id */ @TableField("user_id") private Integer userId; /** * 项目id */ @TableField("project_id") private Integer projectId; /** * 创建时间 */ @TableField("indate") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private LocalDateTime indate; /** * 操作文档类型 */ @TableField("operating_documents_type") private Integer operatingDocumentsType; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public Integer getPowerType() { return powerType; } public void setPowerType(Integer powerType) { this.powerType = powerType; } public Integer getUserId() { return userId; } public void setUserId(Integer userId) { this.userId = userId; } public Integer getProjectId() { return projectId; } public void setProjectId(Integer projectId) { this.projectId = projectId; } public LocalDateTime getIndate() { return indate; } public void setIndate(LocalDateTime indate) { this.indate = indate; } public Integer getOperatingDocumentsType() { return operatingDocumentsType; } public void setOperatingDocumentsType(Integer operatingDocumentsType) { this.operatingDocumentsType = operatingDocumentsType; } @Override protected Serializable pkVal() { return this.id; } @Override public String toString() { return "Power{" + "id=" + id + ", powerType=" + powerType + ", userId=" + userId + ", projectId=" + projectId + ", indate=" + indate + ", operatingDocumentsType=" + operatingDocumentsType + "}"; } }