平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IBatchEditService.cs 1.9 KiB

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