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.

198 lines
7.0 KiB

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