first commit
This commit is contained in:
@ -0,0 +1,40 @@
|
||||
package com.qiaoba.api.system.entity;
|
||||
|
||||
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.qiaoba.common.base.entity.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* 系统配置 sys_config
|
||||
*
|
||||
* @author ailanyin
|
||||
* @version 1.0
|
||||
* @since 2023-05-24 20:06:17
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("sys_config")
|
||||
public class SysConfig extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Excel(name = "参数主键", width = 20)
|
||||
@TableId
|
||||
private String configId;
|
||||
|
||||
@Excel(name = "参数名称", width = 25)
|
||||
private String configName;
|
||||
|
||||
@Excel(name = "参数键名", width = 30)
|
||||
private String configKey;
|
||||
|
||||
@Excel(name = "参数键值")
|
||||
private String configValue;
|
||||
|
||||
@Excel(name = "系统内置", width = 20, replace = {"是_Y", "否_N"})
|
||||
private String configType;
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.qiaoba.api.system.entity.param;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 系统配置查询参数
|
||||
*
|
||||
* @author ailanyin
|
||||
* @version 1.0
|
||||
* @since 2023-05-24 20:06:17
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class SysConfigParam implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String configName;
|
||||
|
||||
private String configKey;
|
||||
|
||||
private String configType;
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
package com.qiaoba.api.system.service;
|
||||
|
||||
import com.qiaoba.api.system.entity.SysConfig;
|
||||
import com.qiaoba.api.system.entity.param.SysConfigParam;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 系统配置对外暴露接口
|
||||
*
|
||||
* @author ailanyin
|
||||
* @version 1.0
|
||||
* @since 2023-04-23 20:33:43
|
||||
*/
|
||||
public interface SysConfigApiService {
|
||||
|
||||
/**
|
||||
* 新增系统配置
|
||||
*
|
||||
* @param sysConfig sysConfig
|
||||
* @return > 0 = success
|
||||
*/
|
||||
int insert(SysConfig sysConfig);
|
||||
|
||||
/**
|
||||
* 更新系统配置
|
||||
*
|
||||
* @param sysConfig sysConfig
|
||||
* @return > 0 = success
|
||||
*/
|
||||
int updateById(SysConfig sysConfig);
|
||||
|
||||
/**
|
||||
* 查询列表
|
||||
*
|
||||
* @param param 条件
|
||||
* @return 系统配置列表
|
||||
*/
|
||||
List<SysConfig> selectList(SysConfigParam param);
|
||||
|
||||
/**
|
||||
* 查询详细
|
||||
*
|
||||
* @param configId 系统配置Id
|
||||
* @return 系统配置信息
|
||||
*/
|
||||
SysConfig selectById(String configId);
|
||||
|
||||
/**
|
||||
* 删除系统配置
|
||||
*
|
||||
* @param configId 系统配置Id
|
||||
* @return > 0 = success
|
||||
*/
|
||||
int deleteById(String configId);
|
||||
|
||||
/**
|
||||
* 批量删除系统配置
|
||||
*
|
||||
* @param ids 系统配置Ids
|
||||
* @return > 0 = success
|
||||
*/
|
||||
int deleteByIds(List<String> ids);
|
||||
|
||||
/**
|
||||
* 刷新缓存
|
||||
*/
|
||||
void resetConfigCache();
|
||||
|
||||
/**
|
||||
* 根据参数键名查询参数值
|
||||
*
|
||||
* @param configKey configKey
|
||||
* @return
|
||||
*/
|
||||
String selectConfigByKey(String configKey);
|
||||
}
|
Reference in New Issue
Block a user