Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
it512 committed Dec 18, 2024
1 parent fff99e9 commit 9a3ff75
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
10 changes: 5 additions & 5 deletions wechat/pkg/sns/def.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package sns

type AuthUserResp struct {
OpenID string `json:"open_id"`
UnionID string `json:"union_id"`
OpenID string
UnionID string
}

type JsCodeReq struct {
JsCode string `json:"js_code"`
JsCode string
}

type WeChatCommonError struct {
ErrCode int64 `json:"err_code"`
ErrMsg string `json:"err_msg"`
ErrCode int64
ErrMsg string
}

func (e WeChatCommonError) Error() string {
Expand Down
2 changes: 1 addition & 1 deletion wechat/rpc/gql/gqlgen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resolver:
# omit_template_comment: false

# Optional: turn on use ` + "`" + `gqlgen:"fieldName"` + "`" + ` tags in your models
struct_tag: json
# struct_tag: json

# Optional: turn on to use []Thing instead of []*Thing
# omit_slice_element_pointers: false
Expand Down
4 changes: 2 additions & 2 deletions wxlogin/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ go 1.23.1
require (
github.com/99designs/gqlgen v0.17.60
github.com/Khan/genqlient v0.7.0
github.com/go-chi/chi/v5 v5.1.0
github.com/go-chi/chi/v5 v5.2.0
github.com/go-jose/go-jose/v4 v4.0.4
github.com/google/uuid v1.6.0
github.com/joho/godotenv v1.5.1
github.com/twiglab/crm/member v0.0.0-20241116061244-2ba4efae26f1
github.com/twiglab/crm/wechat v0.0.0-20241216131727-886793cf0a25
github.com/twiglab/crm/wechat v0.0.0-20241218094246-ef94d18d94d3
github.com/vektah/gqlparser/v2 v2.5.20
)

Expand Down
3 changes: 3 additions & 0 deletions wxlogin/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ github.com/dgryski/trifles v0.0.0-20230903005119-f50d829f2e54 h1:SG7nF6SRlWhcT7c
github.com/dgryski/trifles v0.0.0-20230903005119-f50d829f2e54/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA=
github.com/go-chi/chi/v5 v5.1.0 h1:acVI1TYaD+hhedDJ3r54HyA6sExp3HfXq7QWEEY/xMw=
github.com/go-chi/chi/v5 v5.1.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-chi/chi/v5 v5.2.0/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-jose/go-jose/v4 v4.0.4 h1:VsjPI33J0SB9vQM6PLmNjoHqMQNGPiZ0rHL7Ni7Q6/E=
github.com/go-jose/go-jose/v4 v4.0.4/go.mod h1:NKb5HO1EZccyMpiZNbdUw/14tiXNyUJh188dfnMCAfc=
github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss=
Expand Down Expand Up @@ -46,6 +47,8 @@ github.com/twiglab/crm/wechat v0.0.0-20241116061244-2ba4efae26f1 h1:wjngLNRqau18
github.com/twiglab/crm/wechat v0.0.0-20241116061244-2ba4efae26f1/go.mod h1:gXsub5c9PNnxisPDWoDkAwKrt99MeUYgAb0ehGZRyTk=
github.com/twiglab/crm/wechat v0.0.0-20241216131727-886793cf0a25 h1:+nB/i8TimBVTxif2trD0S52Znpk3vb7HIZ3ozVtfvrA=
github.com/twiglab/crm/wechat v0.0.0-20241216131727-886793cf0a25/go.mod h1:lEvPdYOttpqGXb+ywgx4iLZlUdh9W8LGwSknlYEYDYs=
github.com/twiglab/crm/wechat v0.0.0-20241218094246-ef94d18d94d3 h1:ZQPb5vv7wC1zp3r6o7tkGOr+l+RapGE1nuiXUDuXth8=
github.com/twiglab/crm/wechat v0.0.0-20241218094246-ef94d18d94d3/go.mod h1:mr/Nl87xQH/K7HKfLgd3SpPtrkAeatTBDHjUWdDODGQ=
github.com/vektah/gqlparser/v2 v2.5.20 h1:kPaWbhBntxoZPaNdBaIPT1Kh0i1b/onb5kXgEdP5JCo=
github.com/vektah/gqlparser/v2 v2.5.20/go.mod h1:xMl+ta8a5M1Yo1A1Iwt/k7gSpscwSnHZdw7tfhEGfTM=
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
Expand Down

0 comments on commit 9a3ff75

Please sign in to comment.