shop.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. // Package postgre
  2. /**
  3. * @ File:
  4. * @ Date: 2021/4/13 10:46
  5. * @ Author: JYQ
  6. * @ Description:
  7. */
  8. package postgre
  9. type PGShop struct {
  10. }
  11. func (PGShop) ShopGroupQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  12. err = getClient().Raw("select fn_shop_group_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  13. Scan(&result).Error
  14. return
  15. }
  16. func (PGShop) ShopGroupAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  17. err = getClient().Raw("select fn_shop_group_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  18. Scan(&result).Error
  19. return
  20. }
  21. func (PGShop) ShopGroupEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  22. err = getClient().Raw("select fn_shop_group_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  23. Scan(&result).Error
  24. return
  25. }
  26. func (PGShop) ShopGroupStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  27. err = getClient().Raw("select fn_shop_group_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  28. Scan(&result).Error
  29. return
  30. }
  31. func (PGShop) ShopGroupDetailsQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  32. err = getClient().Raw("select fn_shop_ingroup_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  33. Scan(&result).Error
  34. return
  35. }
  36. func (PGShop) ShopVenueQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  37. err = getClient().Raw("select fn_shop_venue_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  38. Scan(&result).Error
  39. return
  40. }
  41. func (PGShop) ShopVenueAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  42. err = getClient().Raw("select fn_shop_venue_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  43. Scan(&result).Error
  44. return
  45. }
  46. func (PGShop) ShopVenueEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  47. err = getClient().Raw("select fn_shop_venue_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  48. Scan(&result).Error
  49. return
  50. }
  51. func (PGShop) ShopVenueStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  52. err = getClient().Raw("select fn_shop_venue_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  53. Scan(&result).Error
  54. return
  55. }
  56. func (PGShop) ShopVenueEquipQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  57. err = getClient().Raw("select fn_eq_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  58. Scan(&result).Error
  59. return
  60. }
  61. func (PGShop) ShopVenueEquipAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  62. err = getClient().Raw("select fn_eq_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  63. Scan(&result).Error
  64. return
  65. }
  66. func (PGShop) ShopVenueEquipEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  67. err = getClient().Raw("select fn_eq_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  68. Scan(&result).Error
  69. return
  70. }
  71. func (PGShop) ShopVenueEquipStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  72. err = getClient().Raw("select fn_eq_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  73. Scan(&result).Error
  74. return
  75. }
  76. func (PGShop) ShopVenueEquipStatusDel(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  77. err = getClient().Raw("select fn_eq_del(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  78. Scan(&result).Error
  79. return
  80. }
  81. func (PGShop) ShopConfigQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  82. err = getClient().Raw("select fn_shop_config_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  83. Scan(&result).Error
  84. return
  85. }
  86. func (PGShop) ShopConfigEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  87. err = getClient().Raw("select fn_shop_config_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  88. Scan(&result).Error
  89. return
  90. }
  91. func (PGShop) VipUserListQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  92. err = getClient().Raw("select fn_vip_user_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  93. Scan(&result).Error
  94. return
  95. }
  96. func (PGShop) VipUserAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  97. err = getClient().Raw("select fn_vip_user_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  98. Scan(&result).Error
  99. return
  100. }
  101. func (PGShop) VipUserEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  102. err = getClient().Raw("select fn_vip_user_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  103. Scan(&result).Error
  104. return
  105. }
  106. func (PGShop) VipUserShopStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  107. err = getClient().Raw("select fn_vip_user_shop_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  108. Scan(&result).Error
  109. return
  110. }
  111. func (PGShop) AcrossVipUserListQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  112. err = getClient().Raw("select fn_across_vip_user_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  113. Scan(&result).Error
  114. return
  115. }
  116. func (PGShop) AcrossVipUserAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  117. err = getClient().Raw("select fn_across_vip_user_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  118. Scan(&result).Error
  119. return
  120. }
  121. func (PGShop) AcrossVipUserDel(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  122. err = getClient().Raw("select fn_across_vip_user_del(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  123. Scan(&result).Error
  124. return
  125. }
  126. func (PGShop) VipUserPhoneQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  127. err = getClient().Raw("select fn_vip_user_phone_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  128. Scan(&result).Error
  129. return
  130. }
  131. func (PGShop) VipUserQueryByPhone(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  132. err = getClient().Raw("select fn_vip_user_query_by_phone(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  133. Scan(&result).Error
  134. return
  135. }
  136. func (PGShop) VipUserOtherPhoneAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  137. err = getClient().Raw("select fn_vip_user_other_phone_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  138. Scan(&result).Error
  139. return
  140. }
  141. func (PGShop) VipUserOtherPhoneEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  142. err = getClient().Raw("select fn_vip_user_other_phone_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  143. Scan(&result).Error
  144. return
  145. }
  146. func (PGShop) VipUserOtherPhoneStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  147. err = getClient().Raw("select fn_vip_user_other_phone_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  148. Scan(&result).Error
  149. return
  150. }
  151. func (PGShop) TmpVipUserQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  152. err = getClient().Raw("select fn_tmp_user_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  153. Scan(&result).Error
  154. return
  155. }
  156. func (PGShop) TmpUserAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  157. err = getClient().Raw("select fn_tmp_user_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  158. Scan(&result).Error
  159. return
  160. }
  161. func (PGShop) TmpVipUserEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  162. err = getClient().Raw("select fn_tmp_user_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  163. Scan(&result).Error
  164. return
  165. }
  166. func (PGShop) TmpVipUserStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  167. err = getClient().Raw("select fn_tmp_user_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  168. Scan(&result).Error
  169. return
  170. }
  171. func (PGShop) VipUserHourEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  172. err = getClient().Raw("select fn_vip_user_hour_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  173. Scan(&result).Error
  174. return
  175. }
  176. func (PGShop) VipUserConsumeListQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  177. err = getClient().Raw("select fn_vip_user_consume_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  178. Scan(&result).Error
  179. return
  180. }
  181. func (PGShop) VipUserConsumeDetailQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  182. err = getClient().Raw("select fn_vip_user_consume_detail_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  183. Scan(&result).Error
  184. return
  185. }
  186. func (PGShop) VipUserClassEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  187. err = getClient().Raw("select fn_vip_user_class_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  188. Scan(&result).Error
  189. return
  190. }
  191. func (PGShop) ClassHourChgQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  192. err = getClient().Raw("select fn_class_hour_chg_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  193. Scan(&result).Error
  194. return
  195. }
  196. func (PGShop) VipUserClassQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  197. err = getClient().Raw("select fn_vip_user_class_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  198. Scan(&result).Error
  199. return
  200. }
  201. func (PGShop) AcrossUserSimpleQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  202. err = getClient().Raw("select fn_across_user_simple_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  203. Scan(&result).Error
  204. return
  205. }
  206. func (PGShop) VipUserSimpleQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  207. err = getClient().Raw("select fn_vip_user_simple_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  208. Scan(&result).Error
  209. return
  210. }
  211. func (PGShop) TmpVipUserSimpleQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  212. err = getClient().Raw("select fn_tmp_user_simple_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  213. Scan(&result).Error
  214. return
  215. }
  216. func (PGShop) GroupSimpleQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
  217. err = getClient().Raw("select fn_shop_group_simple_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
  218. Scan(&result).Error
  219. return
  220. }