提交新功能 分销商 积分 会员体系

This commit is contained in:
xwxuan
2024-02-08 20:44:58 +08:00
parent 0e255d6c3a
commit 6f5e6e4662
928 changed files with 39318 additions and 1408 deletions

View File

@ -0,0 +1,17 @@
package co.yixiang.yshop.module.infra.api.config;
import co.yixiang.yshop.module.infra.api.config.dto.ConfigDTO;
/**
* @author pepis
* @apiNote
**/
public interface ConfigApi {
/**
* 根据参数键,获得参数配置
*
* @param key 配置键
* @return 参数配置
*/
ConfigDTO getConfigByKey(String key);
}

View File

@ -0,0 +1,34 @@
package co.yixiang.yshop.module.infra.api.config.dto;
import lombok.Data;
/**
* @author pepis
* @apiNote
**/
@Data
public class ConfigDTO {
private Long id;
/**
* 参数分类
*/
private String category;
/**
* 参数名称
*/
private String name;
/**
* 参数键名
*
* 支持多 DB 类型时,无法直接使用 key + @TableField("config_key") 来实现转换,原因是 "config_key" AS key 而存在报错
*/
private String configKey;
/**
* 参数键值
*/
private String value;
/**
* 参数类型
*/
private Integer type;
}