|
@@ -1,17 +1,19 @@
|
|
|
package cc.iotkit.data.model;
|
|
package cc.iotkit.data.model;
|
|
|
|
|
|
|
|
|
|
+import cc.iotkit.common.tenant.dao.TenantAware;
|
|
|
|
|
+import cc.iotkit.common.tenant.listener.TenantListener;
|
|
|
import cc.iotkit.model.system.SysOssConfig;
|
|
import cc.iotkit.model.system.SysOssConfig;
|
|
|
import io.github.linpeilie.annotations.AutoMapper;
|
|
import io.github.linpeilie.annotations.AutoMapper;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
|
+import org.hibernate.annotations.Filter;
|
|
|
|
|
+import org.hibernate.annotations.FilterDef;
|
|
|
import org.hibernate.annotations.GenericGenerator;
|
|
import org.hibernate.annotations.GenericGenerator;
|
|
|
|
|
+import org.hibernate.annotations.ParamDef;
|
|
|
|
|
|
|
|
-import javax.persistence.Entity;
|
|
|
|
|
-import javax.persistence.GeneratedValue;
|
|
|
|
|
-import javax.persistence.Id;
|
|
|
|
|
-import javax.persistence.Table;
|
|
|
|
|
|
|
+import javax.persistence.*;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 对象存储配置对象 sys_oss_config
|
|
* 对象存储配置对象 sys_oss_config
|
|
@@ -24,7 +26,10 @@ import javax.persistence.Table;
|
|
|
@Table(name = "sys_oss_config")
|
|
@Table(name = "sys_oss_config")
|
|
|
@ApiModel(value = "对象存储配置对象")
|
|
@ApiModel(value = "对象存储配置对象")
|
|
|
@AutoMapper(target = SysOssConfig.class)
|
|
@AutoMapper(target = SysOssConfig.class)
|
|
|
-public class TbSysOssConfig extends BaseEntity {
|
|
|
|
|
|
|
+@FilterDef(name = "tenantFilter", parameters = {@ParamDef(name = "tenantId", type = "string")})
|
|
|
|
|
+@Filter(name = "tenantFilter", condition = "tenant_id = :tenantId")
|
|
|
|
|
+@EntityListeners(TenantListener.class)
|
|
|
|
|
+public class TbSysOssConfig extends BaseEntity implements TenantAware {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 主建
|
|
* 主建
|