平安校园
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

98 linhas
2.0 KiB

  1. //
  2. namespace SafeCampus.System;
  3. /// <summary>
  4. /// 系统配置服务
  5. /// </summary>
  6. public interface IConfigService : ITransient
  7. {
  8. #region 查询
  9. /// <summary>
  10. /// 根据分类和配置键获配置
  11. /// </summary>
  12. /// <param name="category">分类</param>
  13. /// <param name="configKey">配置键</param>
  14. /// <returns>配置信息</returns>
  15. Task<SysConfig> GetByConfigKey(string category, string configKey);
  16. /// <summary>
  17. /// 根据分类获取配置列表
  18. /// </summary>
  19. /// <param name="category">分类名称</param>
  20. /// <returns>配置列表</returns>
  21. Task<List<SysConfig>> GetConfigsByCategory(string category);
  22. /// <summary>
  23. /// 分页查询其他配置
  24. /// </summary>
  25. /// <param name="input">查询参数</param>
  26. /// <returns>其他配置列表</returns>
  27. Task<SqlSugarPagedList<SysConfig>> Page(ConfigPageInput input);
  28. Task<FileStreamResult> GetIco();
  29. /// <summary>
  30. /// 获取系统配置列表,不包含业务的
  31. /// </summary>
  32. /// <returns></returns>
  33. Task<List<SysConfig>> GetSysConfigList();
  34. /// <summary>
  35. /// 是否是多租户模式
  36. /// </summary>
  37. /// <returns></returns>
  38. Task<bool> IsTenant();
  39. #endregion
  40. #region 新增
  41. /// <summary>
  42. /// 新增配置
  43. /// </summary>
  44. /// <param name="input">新增参数</param>
  45. /// <returns></returns>
  46. Task Add(ConfigAddInput input);
  47. #endregion
  48. #region 编辑
  49. /// <summary>
  50. /// 修改配置
  51. /// </summary>
  52. /// <param name="input">修改参数</param>
  53. /// <returns></returns>
  54. Task Edit(ConfigEditInput input);
  55. /// <summary>
  56. /// 批量编辑
  57. /// </summary>
  58. /// <param name="devConfigs">配置列表</param>
  59. /// <returns></returns>
  60. Task EditBatch(List<SysConfig> devConfigs);
  61. #endregion
  62. #region 删除
  63. /// <summary>
  64. /// 删除配置
  65. /// </summary>
  66. /// <param name="input">删除</param>
  67. /// <returns></returns>
  68. Task Delete(ConfigDeleteInput input);
  69. #endregion
  70. }