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.

194 lines
6.6 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. model "LAPP_LF_MOM_BACKEND/models/base"
  5. "LAPP_LF_MOM_BACKEND/services/base/implments"
  6. "LAPP_LF_MOM_BACKEND/web/models"
  7. )
  8. /******************************************************************************
  9. *
  10. * @Interface Name : EtlService
  11. *-----------------------------------------------------------------------------
  12. *
  13. * @Description : Etl的服务接口
  14. *
  15. * @Author : 代码生成器创建
  16. *
  17. * @Date : 2021-04-13 13:08:46
  18. *
  19. ******************************************************************************/
  20. type EtlService interface {
  21. /******************************************************************************
  22. *
  23. * @Function Name : InsertOne
  24. *-----------------------------------------------------------------------------
  25. *
  26. * @Description : 插入一条Etl
  27. *
  28. * @Function Parameters : 当前访问人员信息
  29. *
  30. * @Function Parameters : 需要插入的Etl
  31. *
  32. * @Return Value : 执行时发生的错误
  33. *
  34. * @Author : 代码生成器创建
  35. *
  36. * @Date : 2021-04-13 13:08:46
  37. *
  38. ******************************************************************************/
  39. InsertOne(*models.Usertab, *model.Etl) error
  40. /******************************************************************************
  41. *
  42. * @Function Name : DeleteOne
  43. *-----------------------------------------------------------------------------
  44. *
  45. * @Description : 删除指定键的Etl
  46. *
  47. * @Function Parameters : 主键
  48. *
  49. * @Return Value : 执行时发生的错误
  50. *
  51. * @Author : 代码生成器创建
  52. *
  53. * @Date : 2021-04-13 13:08:46
  54. *
  55. ******************************************************************************/
  56. DeleteOne(*models.Usertab, int) error
  57. /******************************************************************************
  58. *
  59. * @Function Name : SelectOne
  60. *-----------------------------------------------------------------------------
  61. *
  62. * @Description : 查找指定键的Etl
  63. *
  64. * @Function Parameters : 主键
  65. *
  66. * @Return Value : 查找到的Etl
  67. *
  68. * @Return Value : 执行时发生的错误
  69. *
  70. * @Author : 代码生成器创建
  71. *
  72. * @Date : 2021-04-13 13:08:46
  73. *
  74. ******************************************************************************/
  75. SelectOne(*models.Usertab, int) (*model.Etl, error)
  76. /******************************************************************************
  77. *
  78. * @Function Name : UpdateOne
  79. *-----------------------------------------------------------------------------
  80. *
  81. * @Description : 修改一条Etl
  82. *
  83. * @Function Parameters : 当前访问人员信息
  84. *
  85. * @Function Parameters : 需要修改的Etl
  86. *
  87. * @Return Value : 执行时发生的错误
  88. *
  89. * @Author : 代码生成器创建
  90. *
  91. * @Date : 2021-04-13 13:08:46
  92. *
  93. ******************************************************************************/
  94. UpdateOne(*models.Usertab, *model.Etl) error
  95. /******************************************************************************
  96. *
  97. * @Function Name : Insert
  98. *-----------------------------------------------------------------------------
  99. *
  100. * @Description : 插入多条Etl
  101. *
  102. * @Function Parameters : 当前访问人员信息
  103. *
  104. * @Function Parameters : 需要插入的Etl列表
  105. *
  106. * @Return Value : 执行时发生的错误
  107. *
  108. * @Author : 代码生成器创建
  109. *
  110. * @Date : 2021-04-13 13:08:46
  111. *
  112. ******************************************************************************/
  113. Insert(*models.Usertab, *[]model.Etl) error
  114. /******************************************************************************
  115. *
  116. * @Function Name : Delete
  117. *-----------------------------------------------------------------------------
  118. *
  119. * @Description : 删除多条Etl
  120. *
  121. * @Function Parameters : 当前访问人员信息
  122. *
  123. * @Function Parameters : 需要删除的Etl列表
  124. *
  125. * @Return Value : 执行时发生的错误
  126. *
  127. * @Author : 代码生成器创建
  128. *
  129. * @Date : 2021-04-13 13:08:46
  130. *
  131. ******************************************************************************/
  132. Delete(*models.Usertab, *[]model.Etl) error
  133. /******************************************************************************
  134. *
  135. * @Function Name : SelectAndPaging
  136. *-----------------------------------------------------------------------------
  137. *
  138. * @Description : 查询Etl
  139. *
  140. * @Function Parameters : 当前访问人员信息
  141. *
  142. * @Function Parameters : 查询参数
  143. *
  144. * @Return Value : 查询结果
  145. *
  146. * @Return Value : 执行时发生的错误
  147. *
  148. * @Author : 代码生成器创建
  149. *
  150. * @Date : 2021-04-13 13:08:46
  151. *
  152. ******************************************************************************/
  153. Select(*models.Usertab, map[string]string) (interface{}, error)
  154. /******************************************************************************
  155. *
  156. * @Function Name : Update
  157. *-----------------------------------------------------------------------------
  158. *
  159. * @Description : 修改多条Etl
  160. *
  161. * @Function Parameters : 当前访问人员信息
  162. *
  163. * @Function Parameters : 需要修改的Etl列表
  164. *
  165. * @Return Value : 执行时发生的错误
  166. *
  167. * @Author : 代码生成器创建
  168. *
  169. * @Date : 2021-04-13 13:08:46
  170. *
  171. ******************************************************************************/
  172. Update(*models.Usertab, *[]model.Etl) error
  173. }
  174. /******************************************************************************
  175. *
  176. * @Function Name : NewEtlService
  177. *-----------------------------------------------------------------------------
  178. *
  179. * @Description : 创建一个EtlService
  180. *
  181. * @Return Value : EtlService实例
  182. *
  183. * @Author : 代码生成器创建
  184. *
  185. * @Date : 2021-04-13 13:08:46
  186. *
  187. ******************************************************************************/
  188. func NewEtlService() EtlService {
  189. return implments.NewEtlServiceImplement()
  190. }