高级排程
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.

216 lines
7.4 KiB

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