租户管理的代码框架
This commit is contained in:
65
src/main/java/com/rj/entity/Tenant.java
Normal file
65
src/main/java/com/rj/entity/Tenant.java
Normal file
@@ -0,0 +1,65 @@
|
||||
package com.rj.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 租户表
|
||||
* </p>
|
||||
*
|
||||
* @author 系统生成
|
||||
* @since 2025-01-XX
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("tenant")
|
||||
@Schema(description="租户表")
|
||||
public class Tenant implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "租户主键ID")
|
||||
@TableId("id")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "租户编码,唯一")
|
||||
@TableField("tenant_code")
|
||||
private String tenantCode;
|
||||
|
||||
@Schema(description = "租户名称")
|
||||
@TableField("tenant_name")
|
||||
private String tenantName;
|
||||
|
||||
@Schema(description = "状态:1-启用,0-禁用")
|
||||
@TableField("status")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "联系人姓名")
|
||||
@TableField("contact_name")
|
||||
private String contactName;
|
||||
|
||||
@Schema(description = "联系人电话")
|
||||
@TableField("contact_phone")
|
||||
private String contactPhone;
|
||||
|
||||
@Schema(description = "租户过期时间")
|
||||
@TableField("expire_time")
|
||||
private LocalDateTime expireTime;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user