广汽安道拓Acura项目MES后台
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.

239 lines
8.8 KiB

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