LAPP标准接口程序
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.

72 lines
2.1 KiB

  1. package etl
  2. import (
  3. "LAPP_ETL/grmi"
  4. "LAPP_ETL/services/etl/implments"
  5. )
  6. /******************************************************************************
  7. *
  8. * @Interface Name : RecordService
  9. *-----------------------------------------------------------------------------
  10. *
  11. * @Description : Record的服务接口
  12. *
  13. * @Author : zhangxin
  14. *
  15. * @Date : 2021-07-05
  16. *
  17. ******************************************************************************/
  18. type RecordService interface {
  19. /******************************************************************************
  20. *
  21. * @Function Name : Select
  22. *-----------------------------------------------------------------------------
  23. *
  24. * @Description : 查询Record
  25. *
  26. * @Function Parameters : 阶段
  27. *
  28. * @Function Parameters : 状态
  29. *
  30. * @Function Parameters : 开始时间
  31. *
  32. * @Function Parameters : 结束时间
  33. *
  34. * @Function Parameters : 批次ID
  35. *
  36. * @Function Parameters : 任务ID
  37. *
  38. * @Function Parameters : 页码
  39. *
  40. * @Function Parameters : 每页显示得数量
  41. *
  42. * @Return Value : 执行时发生的错误
  43. *
  44. * @Author : zhangxin
  45. *
  46. * @Date : 2021-07-02
  47. *
  48. ******************************************************************************/
  49. Select(taskId int, stage string, status string, batchId string, start, end string, pageIndex, pageNum int) (grmi.PagingResult, error)
  50. }
  51. /******************************************************************************
  52. *
  53. * @Function Name : NewRecordService
  54. *-----------------------------------------------------------------------------
  55. *
  56. * @Description : 创建一个RecordService
  57. *
  58. * @Return Value : RecordService实例
  59. *
  60. * @Author : zhangxin
  61. *
  62. * @Date : 2021-07-05
  63. *
  64. ******************************************************************************/
  65. func NewRecordService() RecordService {
  66. return implments.NewRecordServiceImplement()
  67. }