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

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