广汽安道拓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.

220 lines
7.8 KiB

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