平安校园
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

81 righe
1.9 KiB

  1. //
  2. namespace SafeCampus.System;
  3. /// <summary>
  4. /// 批量服务
  5. /// </summary>
  6. public interface IBatchEditService : ITransient
  7. {
  8. /// <summary>
  9. /// 批量分页查询
  10. /// </summary>
  11. /// <param name="input">查询参数</param>
  12. /// <returns>分页结果</returns>
  13. Task<SqlSugarPagedList<BatchEdit>> Page(BatchEditPageInput input);
  14. /// <summary>
  15. /// 添加批量
  16. /// </summary>
  17. /// <param name="input">添加参数</param>
  18. /// <returns></returns>
  19. Task Add(BatchEditAddInput input);
  20. /// <summary>
  21. /// 删除批量
  22. /// </summary>
  23. /// <param name="input">删除参数</param>
  24. /// <returns></returns>
  25. Task Delete(BaseIdListInput input);
  26. /// <summary>
  27. /// 获取需要批量修改的表
  28. /// </summary>
  29. /// <returns></returns>
  30. List<SqlSugarTableInfo> GetTables();
  31. /// <summary>
  32. /// 获取批量修改配置
  33. /// </summary>
  34. /// <param name="input"></param>
  35. /// <returns></returns>
  36. Task<List<BatchEditConfig>> ConfigList(BaseIdInput input);
  37. /// <summary>
  38. /// 配置字段
  39. /// </summary>
  40. /// <param name="input">字段信息</param>
  41. /// <returns></returns>
  42. Task Config(List<BatchEditConfigInput> input);
  43. /// <summary>
  44. /// 批量配置字段列表
  45. /// </summary>
  46. /// <param name="code">唯一编码</param>
  47. /// <returns>列表</returns>
  48. Task<List<BatchEditConfig>> Columns(string code);
  49. /// <summary>
  50. /// 获取字典配置
  51. /// </summary>
  52. /// <param name="code">唯一编码</param>
  53. /// <param name="columns">字段信息</param>
  54. /// <returns>SqlSugar对应字典</returns>
  55. Task<Dictionary<string, object>> GetUpdateBatchConfigDict(string code, List<BatchEditColumn> columns);
  56. /// <summary>
  57. /// 同步字段
  58. /// </summary>
  59. /// <param name="input">id</param>
  60. /// <returns></returns>
  61. Task SyncColumns(BaseIdInput input);
  62. }