wx.go 525 B

123456789101112131415161718192021222324252627
  1. // Package service
  2. /**
  3. * @ File:
  4. * @ Date: 2021/5/11 10:34
  5. * @ Author: JYQ
  6. * @ Description:
  7. */
  8. package service
  9. import (
  10. "sportfitness/base/assembly/base/repository/postgre"
  11. "sportfitness/base/errors"
  12. )
  13. type Wx struct {
  14. base
  15. }
  16. func (w Wx) WeiXinSignIn(token string, objectShopId int64, jsonStr string, sign string) string {
  17. optId := w.checkPermission(token, objectShopId)
  18. rst, err := postgre.PGWx{}.VipUserWeiXinLogin(optId, objectShopId, jsonStr, sign)
  19. if err != nil {
  20. panic(errors.PGError)
  21. }
  22. return rst
  23. }