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

279 lines
9.6 KiB

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