wechat

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WechatRpcService_WebRedirectWechat_FullMethodName          = "/wechat.WechatRpcService/WebRedirectWechat"
	WechatRpcService_WebAutoRedirectWechat_FullMethodName      = "/wechat.WechatRpcService/WebAutoRedirectWechat"
	WechatRpcService_WebCode2Token_FullMethodName              = "/wechat.WechatRpcService/WebCode2Token"
	WechatRpcService_WebToken2UserInfo_FullMethodName          = "/wechat.WechatRpcService/WebToken2UserInfo"
	WechatRpcService_WebRefreshToken_FullMethodName            = "/wechat.WechatRpcService/WebRefreshToken"
	WechatRpcService_WebGetUserInfo_FullMethodName             = "/wechat.WechatRpcService/WebGetUserInfo"
	WechatRpcService_OfficialAccountAccessToken_FullMethodName = "/wechat.WechatRpcService/OfficialAccountAccessToken"
)

Variables

View Source
var File_wechat_proto protoreflect.FileDescriptor
View Source
var WechatRpcService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "wechat.WechatRpcService",
	HandlerType: (*WechatRpcServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "WebRedirectWechat",
			Handler:    _WechatRpcService_WebRedirectWechat_Handler,
		},
		{
			MethodName: "WebAutoRedirectWechat",
			Handler:    _WechatRpcService_WebAutoRedirectWechat_Handler,
		},
		{
			MethodName: "WebCode2Token",
			Handler:    _WechatRpcService_WebCode2Token_Handler,
		},
		{
			MethodName: "WebToken2UserInfo",
			Handler:    _WechatRpcService_WebToken2UserInfo_Handler,
		},
		{
			MethodName: "WebRefreshToken",
			Handler:    _WechatRpcService_WebRefreshToken_Handler,
		},
		{
			MethodName: "WebGetUserInfo",
			Handler:    _WechatRpcService_WebGetUserInfo_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 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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use OaKeyReq.ProtoReflect.Descriptor instead.

func (*OaKeyReq) GetKey added in v0.0.3

func (x *OaKeyReq) GetKey() string

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

func (*OaKeyReq) Reset added in v0.0.3

func (x *OaKeyReq) Reset()

func (*OaKeyReq) String added in v0.0.3

func (x *OaKeyReq) String() string

type UnimplementedWechatRpcServiceServer

type UnimplementedWechatRpcServiceServer struct {
}

UnimplementedWechatRpcServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedWechatRpcServiceServer) OfficialAccountAccessToken added in v0.0.3

func (UnimplementedWechatRpcServiceServer) WebAutoRedirectWechat

func (UnimplementedWechatRpcServiceServer) WebCode2Token

func (UnimplementedWechatRpcServiceServer) WebGetUserInfo

func (UnimplementedWechatRpcServiceServer) WebRedirectWechat

func (UnimplementedWechatRpcServiceServer) WebRefreshToken

func (UnimplementedWechatRpcServiceServer) WebToken2UserInfo added in v0.0.3

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 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 (*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 WebCodeReq

type WebCodeReq 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 (*WebCodeReq) Descriptor deprecated

func (*WebCodeReq) Descriptor() ([]byte, []int)

Deprecated: Use WebCodeReq.ProtoReflect.Descriptor instead.

func (*WebCodeReq) GetCode

func (x *WebCodeReq) GetCode() string

func (*WebCodeReq) GetKey

func (x *WebCodeReq) GetKey() string

func (*WebCodeReq) ProtoMessage

func (*WebCodeReq) ProtoMessage()

func (*WebCodeReq) ProtoReflect

func (x *WebCodeReq) ProtoReflect() protoreflect.Message

func (*WebCodeReq) Reset

func (x *WebCodeReq) Reset()

func (*WebCodeReq) String

func (x *WebCodeReq) String() string

type WebCodeResp

type WebCodeResp 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      *WebCodeRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*WebCodeResp) Descriptor deprecated

func (*WebCodeResp) Descriptor() ([]byte, []int)

Deprecated: Use WebCodeResp.ProtoReflect.Descriptor instead.

func (*WebCodeResp) GetCode

func (x *WebCodeResp) GetCode() int32

func (*WebCodeResp) GetData

func (x *WebCodeResp) GetData() *WebCodeRespData

func (*WebCodeResp) GetMsg

func (x *WebCodeResp) GetMsg() string

func (*WebCodeResp) GetPath

func (x *WebCodeResp) GetPath() string

func (*WebCodeResp) GetRequestID

func (x *WebCodeResp) GetRequestID() string

func (*WebCodeResp) ProtoMessage

func (*WebCodeResp) ProtoMessage()

func (*WebCodeResp) ProtoReflect

func (x *WebCodeResp) ProtoReflect() protoreflect.Message

func (*WebCodeResp) Reset

func (x *WebCodeResp) Reset()

func (*WebCodeResp) String

func (x *WebCodeResp) String() string

type WebCodeRespData

type WebCodeRespData 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 (*WebCodeRespData) Descriptor deprecated

func (*WebCodeRespData) Descriptor() ([]byte, []int)

Deprecated: Use WebCodeRespData.ProtoReflect.Descriptor instead.

func (*WebCodeRespData) GetAccessToken

func (x *WebCodeRespData) GetAccessToken() string

func (*WebCodeRespData) GetErrcode

func (x *WebCodeRespData) GetErrcode() int32

func (*WebCodeRespData) GetErrmsg

func (x *WebCodeRespData) GetErrmsg() string

func (*WebCodeRespData) GetExpiresIn

func (x *WebCodeRespData) GetExpiresIn() int64

func (*WebCodeRespData) GetIsSnapshotuser

func (x *WebCodeRespData) GetIsSnapshotuser() int32

func (*WebCodeRespData) GetOpenid

func (x *WebCodeRespData) GetOpenid() string

func (*WebCodeRespData) GetRefreshToken

func (x *WebCodeRespData) GetRefreshToken() string

func (*WebCodeRespData) GetScope

func (x *WebCodeRespData) GetScope() string

func (*WebCodeRespData) GetUnionid

func (x *WebCodeRespData) GetUnionid() string

func (*WebCodeRespData) ProtoMessage

func (*WebCodeRespData) ProtoMessage()

func (*WebCodeRespData) ProtoReflect

func (x *WebCodeRespData) ProtoReflect() protoreflect.Message

func (*WebCodeRespData) Reset

func (x *WebCodeRespData) Reset()

func (*WebCodeRespData) String

func (x *WebCodeRespData) 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 (*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 WebRefreshReq

type WebRefreshReq 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 (*WebRefreshReq) Descriptor deprecated

func (*WebRefreshReq) Descriptor() ([]byte, []int)

Deprecated: Use WebRefreshReq.ProtoReflect.Descriptor instead.

func (*WebRefreshReq) GetKey

func (x *WebRefreshReq) GetKey() string

func (*WebRefreshReq) GetRefreshToken

func (x *WebRefreshReq) GetRefreshToken() string

func (*WebRefreshReq) ProtoMessage

func (*WebRefreshReq) ProtoMessage()

func (*WebRefreshReq) ProtoReflect

func (x *WebRefreshReq) ProtoReflect() protoreflect.Message

func (*WebRefreshReq) Reset

func (x *WebRefreshReq) Reset()

func (*WebRefreshReq) String

func (x *WebRefreshReq) String() string

type WebRefreshResp

type WebRefreshResp 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      *WebRefreshRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*WebRefreshResp) Descriptor deprecated

func (*WebRefreshResp) Descriptor() ([]byte, []int)

Deprecated: Use WebRefreshResp.ProtoReflect.Descriptor instead.

func (*WebRefreshResp) GetCode

func (x *WebRefreshResp) GetCode() int32

func (*WebRefreshResp) GetData

func (x *WebRefreshResp) GetData() *WebRefreshRespData

func (*WebRefreshResp) GetMsg

func (x *WebRefreshResp) GetMsg() string

func (*WebRefreshResp) GetPath

func (x *WebRefreshResp) GetPath() string

func (*WebRefreshResp) GetRequestID

func (x *WebRefreshResp) GetRequestID() string

func (*WebRefreshResp) ProtoMessage

func (*WebRefreshResp) ProtoMessage()

func (*WebRefreshResp) ProtoReflect

func (x *WebRefreshResp) ProtoReflect() protoreflect.Message

func (*WebRefreshResp) Reset

func (x *WebRefreshResp) Reset()

func (*WebRefreshResp) String

func (x *WebRefreshResp) String() string

type WebRefreshRespData

type WebRefreshRespData 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 (*WebRefreshRespData) Descriptor deprecated

func (*WebRefreshRespData) Descriptor() ([]byte, []int)

Deprecated: Use WebRefreshRespData.ProtoReflect.Descriptor instead.

func (*WebRefreshRespData) GetAccessToken

func (x *WebRefreshRespData) GetAccessToken() string

func (*WebRefreshRespData) GetErrcode

func (x *WebRefreshRespData) GetErrcode() int32

func (*WebRefreshRespData) GetErrmsg

func (x *WebRefreshRespData) GetErrmsg() string

func (*WebRefreshRespData) GetExpiresIn

func (x *WebRefreshRespData) GetExpiresIn() int64

func (*WebRefreshRespData) GetOpenid

func (x *WebRefreshRespData) GetOpenid() string

func (*WebRefreshRespData) GetRefreshToken

func (x *WebRefreshRespData) GetRefreshToken() string

func (*WebRefreshRespData) GetScope

func (x *WebRefreshRespData) GetScope() string

func (*WebRefreshRespData) ProtoMessage

func (*WebRefreshRespData) ProtoMessage()

func (*WebRefreshRespData) ProtoReflect

func (x *WebRefreshRespData) ProtoReflect() protoreflect.Message

func (*WebRefreshRespData) Reset

func (x *WebRefreshRespData) Reset()

func (*WebRefreshRespData) String

func (x *WebRefreshRespData) String() string

type WebTokenReq added in v0.0.3

type WebTokenReq 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 (*WebTokenReq) Descriptor deprecated added in v0.0.3

func (*WebTokenReq) Descriptor() ([]byte, []int)

Deprecated: Use WebTokenReq.ProtoReflect.Descriptor instead.

func (*WebTokenReq) GetAccessToken added in v0.0.3

func (x *WebTokenReq) GetAccessToken() string

func (*WebTokenReq) GetKey added in v0.0.3

func (x *WebTokenReq) GetKey() string

func (*WebTokenReq) GetLang added in v0.0.3

func (x *WebTokenReq) GetLang() string

func (*WebTokenReq) GetOpenid added in v0.0.3

func (x *WebTokenReq) GetOpenid() string

func (*WebTokenReq) ProtoMessage added in v0.0.3

func (*WebTokenReq) ProtoMessage()

func (*WebTokenReq) ProtoReflect added in v0.0.3

func (x *WebTokenReq) ProtoReflect() protoreflect.Message

func (*WebTokenReq) Reset added in v0.0.3

func (x *WebTokenReq) Reset()

func (*WebTokenReq) String added in v0.0.3

func (x *WebTokenReq) String() string

type WebUserInfoResp added in v0.0.3

type WebUserInfoResp 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      *WebUserInfoRespData `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*WebUserInfoResp) Descriptor deprecated added in v0.0.3

func (*WebUserInfoResp) Descriptor() ([]byte, []int)

Deprecated: Use WebUserInfoResp.ProtoReflect.Descriptor instead.

func (*WebUserInfoResp) GetCode added in v0.0.3

func (x *WebUserInfoResp) GetCode() int32

func (*WebUserInfoResp) GetData added in v0.0.3

func (x *WebUserInfoResp) GetData() *WebUserInfoRespData

func (*WebUserInfoResp) GetMsg added in v0.0.3

func (x *WebUserInfoResp) GetMsg() string

func (*WebUserInfoResp) GetPath added in v0.0.3

func (x *WebUserInfoResp) GetPath() string

func (*WebUserInfoResp) GetRequestID added in v0.0.3

func (x *WebUserInfoResp) GetRequestID() string

func (*WebUserInfoResp) ProtoMessage added in v0.0.3

func (*WebUserInfoResp) ProtoMessage()

func (*WebUserInfoResp) ProtoReflect added in v0.0.3

func (x *WebUserInfoResp) ProtoReflect() protoreflect.Message

func (*WebUserInfoResp) Reset added in v0.0.3

func (x *WebUserInfoResp) Reset()

func (*WebUserInfoResp) String added in v0.0.3

func (x *WebUserInfoResp) String() string

type WebUserInfoRespData added in v0.0.3

type WebUserInfoRespData 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 (*WebUserInfoRespData) Descriptor deprecated added in v0.0.3

func (*WebUserInfoRespData) Descriptor() ([]byte, []int)

Deprecated: Use WebUserInfoRespData.ProtoReflect.Descriptor instead.

func (*WebUserInfoRespData) GetCity added in v0.0.3

func (x *WebUserInfoRespData) GetCity() string

func (*WebUserInfoRespData) GetCountry added in v0.0.3

func (x *WebUserInfoRespData) GetCountry() string

func (*WebUserInfoRespData) GetErrcode added in v0.0.3

func (x *WebUserInfoRespData) GetErrcode() int32

func (*WebUserInfoRespData) GetErrmsg added in v0.0.3

func (x *WebUserInfoRespData) GetErrmsg() string

func (*WebUserInfoRespData) GetHeadimgurl added in v0.0.3

func (x *WebUserInfoRespData) GetHeadimgurl() string

func (*WebUserInfoRespData) GetKey added in v0.0.3

func (x *WebUserInfoRespData) GetKey() string

func (*WebUserInfoRespData) GetNickname added in v0.0.3

func (x *WebUserInfoRespData) GetNickname() string

func (*WebUserInfoRespData) GetOpenid added in v0.0.3

func (x *WebUserInfoRespData) GetOpenid() string

func (*WebUserInfoRespData) GetPrivilege added in v0.0.3

func (x *WebUserInfoRespData) GetPrivilege() []string

func (*WebUserInfoRespData) GetProvince added in v0.0.3

func (x *WebUserInfoRespData) GetProvince() string

func (*WebUserInfoRespData) GetSex added in v0.0.3

func (x *WebUserInfoRespData) GetSex() int64

func (*WebUserInfoRespData) GetUnionid added in v0.0.3

func (x *WebUserInfoRespData) GetUnionid() string

func (*WebUserInfoRespData) ProtoMessage added in v0.0.3

func (*WebUserInfoRespData) ProtoMessage()

func (*WebUserInfoRespData) ProtoReflect added in v0.0.3

func (x *WebUserInfoRespData) ProtoReflect() protoreflect.Message

func (*WebUserInfoRespData) Reset added in v0.0.3

func (x *WebUserInfoRespData) Reset()

func (*WebUserInfoRespData) String added in v0.0.3

func (x *WebUserInfoRespData) String() string

type WechatRpcServiceClient

type WechatRpcServiceClient interface {
	WebRedirectWechat(ctx context.Context, in *WebRedirectReq, opts ...grpc.CallOption) (*WebRedirectResp, error)
	WebAutoRedirectWechat(ctx context.Context, in *WebAutoRedirectReq, opts ...grpc.CallOption) (*WebAutoRedirectResp, error)
	WebCode2Token(ctx context.Context, in *WebCodeReq, opts ...grpc.CallOption) (*WebCodeResp, error)
	WebToken2UserInfo(ctx context.Context, in *WebTokenReq, opts ...grpc.CallOption) (*WebUserInfoResp, error)
	WebRefreshToken(ctx context.Context, in *WebRefreshReq, opts ...grpc.CallOption) (*WebRefreshResp, error)
	WebGetUserInfo(ctx context.Context, in *WebGetUserInfoReq, opts ...grpc.CallOption) (*WebGetUserInfoResp, error)
	// offiaccount 公众号基础能力
	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.

type WechatRpcServiceServer

type WechatRpcServiceServer interface {
	WebRedirectWechat(context.Context, *WebRedirectReq) (*WebRedirectResp, error)
	WebAutoRedirectWechat(context.Context, *WebAutoRedirectReq) (*WebAutoRedirectResp, error)
	WebCode2Token(context.Context, *WebCodeReq) (*WebCodeResp, error)
	WebToken2UserInfo(context.Context, *WebTokenReq) (*WebUserInfoResp, error)
	WebRefreshToken(context.Context, *WebRefreshReq) (*WebRefreshResp, error)
	WebGetUserInfo(context.Context, *WebGetUserInfoReq) (*WebGetUserInfoResp, error)
	// offiaccount 公众号基础能力
	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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL