Class SettingService

java.lang.Object
io.github.xezzon.zeroweb.setting.internal.SettingService
All Implemented Interfaces:
ISettingService

@Service public class SettingService extends Object implements ISettingService

业务参数服务

提供业务参数的完整业务逻辑处理,包括新增、查询、更新、删除等操作。 负责业务参数的数据验证、重复检查和事务管理。

Author:
xezzon
  • Constructor Details

    • SettingService

      public SettingService(SettingDAO settingDAO)
      依赖注入
      Parameters:
      settingDAO - 业务参数数据库操作
  • Method Details

    • queryByCode

      public Setting queryByCode(@NonNull String code)
      Description copied from interface: ISettingService

      根据参数标识查询配置项

      通过业务参数的唯一标识符查询具体的参数配置。

      Specified by:
      queryByCode in interface ISettingService
      Parameters:
      code - 业务参数标识,如 "system.theme"
      Returns:
      查找到的配置项