多租户代码框架
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -21,6 +21,12 @@ public class CustomerProfileAnalysis {
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
@TableField("tenant_id")
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* AI分析记录ID
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -23,6 +23,12 @@ public class TtsRequestLog {
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
@TableField("tenant_id")
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 请求时间
|
||||
|
||||
@@ -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模型
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -27,6 +27,12 @@ public class VideoSynthesisLog {
|
||||
@TableId(type = IdType.ASSIGN_UUID)
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 租户ID
|
||||
*/
|
||||
@TableField("tenant_id")
|
||||
private String tenantId;
|
||||
|
||||
/**
|
||||
* 请求ID(唯一)
|
||||
*/
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -33,4 +33,8 @@ public class Role implements Serializable {
|
||||
@TableField("role_name")
|
||||
private String roleName;
|
||||
|
||||
@Schema(description = "租户ID")
|
||||
@TableField("tenant_id")
|
||||
private String tenantId;
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -33,4 +33,8 @@ public class UserRole implements Serializable {
|
||||
@TableField("role_id")
|
||||
private Integer roleId;
|
||||
|
||||
@Schema(description = "租户ID")
|
||||
@TableField("tenant_id")
|
||||
private String tenantId;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user