| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- // Package postgre
- /**
- * @ File:
- * @ Date: 2021/4/13 10:46
- * @ Author: JYQ
- * @ Description:
- */
- package postgre
- type PGShop struct {
- }
- func (PGShop) ShopGroupQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_group_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopGroupAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_group_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopGroupEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_group_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopGroupStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_group_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopGroupDetailsQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_ingroup_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopVenueQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_venue_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopVenueAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_venue_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopVenueEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_venue_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopVenueStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_venue_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopVenueEquipQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_eq_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopVenueEquipAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_eq_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopVenueEquipEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_eq_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopVenueEquipStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_eq_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopVenueEquipStatusDel(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_eq_del(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopConfigQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_config_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ShopConfigEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_config_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserListQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserShopStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_shop_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) AcrossVipUserListQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_across_vip_user_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) AcrossVipUserAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_across_vip_user_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) AcrossVipUserDel(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_across_vip_user_del(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserPhoneQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_phone_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserQueryByPhone(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_query_by_phone(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserOtherPhoneAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_other_phone_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserOtherPhoneEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_other_phone_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserOtherPhoneStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_other_phone_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) TmpVipUserQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_tmp_user_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) TmpUserAdd(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_tmp_user_add(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) TmpVipUserEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_tmp_user_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) TmpVipUserStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_tmp_user_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserHourEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_hour_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserConsumeListQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_consume_list_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserConsumeDetailQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_consume_detail_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserClassEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_class_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) ClassHourChgQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_class_hour_chg_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserClassQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_class_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) AcrossUserSimpleQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_across_user_simple_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) VipUserSimpleQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_vip_user_simple_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) TmpVipUserSimpleQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_tmp_user_simple_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
- func (PGShop) GroupSimpleQuery(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
- err = getClient().Raw("select fn_shop_group_simple_query(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
- Scan(&result).Error
- return
- }
|