多租户代码框架

This commit is contained in:
zhonghua1
2025-12-16 23:34:07 +08:00
parent 5453026309
commit 406f7d692b
36 changed files with 956 additions and 39 deletions

View File

@@ -35,6 +35,10 @@ public class AudioManagement implements Serializable {
@TableId("id")
private String id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "录音名称")
@TableField("recording_name")
private String recordingName;

View File

@@ -33,6 +33,10 @@ public class AudioManagementStatistics implements Serializable {
@TableId(value = "id", type = IdType.AUTO)
private Long id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "门店ID")
@TableField("dealership_id")
private Long dealershipId;

View File

@@ -28,6 +28,10 @@ public class AudioTextAnalysisFurniture implements Serializable {
@TableId(type = IdType.ASSIGN_UUID)
private String id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "音频管理ID/父级ID")
@TableField("parent_id")
private String parentId;

View File

@@ -28,6 +28,10 @@ public class AudioTextAnalysisSop implements Serializable {
@TableId(type = IdType.ASSIGN_UUID)
private String id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "父ID,UUID,用于树状结构关联")
@TableField("parent_id")
private String parentId;

View File

@@ -29,6 +29,10 @@ public class CommunicationRecord implements Serializable {
@TableId("id")
private String id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "客户姓名")
@TableField("customer_name")
private String customerName;

View File

@@ -29,6 +29,10 @@ public class CustomerManagement implements Serializable {
@TableId("id")
private String id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "客户姓名")
@TableField("customer_name")
private String customerName;

View File

@@ -21,6 +21,12 @@ public class CustomerProfileAnalysis {
@TableId(type = IdType.ASSIGN_UUID)
private String id;
/**
* 租户ID
*/
@TableField("tenant_id")
private String tenantId;
/**
* AI分析记录ID
*/

View File

@@ -30,6 +30,10 @@ public class Dealership implements Serializable {
@TableId("id")
private String id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "经销商名称")
@TableField("dealership_name")
private String dealershipName;

View File

@@ -28,6 +28,12 @@ public class FaceDetectLog implements Serializable {
@TableId(value = "id", type = IdType.ASSIGN_UUID)
private String id;
/**
* 租户ID
*/
@TableField("tenant_id")
private String tenantId;
/**
* 请求ID
*/

View File

@@ -30,6 +30,10 @@ public class ProjectManagement implements Serializable {
@TableId("id")
private String id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "所属经销商ID")
@TableField("dealership_id")
private String dealershipId;

View File

@@ -30,6 +30,10 @@ public class SalesManagement implements Serializable {
@TableId("id")
private String id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "销售名称")
@TableField("sales_name")
private String salesName;

View File

@@ -23,6 +23,12 @@ public class TtsRequestLog {
*/
@TableId(type = IdType.ASSIGN_UUID)
private String id;
/**
* 租户ID
*/
@TableField("tenant_id")
private String tenantId;
/**
* 请求时间

View File

@@ -28,6 +28,12 @@ public class VideoImageAnalysis implements Serializable {
@TableId(value = "id", type = IdType.ASSIGN_UUID)
private String id;
/**
* 租户ID
*/
@TableField("tenant_id")
private String tenantId;
/**
* 使用的AI模型
*/

View File

@@ -30,6 +30,10 @@ public class VideoManagement implements Serializable {
@TableId("id")
private String id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "视频名称")
@TableField("video_name")
private String videoName;

View File

@@ -27,6 +27,12 @@ public class VideoSynthesisLog {
@TableId(type = IdType.ASSIGN_UUID)
private String id;
/**
* 租户ID
*/
@TableField("tenant_id")
private String tenantId;
/**
* 请求ID(唯一)
*/

View File

@@ -29,6 +29,10 @@ public class YhyAudioUploadLog implements Serializable {
@TableId("id")
private String id;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "文件路径")
@TableField("file_path")
private String filePath;

View File

@@ -33,4 +33,8 @@ public class Role implements Serializable {
@TableField("role_name")
private String roleName;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
}

View File

@@ -30,6 +30,10 @@ public class User implements Serializable {
@TableId("user_id")
private Integer userId;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
@Schema(description = "用户名称")
@TableField("user_name")
private String userName;

View File

@@ -33,4 +33,8 @@ public class UserRole implements Serializable {
@TableField("role_id")
private Integer roleId;
@Schema(description = "租户ID")
@TableField("tenant_id")
private String tenantId;
}