平安校园
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

88 satır
2.0 KiB

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