租户管理的代码框架

This commit is contained in:
zhonghua1
2025-12-20 17:23:07 +08:00
parent 1c5a6eee8b
commit 08bc957bd0
5 changed files with 363 additions and 0 deletions

View 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;
}