|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
-
- //
-
-
-
-
-
-
-
-
- namespace SafeCampus.System;
-
- /// <summary>
- /// 系统配置服务
- /// </summary>
- public interface IConfigService : ITransient
- {
- #region 查询
-
- /// <summary>
- /// 根据分类和配置键获配置
- /// </summary>
- /// <param name="category">分类</param>
- /// <param name="configKey">配置键</param>
- /// <returns>配置信息</returns>
- Task<SysConfig> GetByConfigKey(string category, string configKey);
-
- /// <summary>
- /// 根据分类获取配置列表
- /// </summary>
- /// <param name="category">分类名称</param>
- /// <returns>配置列表</returns>
- Task<List<SysConfig>> GetConfigsByCategory(string category);
-
- /// <summary>
- /// 分页查询其他配置
- /// </summary>
- /// <param name="input">查询参数</param>
- /// <returns>其他配置列表</returns>
- Task<SqlSugarPagedList<SysConfig>> Page(ConfigPageInput input);
-
- Task<FileStreamResult> GetIco();
-
- /// <summary>
- /// 获取系统配置列表,不包含业务的
- /// </summary>
- /// <returns></returns>
- Task<List<SysConfig>> GetSysConfigList();
-
- /// <summary>
- /// 是否是多租户模式
- /// </summary>
- /// <returns></returns>
- Task<bool> IsTenant();
-
- #endregion
-
- #region 新增
-
- /// <summary>
- /// 新增配置
- /// </summary>
- /// <param name="input">新增参数</param>
- /// <returns></returns>
- Task Add(ConfigAddInput input);
-
- #endregion
-
- #region 编辑
-
- /// <summary>
- /// 修改配置
- /// </summary>
- /// <param name="input">修改参数</param>
- /// <returns></returns>
- Task Edit(ConfigEditInput input);
-
- /// <summary>
- /// 批量编辑
- /// </summary>
- /// <param name="devConfigs">配置列表</param>
- /// <returns></returns>
- Task EditBatch(List<SysConfig> devConfigs);
-
- #endregion
-
- #region 删除
-
- /// <summary>
- /// 删除配置
- /// </summary>
- /// <param name="input">删除</param>
- /// <returns></returns>
- Task Delete(ConfigDeleteInput input);
-
- #endregion
- }
|