超掌柜支付 参数初始化封装

SysParam增加缓存
This commit is contained in:
2025-02-12 15:11:44 +08:00
parent 88d44f0a77
commit 7000892d9b
15 changed files with 178 additions and 37 deletions

View File

@@ -0,0 +1,22 @@
package com.czg.system.enums;
import lombok.Getter;
/**
* @author ww
*/
@Getter
public enum SysParamCodeEnum {
PAY_CZG_DOMAIN("pay_czg_domain", "超掌柜支付域名"),
;
private final String code;
private final String msg;
SysParamCodeEnum(String code, String msg) {
this.code = code;
this.msg = msg;
}
}

View File

@@ -8,7 +8,7 @@ import com.mybatisflex.core.service.IService;
import java.util.List;
/**
* 服务层。
* 服务层。
*
* @author mac
* @since 2025-02-07
@@ -17,6 +17,7 @@ public interface SysParamsService extends IService<SysParams> {
/**
* 新增参数
*
* @param paramsDTO 参数
* @return 新增结果
*/
@@ -24,6 +25,7 @@ public interface SysParamsService extends IService<SysParams> {
/**
* 修改参数
*
* @param paramsDTO 参数
* @return 修改结果
*/
@@ -31,6 +33,7 @@ public interface SysParamsService extends IService<SysParams> {
/**
* 删除参数
*
* @param code 参数code
* @return 删除结果
*/
@@ -38,16 +41,21 @@ public interface SysParamsService extends IService<SysParams> {
/**
* 根据参数编码获取参数
* @param code 参数编码
* @return 参数
*
* @param code 参数编码
* @return 参数
*/
CzgResult<SysParamsDTO> getParamsByCode(String code);
SysParams getSysParam(String code);
String getSysParamValue(String code);
/**
* 根据参数类型获取参数
* @param type 参数类型
* @return 参数列表
*
* @param type 参数类型
* @return 参数列表
*/
CzgResult<List<SysParamsDTO>> getParamsByType(Integer type);