- 创建应用配置表及实体类 - 实现应用配置的增删改查接口 - 添加配置值加密解密功能 - 支持按应用ID批量获取配置映射 - 实现配置的批量保存和删除功能 - 添加分页查询和列表查询支持 - 集成租户隔离和软删除功能
88 lines
1.5 KiB
Java
88 lines
1.5 KiB
Java
package com.gxwebsoft.app.entity;
|
||
|
||
import com.baomidou.mybatisplus.annotation.*;
|
||
import lombok.Data;
|
||
import lombok.EqualsAndHashCode;
|
||
|
||
import java.io.Serializable;
|
||
|
||
/**
|
||
* 应用配置表
|
||
*/
|
||
@Data
|
||
@EqualsAndHashCode(callSuper = false)
|
||
@TableName("app_config")
|
||
public class AppConfig implements Serializable {
|
||
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
/**
|
||
* 配置ID
|
||
*/
|
||
@TableId(value = "config_id", type = IdType.AUTO)
|
||
private Integer configId;
|
||
|
||
/**
|
||
* 应用ID
|
||
*/
|
||
private Integer websiteId;
|
||
|
||
/**
|
||
* 配置键
|
||
*/
|
||
private String configKey;
|
||
|
||
/**
|
||
* 配置值(JSON或字符串)
|
||
*/
|
||
private String configValue;
|
||
|
||
/**
|
||
* 配置类型:general/api/callback/wechat/payment/git等
|
||
*/
|
||
private String configType;
|
||
|
||
/**
|
||
* 是否加密 0否 1是
|
||
*/
|
||
private Integer isEncrypted;
|
||
|
||
/**
|
||
* 是否敏感信息 0否 1是
|
||
*/
|
||
private Integer isSecret;
|
||
|
||
/**
|
||
* 配置说明
|
||
*/
|
||
private String description;
|
||
|
||
/**
|
||
* 排序号
|
||
*/
|
||
private Integer sortNumber;
|
||
|
||
/**
|
||
* 租户id
|
||
*/
|
||
private Long tenantId;
|
||
|
||
/**
|
||
* 创建时间
|
||
*/
|
||
@TableField(fill = FieldFill.INSERT)
|
||
private Long createdTime;
|
||
|
||
/**
|
||
* 更新时间
|
||
*/
|
||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||
private Long updatedTime;
|
||
|
||
/**
|
||
* 是否删除 0否 1是
|
||
*/
|
||
@TableLogic
|
||
private Integer deleted;
|
||
}
|