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.

236 lines
8.5 KiB

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