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

224 lines
8.0 KiB

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