Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterWechatRpcServiceServer(s grpc.ServiceRegistrar, srv WechatRpcServiceServer)
- type CodeReq
- type CodeResp
- func (*CodeResp) Descriptor() ([]byte, []int)deprecated
- func (x *CodeResp) GetCode() int32
- func (x *CodeResp) GetData() *CodeRespData
- func (x *CodeResp) GetMsg() string
- func (x *CodeResp) GetPath() string
- func (x *CodeResp) GetRequestID() string
- func (*CodeResp) ProtoMessage()
- func (x *CodeResp) ProtoReflect() protoreflect.Message
- func (x *CodeResp) Reset()
- func (x *CodeResp) String() string
- type CodeRespData
- func (*CodeRespData) Descriptor() ([]byte, []int)deprecated
- func (x *CodeRespData) GetAccessToken() string
- func (x *CodeRespData) GetErrcode() int32
- func (x *CodeRespData) GetErrmsg() string
- func (x *CodeRespData) GetExpiresIn() int64
- func (x *CodeRespData) GetIsSnapshotuser() int32
- func (x *CodeRespData) GetOpenid() string
- func (x *CodeRespData) GetRefreshToken() string
- func (x *CodeRespData) GetScope() string
- func (x *CodeRespData) GetUnionid() string
- func (*CodeRespData) ProtoMessage()
- func (x *CodeRespData) ProtoReflect() protoreflect.Message
- func (x *CodeRespData) Reset()
- func (x *CodeRespData) String() string
- type OaAccessTokenResp
- func (*OaAccessTokenResp) Descriptor() ([]byte, []int)deprecated
- func (x *OaAccessTokenResp) GetCode() int32
- func (x *OaAccessTokenResp) GetData() *OaAccessTokenRespData
- func (x *OaAccessTokenResp) GetMsg() string
- func (x *OaAccessTokenResp) GetPath() string
- func (x *OaAccessTokenResp) GetRequestID() string
- func (*OaAccessTokenResp) ProtoMessage()
- func (x *OaAccessTokenResp) ProtoReflect() protoreflect.Message
- func (x *OaAccessTokenResp) Reset()
- func (x *OaAccessTokenResp) String() string
- type OaAccessTokenRespData
- func (*OaAccessTokenRespData) Descriptor() ([]byte, []int)deprecated
- func (x *OaAccessTokenRespData) GetAccessToken() string
- func (x *OaAccessTokenRespData) GetErrcode() int32
- func (x *OaAccessTokenRespData) GetErrmsg() string
- func (x *OaAccessTokenRespData) GetExpiresIn() int64
- func (*OaAccessTokenRespData) ProtoMessage()
- func (x *OaAccessTokenRespData) ProtoReflect() protoreflect.Message
- func (x *OaAccessTokenRespData) Reset()
- func (x *OaAccessTokenRespData) String() string
- type OaKeyReq
- type RefreshReq
- type RefreshResp
- func (*RefreshResp) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshResp) GetCode() int32
- func (x *RefreshResp) GetData() *RefreshRespData
- func (x *RefreshResp) GetMsg() string
- func (x *RefreshResp) GetPath() string
- func (x *RefreshResp) GetRequestID() string
- func (*RefreshResp) ProtoMessage()
- func (x *RefreshResp) ProtoReflect() protoreflect.Message
- func (x *RefreshResp) Reset()
- func (x *RefreshResp) String() string
- type RefreshRespData
- func (*RefreshRespData) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshRespData) GetAccessToken() string
- func (x *RefreshRespData) GetErrcode() int32
- func (x *RefreshRespData) GetErrmsg() string
- func (x *RefreshRespData) GetExpiresIn() int64
- func (x *RefreshRespData) GetOpenid() string
- func (x *RefreshRespData) GetRefreshToken() string
- func (x *RefreshRespData) GetScope() string
- func (*RefreshRespData) ProtoMessage()
- func (x *RefreshRespData) ProtoReflect() protoreflect.Message
- func (x *RefreshRespData) Reset()
- func (x *RefreshRespData) String() string
- type TokenReq
- func (*TokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *TokenReq) GetAccessToken() string
- func (x *TokenReq) GetKey() string
- func (x *TokenReq) GetLang() string
- func (x *TokenReq) GetOpenid() string
- func (*TokenReq) ProtoMessage()
- func (x *TokenReq) ProtoReflect() protoreflect.Message
- func (x *TokenReq) Reset()
- func (x *TokenReq) String() string
- type UnimplementedWechatRpcServiceServer
- func (UnimplementedWechatRpcServiceServer) Code2Token(context.Context, *CodeReq) (*CodeResp, error)
- func (UnimplementedWechatRpcServiceServer) OfficialAccountAccessToken(context.Context, *OaKeyReq) (*OaAccessTokenResp, error)
- func (UnimplementedWechatRpcServiceServer) RefreshUserToken(context.Context, *RefreshReq) (*RefreshResp, error)
- func (UnimplementedWechatRpcServiceServer) UserToken2UserInfo(context.Context, *TokenReq) (*UserInfoResp, error)
- func (UnimplementedWechatRpcServiceServer) WebAutoRedirectWechat(context.Context, *WebAutoRedirectReq) (*WebAutoRedirectResp, error)
- func (UnimplementedWechatRpcServiceServer) WebRedirectWechat(context.Context, *WebRedirectReq) (*WebRedirectResp, error)
- type UnsafeWechatRpcServiceServer
- type UserInfoResp
- func (*UserInfoResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoResp) GetCode() int32
- func (x *UserInfoResp) GetData() *UserInfoRespData
- func (x *UserInfoResp) GetMsg() string
- func (x *UserInfoResp) GetPath() string
- func (x *UserInfoResp) GetRequestID() string
- func (*UserInfoResp) ProtoMessage()
- func (x *UserInfoResp) ProtoReflect() protoreflect.Message
- func (x *UserInfoResp) Reset()
- func (x *UserInfoResp) String() string
- type UserInfoRespData
- func (*UserInfoRespData) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoRespData) GetCity() string
- func (x *UserInfoRespData) GetCountry() string
- func (x *UserInfoRespData) GetErrcode() int32
- func (x *UserInfoRespData) GetErrmsg() string
- func (x *UserInfoRespData) GetHeadimgurl() string
- func (x *UserInfoRespData) GetKey() string
- func (x *UserInfoRespData) GetNickname() string
- func (x *UserInfoRespData) GetOpenid() string
- func (x *UserInfoRespData) GetPrivilege() []string
- func (x *UserInfoRespData) GetProvince() string
- func (x *UserInfoRespData) GetSex() int64
- func (x *UserInfoRespData) GetUnionid() string
- func (*UserInfoRespData) ProtoMessage()
- func (x *UserInfoRespData) ProtoReflect() protoreflect.Message
- func (x *UserInfoRespData) Reset()
- func (x *UserInfoRespData) String() string
- type WebAutoRedirectReq
- func (*WebAutoRedirectReq) Descriptor() ([]byte, []int)deprecated
- func (x *WebAutoRedirectReq) GetKey() string
- func (x *WebAutoRedirectReq) GetRedirectUri() string
- func (x *WebAutoRedirectReq) GetScope() string
- func (x *WebAutoRedirectReq) GetState() string
- func (x *WebAutoRedirectReq) GetTempUrl() string
- func (*WebAutoRedirectReq) ProtoMessage()
- func (x *WebAutoRedirectReq) ProtoReflect() protoreflect.Message
- func (x *WebAutoRedirectReq) Reset()
- func (x *WebAutoRedirectReq) String() string
- type WebAutoRedirectResp
- func (*WebAutoRedirectResp) Descriptor() ([]byte, []int)deprecated
- func (x *WebAutoRedirectResp) GetCode() int32
- func (x *WebAutoRedirectResp) GetData() *WebAutoRedirectRespData
- func (x *WebAutoRedirectResp) GetMsg() string
- func (x *WebAutoRedirectResp) GetPath() string
- func (x *WebAutoRedirectResp) GetRequestID() string
- func (*WebAutoRedirectResp) ProtoMessage()
- func (x *WebAutoRedirectResp) ProtoReflect() protoreflect.Message
- func (x *WebAutoRedirectResp) Reset()
- func (x *WebAutoRedirectResp) String() string
- type WebAutoRedirectRespData
- func (*WebAutoRedirectRespData) Descriptor() ([]byte, []int)deprecated
- func (x *WebAutoRedirectRespData) GetRedirectUrl() string
- func (x *WebAutoRedirectRespData) GetScope() string
- func (x *WebAutoRedirectRespData) GetState() string
- func (x *WebAutoRedirectRespData) GetUrl() string
- func (*WebAutoRedirectRespData) ProtoMessage()
- func (x *WebAutoRedirectRespData) ProtoReflect() protoreflect.Message
- func (x *WebAutoRedirectRespData) Reset()
- func (x *WebAutoRedirectRespData) String() string
- type WebGetUserInfoReq
- func (*WebGetUserInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *WebGetUserInfoReq) GetAccessToken() string
- func (x *WebGetUserInfoReq) GetKey() string
- func (x *WebGetUserInfoReq) GetOpenid() string
- func (*WebGetUserInfoReq) ProtoMessage()
- func (x *WebGetUserInfoReq) ProtoReflect() protoreflect.Message
- func (x *WebGetUserInfoReq) Reset()
- func (x *WebGetUserInfoReq) String() string
- type WebGetUserInfoResp
- func (*WebGetUserInfoResp) Descriptor() ([]byte, []int)deprecated
- func (x *WebGetUserInfoResp) GetCode() int32
- func (x *WebGetUserInfoResp) GetData() *WebGetUserInfoRespData
- func (x *WebGetUserInfoResp) GetMsg() string
- func (x *WebGetUserInfoResp) GetPath() string
- func (x *WebGetUserInfoResp) GetRequestID() string
- func (*WebGetUserInfoResp) ProtoMessage()
- func (x *WebGetUserInfoResp) ProtoReflect() protoreflect.Message
- func (x *WebGetUserInfoResp) Reset()
- func (x *WebGetUserInfoResp) String() string
- type WebGetUserInfoRespData
- func (*WebGetUserInfoRespData) Descriptor() ([]byte, []int)deprecated
- func (x *WebGetUserInfoRespData) GetCity() string
- func (x *WebGetUserInfoRespData) GetCountry() string
- func (x *WebGetUserInfoRespData) GetErrcode() int32
- func (x *WebGetUserInfoRespData) GetErrmsg() string
- func (x *WebGetUserInfoRespData) GetHeadimgurl() string
- func (x *WebGetUserInfoRespData) GetNickname() string
- func (x *WebGetUserInfoRespData) GetOpenid() string
- func (x *WebGetUserInfoRespData) GetPrivilege() []string
- func (x *WebGetUserInfoRespData) GetProvince() string
- func (x *WebGetUserInfoRespData) GetSex() int64
- func (x *WebGetUserInfoRespData) GetUnionid() string
- func (*WebGetUserInfoRespData) ProtoMessage()
- func (x *WebGetUserInfoRespData) ProtoReflect() protoreflect.Message
- func (x *WebGetUserInfoRespData) Reset()
- func (x *WebGetUserInfoRespData) String() string
- type WebRedirectReq
- func (*WebRedirectReq) Descriptor() ([]byte, []int)deprecated
- func (x *WebRedirectReq) GetKey() string
- func (x *WebRedirectReq) GetRedirectUri() string
- func (x *WebRedirectReq) GetScope() string
- func (x *WebRedirectReq) GetState() string
- func (*WebRedirectReq) ProtoMessage()
- func (x *WebRedirectReq) ProtoReflect() protoreflect.Message
- func (x *WebRedirectReq) Reset()
- func (x *WebRedirectReq) String() string
- type WebRedirectResp
- func (*WebRedirectResp) Descriptor() ([]byte, []int)deprecated
- func (x *WebRedirectResp) GetCode() int32
- func (x *WebRedirectResp) GetData() *WebRedirectRespData
- func (x *WebRedirectResp) GetMsg() string
- func (x *WebRedirectResp) GetPath() string
- func (x *WebRedirectResp) GetRequestID() string
- func (*WebRedirectResp) ProtoMessage()
- func (x *WebRedirectResp) ProtoReflect() protoreflect.Message
- func (x *WebRedirectResp) Reset()
- func (x *WebRedirectResp) String() string
- type WebRedirectRespData
- func (*WebRedirectRespData) Descriptor() ([]byte, []int)deprecated
- func (x *WebRedirectRespData) GetScope() string
- func (x *WebRedirectRespData) GetState() string
- func (x *WebRedirectRespData) GetUrl() string
- func (*WebRedirectRespData) ProtoMessage()
- func (x *WebRedirectRespData) ProtoReflect() protoreflect.Message
- func (x *WebRedirectRespData) Reset()
- func (x *WebRedirectRespData) String() string
- type WechatRpcServiceClient
- type WechatRpcServiceServer
Constants ¶
const ( WechatRpcService_Code2Token_FullMethodName = "/wechat.WechatRpcService/Code2Token" WechatRpcService_RefreshUserToken_FullMethodName = "/wechat.WechatRpcService/RefreshUserToken" WechatRpcService_UserToken2UserInfo_FullMethodName = "/wechat.WechatRpcService/UserToken2UserInfo" WechatRpcService_WebRedirectWechat_FullMethodName = "/wechat.WechatRpcService/WebRedirectWechat" WechatRpcService_WebAutoRedirectWechat_FullMethodName = "/wechat.WechatRpcService/WebAutoRedirectWechat" WechatRpcService_OfficialAccountAccessToken_FullMethodName = "/wechat.WechatRpcService/OfficialAccountAccessToken" )
Variables ¶
var File_wechat_proto protoreflect.FileDescriptor
var WechatRpcService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wechat.WechatRpcService", HandlerType: (*WechatRpcServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Code2Token", Handler: _WechatRpcService_Code2Token_Handler, }, { MethodName: "RefreshUserToken", Handler: _WechatRpcService_RefreshUserToken_Handler, }, { MethodName: "UserToken2UserInfo", Handler: _WechatRpcService_UserToken2UserInfo_Handler, }, { MethodName: "WebRedirectWechat", Handler: _WechatRpcService_WebRedirectWechat_Handler, }, { MethodName: "WebAutoRedirectWechat", Handler: _WechatRpcService_WebAutoRedirectWechat_Handler, }, { MethodName: "OfficialAccountAccessToken", Handler: _WechatRpcService_OfficialAccountAccessToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "wechat.proto", }
WechatRpcService_ServiceDesc is the grpc.ServiceDesc for WechatRpcService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWechatRpcServiceServer ¶
func RegisterWechatRpcServiceServer(s grpc.ServiceRegistrar, srv WechatRpcServiceServer)
Types ¶
type CodeReq ¶ added in v0.0.10
type CodeReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*CodeReq) Descriptor
deprecated
added in
v0.0.10
func (*CodeReq) ProtoMessage ¶ added in v0.0.10
func (*CodeReq) ProtoMessage()
func (*CodeReq) ProtoReflect ¶ added in v0.0.10
func (x *CodeReq) ProtoReflect() protoreflect.Message
type CodeResp ¶ added in v0.0.10
type CodeResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *CodeRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CodeResp) Descriptor
deprecated
added in
v0.0.10
func (*CodeResp) GetData ¶ added in v0.0.10
func (x *CodeResp) GetData() *CodeRespData
func (*CodeResp) GetRequestID ¶ added in v0.0.10
func (*CodeResp) ProtoMessage ¶ added in v0.0.10
func (*CodeResp) ProtoMessage()
func (*CodeResp) ProtoReflect ¶ added in v0.0.10
func (x *CodeResp) ProtoReflect() protoreflect.Message
type CodeRespData ¶ added in v0.0.10
type CodeRespData struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` ExpiresIn int64 `protobuf:"varint,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` Openid string `protobuf:"bytes,4,opt,name=openid,proto3" json:"openid,omitempty"` Scope string `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"` IsSnapshotuser int32 `protobuf:"varint,6,opt,name=isSnapshotuser,proto3" json:"isSnapshotuser,omitempty"` Unionid string `protobuf:"bytes,7,opt,name=unionid,proto3" json:"unionid,omitempty"` Errcode int32 `protobuf:"varint,8,opt,name=errcode,proto3" json:"errcode,omitempty"` Errmsg string `protobuf:"bytes,9,opt,name=errmsg,proto3" json:"errmsg,omitempty"` // contains filtered or unexported fields }
func (*CodeRespData) Descriptor
deprecated
added in
v0.0.10
func (*CodeRespData) Descriptor() ([]byte, []int)
Deprecated: Use CodeRespData.ProtoReflect.Descriptor instead.
func (*CodeRespData) GetAccessToken ¶ added in v0.0.10
func (x *CodeRespData) GetAccessToken() string
func (*CodeRespData) GetErrcode ¶ added in v0.0.10
func (x *CodeRespData) GetErrcode() int32
func (*CodeRespData) GetErrmsg ¶ added in v0.0.10
func (x *CodeRespData) GetErrmsg() string
func (*CodeRespData) GetExpiresIn ¶ added in v0.0.10
func (x *CodeRespData) GetExpiresIn() int64
func (*CodeRespData) GetIsSnapshotuser ¶ added in v0.0.10
func (x *CodeRespData) GetIsSnapshotuser() int32
func (*CodeRespData) GetOpenid ¶ added in v0.0.10
func (x *CodeRespData) GetOpenid() string
func (*CodeRespData) GetRefreshToken ¶ added in v0.0.10
func (x *CodeRespData) GetRefreshToken() string
func (*CodeRespData) GetScope ¶ added in v0.0.10
func (x *CodeRespData) GetScope() string
func (*CodeRespData) GetUnionid ¶ added in v0.0.10
func (x *CodeRespData) GetUnionid() string
func (*CodeRespData) ProtoMessage ¶ added in v0.0.10
func (*CodeRespData) ProtoMessage()
func (*CodeRespData) ProtoReflect ¶ added in v0.0.10
func (x *CodeRespData) ProtoReflect() protoreflect.Message
func (*CodeRespData) Reset ¶ added in v0.0.10
func (x *CodeRespData) Reset()
func (*CodeRespData) String ¶ added in v0.0.10
func (x *CodeRespData) String() string
type OaAccessTokenResp ¶ added in v0.0.3
type OaAccessTokenResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *OaAccessTokenRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*OaAccessTokenResp) Descriptor
deprecated
added in
v0.0.3
func (*OaAccessTokenResp) Descriptor() ([]byte, []int)
Deprecated: Use OaAccessTokenResp.ProtoReflect.Descriptor instead.
func (*OaAccessTokenResp) GetCode ¶ added in v0.0.3
func (x *OaAccessTokenResp) GetCode() int32
func (*OaAccessTokenResp) GetData ¶ added in v0.0.3
func (x *OaAccessTokenResp) GetData() *OaAccessTokenRespData
func (*OaAccessTokenResp) GetMsg ¶ added in v0.0.3
func (x *OaAccessTokenResp) GetMsg() string
func (*OaAccessTokenResp) GetPath ¶ added in v0.0.3
func (x *OaAccessTokenResp) GetPath() string
func (*OaAccessTokenResp) GetRequestID ¶ added in v0.0.3
func (x *OaAccessTokenResp) GetRequestID() string
func (*OaAccessTokenResp) ProtoMessage ¶ added in v0.0.3
func (*OaAccessTokenResp) ProtoMessage()
func (*OaAccessTokenResp) ProtoReflect ¶ added in v0.0.3
func (x *OaAccessTokenResp) ProtoReflect() protoreflect.Message
func (*OaAccessTokenResp) Reset ¶ added in v0.0.3
func (x *OaAccessTokenResp) Reset()
func (*OaAccessTokenResp) String ¶ added in v0.0.3
func (x *OaAccessTokenResp) String() string
type OaAccessTokenRespData ¶ added in v0.0.3
type OaAccessTokenRespData struct { AccessToken string `protobuf:"bytes,1,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` ExpiresIn int64 `protobuf:"varint,2,opt,name=ExpiresIn,proto3" json:"ExpiresIn,omitempty"` Errcode int32 `protobuf:"varint,3,opt,name=Errcode,proto3" json:"Errcode,omitempty"` Errmsg string `protobuf:"bytes,4,opt,name=Errmsg,proto3" json:"Errmsg,omitempty"` // contains filtered or unexported fields }
func (*OaAccessTokenRespData) Descriptor
deprecated
added in
v0.0.3
func (*OaAccessTokenRespData) Descriptor() ([]byte, []int)
Deprecated: Use OaAccessTokenRespData.ProtoReflect.Descriptor instead.
func (*OaAccessTokenRespData) GetAccessToken ¶ added in v0.0.3
func (x *OaAccessTokenRespData) GetAccessToken() string
func (*OaAccessTokenRespData) GetErrcode ¶ added in v0.0.3
func (x *OaAccessTokenRespData) GetErrcode() int32
func (*OaAccessTokenRespData) GetErrmsg ¶ added in v0.0.3
func (x *OaAccessTokenRespData) GetErrmsg() string
func (*OaAccessTokenRespData) GetExpiresIn ¶ added in v0.0.3
func (x *OaAccessTokenRespData) GetExpiresIn() int64
func (*OaAccessTokenRespData) ProtoMessage ¶ added in v0.0.3
func (*OaAccessTokenRespData) ProtoMessage()
func (*OaAccessTokenRespData) ProtoReflect ¶ added in v0.0.3
func (x *OaAccessTokenRespData) ProtoReflect() protoreflect.Message
func (*OaAccessTokenRespData) Reset ¶ added in v0.0.3
func (x *OaAccessTokenRespData) Reset()
func (*OaAccessTokenRespData) String ¶ added in v0.0.3
func (x *OaAccessTokenRespData) String() string
type OaKeyReq ¶ added in v0.0.3
type OaKeyReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*OaKeyReq) Descriptor
deprecated
added in
v0.0.3
func (*OaKeyReq) ProtoMessage ¶ added in v0.0.3
func (*OaKeyReq) ProtoMessage()
func (*OaKeyReq) ProtoReflect ¶ added in v0.0.3
func (x *OaKeyReq) ProtoReflect() protoreflect.Message
type RefreshReq ¶ added in v0.0.10
type RefreshReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=RefreshToken,proto3" json:"RefreshToken,omitempty"` // contains filtered or unexported fields }
func (*RefreshReq) Descriptor
deprecated
added in
v0.0.10
func (*RefreshReq) Descriptor() ([]byte, []int)
Deprecated: Use RefreshReq.ProtoReflect.Descriptor instead.
func (*RefreshReq) GetKey ¶ added in v0.0.10
func (x *RefreshReq) GetKey() string
func (*RefreshReq) GetRefreshToken ¶ added in v0.0.10
func (x *RefreshReq) GetRefreshToken() string
func (*RefreshReq) ProtoMessage ¶ added in v0.0.10
func (*RefreshReq) ProtoMessage()
func (*RefreshReq) ProtoReflect ¶ added in v0.0.10
func (x *RefreshReq) ProtoReflect() protoreflect.Message
func (*RefreshReq) Reset ¶ added in v0.0.10
func (x *RefreshReq) Reset()
func (*RefreshReq) String ¶ added in v0.0.10
func (x *RefreshReq) String() string
type RefreshResp ¶ added in v0.0.10
type RefreshResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *RefreshRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*RefreshResp) Descriptor
deprecated
added in
v0.0.10
func (*RefreshResp) Descriptor() ([]byte, []int)
Deprecated: Use RefreshResp.ProtoReflect.Descriptor instead.
func (*RefreshResp) GetCode ¶ added in v0.0.10
func (x *RefreshResp) GetCode() int32
func (*RefreshResp) GetData ¶ added in v0.0.10
func (x *RefreshResp) GetData() *RefreshRespData
func (*RefreshResp) GetMsg ¶ added in v0.0.10
func (x *RefreshResp) GetMsg() string
func (*RefreshResp) GetPath ¶ added in v0.0.10
func (x *RefreshResp) GetPath() string
func (*RefreshResp) GetRequestID ¶ added in v0.0.10
func (x *RefreshResp) GetRequestID() string
func (*RefreshResp) ProtoMessage ¶ added in v0.0.10
func (*RefreshResp) ProtoMessage()
func (*RefreshResp) ProtoReflect ¶ added in v0.0.10
func (x *RefreshResp) ProtoReflect() protoreflect.Message
func (*RefreshResp) Reset ¶ added in v0.0.10
func (x *RefreshResp) Reset()
func (*RefreshResp) String ¶ added in v0.0.10
func (x *RefreshResp) String() string
type RefreshRespData ¶ added in v0.0.10
type RefreshRespData struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` ExpiresIn int64 `protobuf:"varint,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` Openid string `protobuf:"bytes,4,opt,name=openid,proto3" json:"openid,omitempty"` Scope string `protobuf:"bytes,5,opt,name=scope,proto3" json:"scope,omitempty"` Errcode int32 `protobuf:"varint,6,opt,name=errcode,proto3" json:"errcode,omitempty"` Errmsg string `protobuf:"bytes,7,opt,name=errmsg,proto3" json:"errmsg,omitempty"` // contains filtered or unexported fields }
func (*RefreshRespData) Descriptor
deprecated
added in
v0.0.10
func (*RefreshRespData) Descriptor() ([]byte, []int)
Deprecated: Use RefreshRespData.ProtoReflect.Descriptor instead.
func (*RefreshRespData) GetAccessToken ¶ added in v0.0.10
func (x *RefreshRespData) GetAccessToken() string
func (*RefreshRespData) GetErrcode ¶ added in v0.0.10
func (x *RefreshRespData) GetErrcode() int32
func (*RefreshRespData) GetErrmsg ¶ added in v0.0.10
func (x *RefreshRespData) GetErrmsg() string
func (*RefreshRespData) GetExpiresIn ¶ added in v0.0.10
func (x *RefreshRespData) GetExpiresIn() int64
func (*RefreshRespData) GetOpenid ¶ added in v0.0.10
func (x *RefreshRespData) GetOpenid() string
func (*RefreshRespData) GetRefreshToken ¶ added in v0.0.10
func (x *RefreshRespData) GetRefreshToken() string
func (*RefreshRespData) GetScope ¶ added in v0.0.10
func (x *RefreshRespData) GetScope() string
func (*RefreshRespData) ProtoMessage ¶ added in v0.0.10
func (*RefreshRespData) ProtoMessage()
func (*RefreshRespData) ProtoReflect ¶ added in v0.0.10
func (x *RefreshRespData) ProtoReflect() protoreflect.Message
func (*RefreshRespData) Reset ¶ added in v0.0.10
func (x *RefreshRespData) Reset()
func (*RefreshRespData) String ¶ added in v0.0.10
func (x *RefreshRespData) String() string
type TokenReq ¶ added in v0.0.10
type TokenReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` Openid string `protobuf:"bytes,3,opt,name=Openid,proto3" json:"Openid,omitempty"` Lang string `protobuf:"bytes,4,opt,name=Lang,proto3" json:"Lang,omitempty"` // contains filtered or unexported fields }
func (*TokenReq) Descriptor
deprecated
added in
v0.0.10
func (*TokenReq) GetAccessToken ¶ added in v0.0.10
func (*TokenReq) ProtoMessage ¶ added in v0.0.10
func (*TokenReq) ProtoMessage()
func (*TokenReq) ProtoReflect ¶ added in v0.0.10
func (x *TokenReq) ProtoReflect() protoreflect.Message
type UnimplementedWechatRpcServiceServer ¶
type UnimplementedWechatRpcServiceServer struct { }
UnimplementedWechatRpcServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedWechatRpcServiceServer) Code2Token ¶ added in v0.0.10
func (UnimplementedWechatRpcServiceServer) OfficialAccountAccessToken ¶ added in v0.0.3
func (UnimplementedWechatRpcServiceServer) OfficialAccountAccessToken(context.Context, *OaKeyReq) (*OaAccessTokenResp, error)
func (UnimplementedWechatRpcServiceServer) RefreshUserToken ¶ added in v0.0.10
func (UnimplementedWechatRpcServiceServer) RefreshUserToken(context.Context, *RefreshReq) (*RefreshResp, error)
func (UnimplementedWechatRpcServiceServer) UserToken2UserInfo ¶ added in v0.0.10
func (UnimplementedWechatRpcServiceServer) UserToken2UserInfo(context.Context, *TokenReq) (*UserInfoResp, error)
func (UnimplementedWechatRpcServiceServer) WebAutoRedirectWechat ¶
func (UnimplementedWechatRpcServiceServer) WebAutoRedirectWechat(context.Context, *WebAutoRedirectReq) (*WebAutoRedirectResp, error)
func (UnimplementedWechatRpcServiceServer) WebRedirectWechat ¶
func (UnimplementedWechatRpcServiceServer) WebRedirectWechat(context.Context, *WebRedirectReq) (*WebRedirectResp, error)
type UnsafeWechatRpcServiceServer ¶
type UnsafeWechatRpcServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWechatRpcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WechatRpcServiceServer will result in compilation errors.
type UserInfoResp ¶ added in v0.0.10
type UserInfoResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *UserInfoRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*UserInfoResp) Descriptor
deprecated
added in
v0.0.10
func (*UserInfoResp) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoResp.ProtoReflect.Descriptor instead.
func (*UserInfoResp) GetCode ¶ added in v0.0.10
func (x *UserInfoResp) GetCode() int32
func (*UserInfoResp) GetData ¶ added in v0.0.10
func (x *UserInfoResp) GetData() *UserInfoRespData
func (*UserInfoResp) GetMsg ¶ added in v0.0.10
func (x *UserInfoResp) GetMsg() string
func (*UserInfoResp) GetPath ¶ added in v0.0.10
func (x *UserInfoResp) GetPath() string
func (*UserInfoResp) GetRequestID ¶ added in v0.0.10
func (x *UserInfoResp) GetRequestID() string
func (*UserInfoResp) ProtoMessage ¶ added in v0.0.10
func (*UserInfoResp) ProtoMessage()
func (*UserInfoResp) ProtoReflect ¶ added in v0.0.10
func (x *UserInfoResp) ProtoReflect() protoreflect.Message
func (*UserInfoResp) Reset ¶ added in v0.0.10
func (x *UserInfoResp) Reset()
func (*UserInfoResp) String ¶ added in v0.0.10
func (x *UserInfoResp) String() string
type UserInfoRespData ¶ added in v0.0.10
type UserInfoRespData struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Openid string `protobuf:"bytes,2,opt,name=openid,proto3" json:"openid,omitempty"` Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` Sex int64 `protobuf:"varint,4,opt,name=sex,proto3" json:"sex,omitempty"` Province string `protobuf:"bytes,5,opt,name=province,proto3" json:"province,omitempty"` City string `protobuf:"bytes,6,opt,name=city,proto3" json:"city,omitempty"` Country string `protobuf:"bytes,7,opt,name=country,proto3" json:"country,omitempty"` Headimgurl string `protobuf:"bytes,8,opt,name=headimgurl,proto3" json:"headimgurl,omitempty"` Privilege []string `protobuf:"bytes,9,rep,name=privilege,proto3" json:"privilege,omitempty"` Unionid string `protobuf:"bytes,10,opt,name=unionid,proto3" json:"unionid,omitempty"` Errcode int32 `protobuf:"varint,11,opt,name=errcode,proto3" json:"errcode,omitempty"` Errmsg string `protobuf:"bytes,12,opt,name=errmsg,proto3" json:"errmsg,omitempty"` // contains filtered or unexported fields }
func (*UserInfoRespData) Descriptor
deprecated
added in
v0.0.10
func (*UserInfoRespData) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoRespData.ProtoReflect.Descriptor instead.
func (*UserInfoRespData) GetCity ¶ added in v0.0.10
func (x *UserInfoRespData) GetCity() string
func (*UserInfoRespData) GetCountry ¶ added in v0.0.10
func (x *UserInfoRespData) GetCountry() string
func (*UserInfoRespData) GetErrcode ¶ added in v0.0.10
func (x *UserInfoRespData) GetErrcode() int32
func (*UserInfoRespData) GetErrmsg ¶ added in v0.0.10
func (x *UserInfoRespData) GetErrmsg() string
func (*UserInfoRespData) GetHeadimgurl ¶ added in v0.0.10
func (x *UserInfoRespData) GetHeadimgurl() string
func (*UserInfoRespData) GetKey ¶ added in v0.0.10
func (x *UserInfoRespData) GetKey() string
func (*UserInfoRespData) GetNickname ¶ added in v0.0.10
func (x *UserInfoRespData) GetNickname() string
func (*UserInfoRespData) GetOpenid ¶ added in v0.0.10
func (x *UserInfoRespData) GetOpenid() string
func (*UserInfoRespData) GetPrivilege ¶ added in v0.0.10
func (x *UserInfoRespData) GetPrivilege() []string
func (*UserInfoRespData) GetProvince ¶ added in v0.0.10
func (x *UserInfoRespData) GetProvince() string
func (*UserInfoRespData) GetSex ¶ added in v0.0.10
func (x *UserInfoRespData) GetSex() int64
func (*UserInfoRespData) GetUnionid ¶ added in v0.0.10
func (x *UserInfoRespData) GetUnionid() string
func (*UserInfoRespData) ProtoMessage ¶ added in v0.0.10
func (*UserInfoRespData) ProtoMessage()
func (*UserInfoRespData) ProtoReflect ¶ added in v0.0.10
func (x *UserInfoRespData) ProtoReflect() protoreflect.Message
func (*UserInfoRespData) Reset ¶ added in v0.0.10
func (x *UserInfoRespData) Reset()
func (*UserInfoRespData) String ¶ added in v0.0.10
func (x *UserInfoRespData) String() string
type WebAutoRedirectReq ¶
type WebAutoRedirectReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` TempUrl string `protobuf:"bytes,5,opt,name=temp_url,json=tempUrl,proto3" json:"temp_url,omitempty"` // contains filtered or unexported fields }
func (*WebAutoRedirectReq) Descriptor
deprecated
func (*WebAutoRedirectReq) Descriptor() ([]byte, []int)
Deprecated: Use WebAutoRedirectReq.ProtoReflect.Descriptor instead.
func (*WebAutoRedirectReq) GetKey ¶
func (x *WebAutoRedirectReq) GetKey() string
func (*WebAutoRedirectReq) GetRedirectUri ¶
func (x *WebAutoRedirectReq) GetRedirectUri() string
func (*WebAutoRedirectReq) GetScope ¶
func (x *WebAutoRedirectReq) GetScope() string
func (*WebAutoRedirectReq) GetState ¶
func (x *WebAutoRedirectReq) GetState() string
func (*WebAutoRedirectReq) GetTempUrl ¶
func (x *WebAutoRedirectReq) GetTempUrl() string
func (*WebAutoRedirectReq) ProtoMessage ¶
func (*WebAutoRedirectReq) ProtoMessage()
func (*WebAutoRedirectReq) ProtoReflect ¶
func (x *WebAutoRedirectReq) ProtoReflect() protoreflect.Message
func (*WebAutoRedirectReq) Reset ¶
func (x *WebAutoRedirectReq) Reset()
func (*WebAutoRedirectReq) String ¶
func (x *WebAutoRedirectReq) String() string
type WebAutoRedirectResp ¶
type WebAutoRedirectResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *WebAutoRedirectRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*WebAutoRedirectResp) Descriptor
deprecated
func (*WebAutoRedirectResp) Descriptor() ([]byte, []int)
Deprecated: Use WebAutoRedirectResp.ProtoReflect.Descriptor instead.
func (*WebAutoRedirectResp) GetCode ¶
func (x *WebAutoRedirectResp) GetCode() int32
func (*WebAutoRedirectResp) GetData ¶
func (x *WebAutoRedirectResp) GetData() *WebAutoRedirectRespData
func (*WebAutoRedirectResp) GetMsg ¶
func (x *WebAutoRedirectResp) GetMsg() string
func (*WebAutoRedirectResp) GetPath ¶
func (x *WebAutoRedirectResp) GetPath() string
func (*WebAutoRedirectResp) GetRequestID ¶
func (x *WebAutoRedirectResp) GetRequestID() string
func (*WebAutoRedirectResp) ProtoMessage ¶
func (*WebAutoRedirectResp) ProtoMessage()
func (*WebAutoRedirectResp) ProtoReflect ¶
func (x *WebAutoRedirectResp) ProtoReflect() protoreflect.Message
func (*WebAutoRedirectResp) Reset ¶
func (x *WebAutoRedirectResp) Reset()
func (*WebAutoRedirectResp) String ¶
func (x *WebAutoRedirectResp) String() string
type WebAutoRedirectRespData ¶
type WebAutoRedirectRespData struct { Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` RedirectUrl string `protobuf:"bytes,4,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"` // contains filtered or unexported fields }
func (*WebAutoRedirectRespData) Descriptor
deprecated
func (*WebAutoRedirectRespData) Descriptor() ([]byte, []int)
Deprecated: Use WebAutoRedirectRespData.ProtoReflect.Descriptor instead.
func (*WebAutoRedirectRespData) GetRedirectUrl ¶
func (x *WebAutoRedirectRespData) GetRedirectUrl() string
func (*WebAutoRedirectRespData) GetScope ¶
func (x *WebAutoRedirectRespData) GetScope() string
func (*WebAutoRedirectRespData) GetState ¶
func (x *WebAutoRedirectRespData) GetState() string
func (*WebAutoRedirectRespData) GetUrl ¶
func (x *WebAutoRedirectRespData) GetUrl() string
func (*WebAutoRedirectRespData) ProtoMessage ¶
func (*WebAutoRedirectRespData) ProtoMessage()
func (*WebAutoRedirectRespData) ProtoReflect ¶
func (x *WebAutoRedirectRespData) ProtoReflect() protoreflect.Message
func (*WebAutoRedirectRespData) Reset ¶
func (x *WebAutoRedirectRespData) Reset()
func (*WebAutoRedirectRespData) String ¶
func (x *WebAutoRedirectRespData) String() string
type WebGetUserInfoReq ¶
type WebGetUserInfoReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Openid string `protobuf:"bytes,2,opt,name=Openid,proto3" json:"Openid,omitempty"` AccessToken string `protobuf:"bytes,3,opt,name=AccessToken,proto3" json:"AccessToken,omitempty"` // contains filtered or unexported fields }
func (*WebGetUserInfoReq) Descriptor
deprecated
func (*WebGetUserInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use WebGetUserInfoReq.ProtoReflect.Descriptor instead.
func (*WebGetUserInfoReq) GetAccessToken ¶
func (x *WebGetUserInfoReq) GetAccessToken() string
func (*WebGetUserInfoReq) GetKey ¶
func (x *WebGetUserInfoReq) GetKey() string
func (*WebGetUserInfoReq) GetOpenid ¶
func (x *WebGetUserInfoReq) GetOpenid() string
func (*WebGetUserInfoReq) ProtoMessage ¶
func (*WebGetUserInfoReq) ProtoMessage()
func (*WebGetUserInfoReq) ProtoReflect ¶
func (x *WebGetUserInfoReq) ProtoReflect() protoreflect.Message
func (*WebGetUserInfoReq) Reset ¶
func (x *WebGetUserInfoReq) Reset()
func (*WebGetUserInfoReq) String ¶
func (x *WebGetUserInfoReq) String() string
type WebGetUserInfoResp ¶
type WebGetUserInfoResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *WebGetUserInfoRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*WebGetUserInfoResp) Descriptor
deprecated
func (*WebGetUserInfoResp) Descriptor() ([]byte, []int)
Deprecated: Use WebGetUserInfoResp.ProtoReflect.Descriptor instead.
func (*WebGetUserInfoResp) GetCode ¶
func (x *WebGetUserInfoResp) GetCode() int32
func (*WebGetUserInfoResp) GetData ¶
func (x *WebGetUserInfoResp) GetData() *WebGetUserInfoRespData
func (*WebGetUserInfoResp) GetMsg ¶
func (x *WebGetUserInfoResp) GetMsg() string
func (*WebGetUserInfoResp) GetPath ¶
func (x *WebGetUserInfoResp) GetPath() string
func (*WebGetUserInfoResp) GetRequestID ¶
func (x *WebGetUserInfoResp) GetRequestID() string
func (*WebGetUserInfoResp) ProtoMessage ¶
func (*WebGetUserInfoResp) ProtoMessage()
func (*WebGetUserInfoResp) ProtoReflect ¶
func (x *WebGetUserInfoResp) ProtoReflect() protoreflect.Message
func (*WebGetUserInfoResp) Reset ¶
func (x *WebGetUserInfoResp) Reset()
func (*WebGetUserInfoResp) String ¶
func (x *WebGetUserInfoResp) String() string
type WebGetUserInfoRespData ¶
type WebGetUserInfoRespData struct { Openid string `protobuf:"bytes,1,opt,name=openid,proto3" json:"openid,omitempty"` Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` Sex int64 `protobuf:"varint,3,opt,name=sex,proto3" json:"sex,omitempty"` Province string `protobuf:"bytes,4,opt,name=province,proto3" json:"province,omitempty"` City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"` Country string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"` Headimgurl string `protobuf:"bytes,7,opt,name=headimgurl,proto3" json:"headimgurl,omitempty"` Privilege []string `protobuf:"bytes,8,rep,name=privilege,proto3" json:"privilege,omitempty"` Unionid string `protobuf:"bytes,9,opt,name=unionid,proto3" json:"unionid,omitempty"` Errcode int32 `protobuf:"varint,10,opt,name=errcode,proto3" json:"errcode,omitempty"` Errmsg string `protobuf:"bytes,11,opt,name=errmsg,proto3" json:"errmsg,omitempty"` // contains filtered or unexported fields }
func (*WebGetUserInfoRespData) Descriptor
deprecated
func (*WebGetUserInfoRespData) Descriptor() ([]byte, []int)
Deprecated: Use WebGetUserInfoRespData.ProtoReflect.Descriptor instead.
func (*WebGetUserInfoRespData) GetCity ¶
func (x *WebGetUserInfoRespData) GetCity() string
func (*WebGetUserInfoRespData) GetCountry ¶
func (x *WebGetUserInfoRespData) GetCountry() string
func (*WebGetUserInfoRespData) GetErrcode ¶
func (x *WebGetUserInfoRespData) GetErrcode() int32
func (*WebGetUserInfoRespData) GetErrmsg ¶
func (x *WebGetUserInfoRespData) GetErrmsg() string
func (*WebGetUserInfoRespData) GetHeadimgurl ¶
func (x *WebGetUserInfoRespData) GetHeadimgurl() string
func (*WebGetUserInfoRespData) GetNickname ¶
func (x *WebGetUserInfoRespData) GetNickname() string
func (*WebGetUserInfoRespData) GetOpenid ¶
func (x *WebGetUserInfoRespData) GetOpenid() string
func (*WebGetUserInfoRespData) GetPrivilege ¶
func (x *WebGetUserInfoRespData) GetPrivilege() []string
func (*WebGetUserInfoRespData) GetProvince ¶
func (x *WebGetUserInfoRespData) GetProvince() string
func (*WebGetUserInfoRespData) GetSex ¶
func (x *WebGetUserInfoRespData) GetSex() int64
func (*WebGetUserInfoRespData) GetUnionid ¶
func (x *WebGetUserInfoRespData) GetUnionid() string
func (*WebGetUserInfoRespData) ProtoMessage ¶
func (*WebGetUserInfoRespData) ProtoMessage()
func (*WebGetUserInfoRespData) ProtoReflect ¶
func (x *WebGetUserInfoRespData) ProtoReflect() protoreflect.Message
func (*WebGetUserInfoRespData) Reset ¶
func (x *WebGetUserInfoRespData) Reset()
func (*WebGetUserInfoRespData) String ¶
func (x *WebGetUserInfoRespData) String() string
type WebRedirectReq ¶
type WebRedirectReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` RedirectUri string `protobuf:"bytes,3,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*WebRedirectReq) Descriptor
deprecated
func (*WebRedirectReq) Descriptor() ([]byte, []int)
Deprecated: Use WebRedirectReq.ProtoReflect.Descriptor instead.
func (*WebRedirectReq) GetKey ¶
func (x *WebRedirectReq) GetKey() string
func (*WebRedirectReq) GetRedirectUri ¶
func (x *WebRedirectReq) GetRedirectUri() string
func (*WebRedirectReq) GetScope ¶
func (x *WebRedirectReq) GetScope() string
func (*WebRedirectReq) GetState ¶
func (x *WebRedirectReq) GetState() string
func (*WebRedirectReq) ProtoMessage ¶
func (*WebRedirectReq) ProtoMessage()
func (*WebRedirectReq) ProtoReflect ¶
func (x *WebRedirectReq) ProtoReflect() protoreflect.Message
func (*WebRedirectReq) Reset ¶
func (x *WebRedirectReq) Reset()
func (*WebRedirectReq) String ¶
func (x *WebRedirectReq) String() string
type WebRedirectResp ¶
type WebRedirectResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"` Data *WebRedirectRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*WebRedirectResp) Descriptor
deprecated
func (*WebRedirectResp) Descriptor() ([]byte, []int)
Deprecated: Use WebRedirectResp.ProtoReflect.Descriptor instead.
func (*WebRedirectResp) GetCode ¶
func (x *WebRedirectResp) GetCode() int32
func (*WebRedirectResp) GetData ¶
func (x *WebRedirectResp) GetData() *WebRedirectRespData
func (*WebRedirectResp) GetMsg ¶
func (x *WebRedirectResp) GetMsg() string
func (*WebRedirectResp) GetPath ¶
func (x *WebRedirectResp) GetPath() string
func (*WebRedirectResp) GetRequestID ¶
func (x *WebRedirectResp) GetRequestID() string
func (*WebRedirectResp) ProtoMessage ¶
func (*WebRedirectResp) ProtoMessage()
func (*WebRedirectResp) ProtoReflect ¶
func (x *WebRedirectResp) ProtoReflect() protoreflect.Message
func (*WebRedirectResp) Reset ¶
func (x *WebRedirectResp) Reset()
func (*WebRedirectResp) String ¶
func (x *WebRedirectResp) String() string
type WebRedirectRespData ¶
type WebRedirectRespData struct { Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*WebRedirectRespData) Descriptor
deprecated
func (*WebRedirectRespData) Descriptor() ([]byte, []int)
Deprecated: Use WebRedirectRespData.ProtoReflect.Descriptor instead.
func (*WebRedirectRespData) GetScope ¶
func (x *WebRedirectRespData) GetScope() string
func (*WebRedirectRespData) GetState ¶
func (x *WebRedirectRespData) GetState() string
func (*WebRedirectRespData) GetUrl ¶
func (x *WebRedirectRespData) GetUrl() string
func (*WebRedirectRespData) ProtoMessage ¶
func (*WebRedirectRespData) ProtoMessage()
func (*WebRedirectRespData) ProtoReflect ¶
func (x *WebRedirectRespData) ProtoReflect() protoreflect.Message
func (*WebRedirectRespData) Reset ¶
func (x *WebRedirectRespData) Reset()
func (*WebRedirectRespData) String ¶
func (x *WebRedirectRespData) String() string
type WechatRpcServiceClient ¶
type WechatRpcServiceClient interface { // note: common Code2Token(ctx context.Context, in *CodeReq, opts ...grpc.CallOption) (*CodeResp, error) RefreshUserToken(ctx context.Context, in *RefreshReq, opts ...grpc.CallOption) (*RefreshResp, error) UserToken2UserInfo(ctx context.Context, in *TokenReq, opts ...grpc.CallOption) (*UserInfoResp, error) // note: web WebRedirectWechat(ctx context.Context, in *WebRedirectReq, opts ...grpc.CallOption) (*WebRedirectResp, error) WebAutoRedirectWechat(ctx context.Context, in *WebAutoRedirectReq, opts ...grpc.CallOption) (*WebAutoRedirectResp, error) // note: base OfficialAccount 公众号基础能力 OfficialAccountAccessToken(ctx context.Context, in *OaKeyReq, opts ...grpc.CallOption) (*OaAccessTokenResp, error) }
WechatRpcServiceClient is the client API for WechatRpcService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewWechatRpcServiceClient ¶
func NewWechatRpcServiceClient(cc grpc.ClientConnInterface) WechatRpcServiceClient
type WechatRpcServiceServer ¶
type WechatRpcServiceServer interface { // note: common Code2Token(context.Context, *CodeReq) (*CodeResp, error) RefreshUserToken(context.Context, *RefreshReq) (*RefreshResp, error) UserToken2UserInfo(context.Context, *TokenReq) (*UserInfoResp, error) // note: web WebRedirectWechat(context.Context, *WebRedirectReq) (*WebRedirectResp, error) WebAutoRedirectWechat(context.Context, *WebAutoRedirectReq) (*WebAutoRedirectResp, error) // note: base OfficialAccount 公众号基础能力 OfficialAccountAccessToken(context.Context, *OaKeyReq) (*OaAccessTokenResp, error) // contains filtered or unexported methods }
WechatRpcServiceServer is the server API for WechatRpcService service. All implementations must embed UnimplementedWechatRpcServiceServer for forward compatibility