GAAS GFrame项目web后台
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.

249 lines
8.5 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_GAAS_GFrame_BACKEND/dao/base/implments"
  5. "LAPP_GAAS_GFrame_BACKEND/grmi"
  6. model "LAPP_GAAS_GFrame_BACKEND/models/base"
  7. "github.com/go-xorm/xorm"
  8. )
  9. /******************************************************************************
  10. *
  11. * @Interface Name : StdefDAO
  12. *-----------------------------------------------------------------------------
  13. *
  14. * @Description : Stdef的数据访问对象接口
  15. *
  16. * @Author : 代码生成器创建
  17. *
  18. * @Date : 2021-04-13 15:04:54
  19. *
  20. ******************************************************************************/
  21. type StdefDAO interface {
  22. /******************************************************************************
  23. *
  24. * @Function Name : InsertOne
  25. *-----------------------------------------------------------------------------
  26. *
  27. * @Description : 插入一条Stdef
  28. *
  29. * @Function Parameters : 需要插入的Stdef
  30. *
  31. * @Return Value : 执行时发生的错误
  32. *
  33. * @Author : 代码生成器创建
  34. *
  35. * @Date : 2021-04-13 15:04:54
  36. *
  37. ******************************************************************************/
  38. InsertOne(*model.Stdef) error
  39. /******************************************************************************
  40. *
  41. * @Function Name : DeleteOne
  42. *-----------------------------------------------------------------------------
  43. *
  44. * @Description : 删除指定键的Stdef
  45. *
  46. * @Function Parameters : 主键
  47. *
  48. * @Function Parameters : 主键
  49. *
  50. * @Function Parameters : 主键
  51. *
  52. * @Return Value : 执行时发生的错误
  53. *
  54. * @Author : 代码生成器创建
  55. *
  56. * @Date : 2021-04-13 15:04:54
  57. *
  58. ******************************************************************************/
  59. DeleteOne(string, string, string) error
  60. /******************************************************************************
  61. *
  62. * @Function Name : SelectOne
  63. *-----------------------------------------------------------------------------
  64. *
  65. * @Description : 查找指定键的Stdef
  66. *
  67. * @Function Parameters : 主键
  68. *
  69. * @Function Parameters : 主键
  70. *
  71. * @Function Parameters : 主键
  72. *
  73. * @Return Value : 查找到的Stdef
  74. *
  75. * @Return Value : 执行时发生的错误
  76. *
  77. * @Author : 代码生成器创建
  78. *
  79. * @Date : 2021-04-13 15:04:54
  80. *
  81. ******************************************************************************/
  82. SelectOne(string, string, string) (*model.Stdef, error)
  83. /******************************************************************************
  84. *
  85. * @Function Name : UpdateOne
  86. *-----------------------------------------------------------------------------
  87. *
  88. * @Description : 修改Stdef
  89. *
  90. * @Function Parameters : 需要修改的Stdef
  91. *
  92. * @Return Value : 执行时发生的错误
  93. *
  94. * @Author : 代码生成器创建
  95. *
  96. * @Date : 2021-04-13 15:04:54
  97. *
  98. ******************************************************************************/
  99. UpdateOne(*model.Stdef) error
  100. /******************************************************************************
  101. *
  102. * @Function Name : Insert
  103. *-----------------------------------------------------------------------------
  104. *
  105. * @Description : 插入多条Stdef
  106. *
  107. * @Function Parameters : 需要插入的Stdef列表
  108. *
  109. * @Return Value : 执行时发生的错误
  110. *
  111. * @Author : 代码生成器创建
  112. *
  113. * @Date : 2021-04-13 15:04:54
  114. *
  115. ******************************************************************************/
  116. Insert(*[]model.Stdef) error
  117. /******************************************************************************
  118. *
  119. * @Function Name : Delete
  120. *-----------------------------------------------------------------------------
  121. *
  122. * @Description : 删除多条Stdef
  123. *
  124. * @Function Parameters : 需要删除的Stdef列表
  125. *
  126. * @Return Value : 执行时发生的错误
  127. *
  128. * @Author : 代码生成器创建
  129. *
  130. * @Date : 2021-04-13 15:04:54
  131. *
  132. ******************************************************************************/
  133. Delete(*[]model.Stdef) error
  134. /******************************************************************************
  135. *
  136. * @Function Name : DeleteWhere
  137. *-----------------------------------------------------------------------------
  138. *
  139. * @Description : 按条件删除Stdef
  140. *
  141. * @Return Value : 执行时发生的错误
  142. *
  143. * @Author : 代码生成器创建
  144. *
  145. * @Date : 2021-04-13 15:04:54
  146. *
  147. ******************************************************************************/
  148. DeleteWhere([]grmi.Predicate) error
  149. /******************************************************************************
  150. *
  151. * @Function Name : Select
  152. *-----------------------------------------------------------------------------
  153. *
  154. * @Description : 按条件查询Stdef
  155. *
  156. * @Function Parameters : 查询条件
  157. *
  158. * @Function Parameters : 排序字段
  159. *
  160. * @Return Value : 查询结果
  161. *
  162. * @Return Value : 执行时发生的错误
  163. *
  164. * @Author : 代码生成器创建
  165. *
  166. * @Date : 2021-04-13 15:04:54
  167. *
  168. ******************************************************************************/
  169. Select([]grmi.Predicate, []grmi.Field) ([]model.Stdef, error)
  170. /******************************************************************************
  171. *
  172. * @Function Name : SelectAndPaging
  173. *-----------------------------------------------------------------------------
  174. *
  175. * @Description : 按条件查询Stdef并分页
  176. *
  177. * @Function Parameters : 分页信息
  178. *
  179. * @Function Parameters : 查询条件
  180. *
  181. * @Function Parameters : 排序字段
  182. *
  183. * @Return Value : 查询结果
  184. *
  185. * @Return Value : 执行时发生的错误
  186. *
  187. * @Author : 代码生成器创建
  188. *
  189. * @Date : 2021-04-13 15:04:54
  190. *
  191. ******************************************************************************/
  192. SelectAndPaging(*grmi.Paging, []grmi.Predicate, []grmi.Field) (grmi.PagingResult, error)
  193. /******************************************************************************
  194. *
  195. * @Function Name : Update
  196. *-----------------------------------------------------------------------------
  197. *
  198. * @Description : 修改多条Stdef
  199. *
  200. * @Function Parameters : 需要修改的Stdef列表
  201. *
  202. * @Return Value : 执行时发生的错误
  203. *
  204. * @Author : 代码生成器创建
  205. *
  206. * @Date : 2021-04-13 15:04:54
  207. *
  208. ******************************************************************************/
  209. Update(*[]model.Stdef) error
  210. /******************************************************************************
  211. *
  212. * @Function Name : UpdateWhere
  213. *-----------------------------------------------------------------------------
  214. *
  215. * @Description : 按条件修改Stdef
  216. *
  217. * @Return Value : 执行时发生的错误
  218. *
  219. * @Author : 代码生成器创建
  220. *
  221. * @Date : 2021-04-13 15:04:54
  222. *
  223. ******************************************************************************/
  224. UpdateWhere([]grmi.Predicate, *model.Stdef, ...string) error
  225. }
  226. /******************************************************************************
  227. *
  228. * @Function Name : NewStdefDAO
  229. *-----------------------------------------------------------------------------
  230. *
  231. * @Description : 创建一个StdefDAO实例
  232. *
  233. * @Function Parameters : xorm会话
  234. *
  235. * @Return Value : StdefDAO实例
  236. *
  237. * @Author : 代码生成器创建
  238. *
  239. * @Date : 2021-04-13 15:04:54
  240. *
  241. ******************************************************************************/
  242. func NewStdefDAO(session *xorm.Session, userid string) StdefDAO {
  243. return implments.NewStdefDAOImplement(session, userid)
  244. }