This commit is contained in:
2025-10-15 00:01:02 +08:00
parent 76ea87f60f
commit 3406e8f82d
5 changed files with 245 additions and 0 deletions

View File

@@ -32,6 +32,9 @@ service main {
@doc "wechat h5 auth"
@handler wxH5Auth
post /user/wxh5Auth (WXH5AuthReq) returns (WXH5AuthResp)
@handler getSignature
post /wechat/getSignature (GetSignatureReq) returns (GetSignatureResp)
}
type (
@@ -57,6 +60,18 @@ type (
}
)
type (
GetSignatureReq {
Url string `json:"url"`
}
GetSignatureResp {
AppId string `json:"appId"`
Timestamp int64 `json:"timestamp"`
NonceStr string `json:"nonceStr"`
Signature string `json:"signature"`
}
)
type (
WXH5AuthReq {
Code string `json:"code"`