Browse Source

修改ShopVipUserStatusEdit调用func

jyq 4 years ago
parent
commit
dfd36f3e04
3 changed files with 4 additions and 4 deletions
  1. 1 1
      api/grpc/base.go
  2. 2 2
      assembly/base/repository/postgre/shop.go
  3. 1 1
      assembly/base/service/user.go

+ 1 - 1
api/grpc/base.go

@@ -947,7 +947,7 @@ func (Api) GenVerifyImageByWinXin(ctx context.Context, q *pb.GenVerifyImageReque
 	}, nil
 }
 
-// VipUserWeiXinLogin 解绑心率带
+// VipUserWeiXinLogin 微信登陆
 func (a Api) VipUserWeiXinLogin(ctx context.Context, r *pb.StandardRequest) (*pb.StandardReply, error) {
 	// 获取token,并验证签名函数
 	token, q, sign := a.webToGoVerify(ctx, r)

+ 2 - 2
assembly/base/repository/postgre/shop.go

@@ -143,8 +143,8 @@ func (PGShop) VipUserEdit(optUserId int64, objectShopId int64, jsonStr string, v
 	return
 }
 
-func (PGShop) VipUserStatusEdit(optUserId int64, objectShopId int64, jsonStr string, verfStr string) (result string, err error) {
-	err = getClient().Raw("select fn_vip_user_status_edit(? ,? ,?, ? )", optUserId, objectShopId, jsonStr, verfStr).
+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

+ 1 - 1
assembly/base/service/user.go

@@ -92,7 +92,7 @@ func (u User) ShopVipUserEdit(token string, objectShopId int64, jsonStr string,
 func (u User) ShopVipUserStatusEdit(token string, objectShopId int64, jsonStr string, sign string) string {
 	optId := u.checkPermission(token, objectShopId)
 
-	rst, err := postgre.PGShop{}.VipUserStatusEdit(optId, objectShopId, jsonStr, sign)
+	rst, err := postgre.PGShop{}.VipUserShopStatusEdit(optId, objectShopId, jsonStr, sign)
 	if err != nil {
 		panic(errors.PGError)
 	}