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

231 lines
8.1 KiB

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