Files
open-im-server/pkg/proto/auth/auth.pb.go
T

711 lines
24 KiB
Go
Raw Normal View History

2021-05-26 19:19:41 +08:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: auth/auth.proto
2022-09-21 20:20:26 +08:00
package pbAuth // import "Open_IM/pkg/proto/auth"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import sdk_ws "Open_IM/pkg/proto/sdk_ws"
2021-05-26 19:19:41 +08:00
import (
2022-09-21 20:20:26 +08:00
context "golang.org/x/net/context"
2021-05-26 19:19:41 +08:00
grpc "google.golang.org/grpc"
)
2022-09-21 20:20:26 +08:00
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
2021-05-26 19:19:41 +08:00
2022-09-21 20:20:26 +08:00
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
2021-05-26 19:19:41 +08:00
2022-09-21 20:20:26 +08:00
type CommonResp struct {
ErrCode int32 `protobuf:"varint,1,opt,name=errCode" json:"errCode,omitempty"`
ErrMsg string `protobuf:"bytes,2,opt,name=errMsg" json:"errMsg,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2021-05-26 19:19:41 +08:00
}
2022-08-07 22:37:27 +08:00
2022-09-21 20:20:26 +08:00
func (m *CommonResp) Reset() { *m = CommonResp{} }
func (m *CommonResp) String() string { return proto.CompactTextString(m) }
func (*CommonResp) ProtoMessage() {}
func (*CommonResp) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_71755bb03ef9bfd4, []int{0}
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *CommonResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CommonResp.Unmarshal(m, b)
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *CommonResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CommonResp.Marshal(b, m, deterministic)
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (dst *CommonResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_CommonResp.Merge(dst, src)
}
func (m *CommonResp) XXX_Size() int {
return xxx_messageInfo_CommonResp.Size(m)
2022-08-07 22:37:27 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *CommonResp) XXX_DiscardUnknown() {
xxx_messageInfo_CommonResp.DiscardUnknown(m)
}
var xxx_messageInfo_CommonResp proto.InternalMessageInfo
2021-05-26 19:19:41 +08:00
2022-09-21 20:20:26 +08:00
func (m *CommonResp) GetErrCode() int32 {
if m != nil {
return m.ErrCode
2021-05-26 19:19:41 +08:00
}
2021-12-27 16:48:05 +08:00
return 0
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *CommonResp) GetErrMsg() string {
if m != nil {
return m.ErrMsg
2021-05-26 19:19:41 +08:00
}
return ""
}
2021-12-27 16:48:05 +08:00
type UserRegisterReq struct {
2022-09-21 20:20:26 +08:00
UserInfo *sdk_ws.UserInfo `protobuf:"bytes,1,opt,name=UserInfo" json:"UserInfo,omitempty"`
OperationID string `protobuf:"bytes,2,opt,name=OperationID" json:"OperationID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2021-12-27 16:48:05 +08:00
}
2022-08-07 22:37:27 +08:00
2022-09-21 20:20:26 +08:00
func (m *UserRegisterReq) Reset() { *m = UserRegisterReq{} }
func (m *UserRegisterReq) String() string { return proto.CompactTextString(m) }
func (*UserRegisterReq) ProtoMessage() {}
func (*UserRegisterReq) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_71755bb03ef9bfd4, []int{1}
2021-12-27 16:48:05 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserRegisterReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserRegisterReq.Unmarshal(m, b)
2021-12-27 16:48:05 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserRegisterReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UserRegisterReq.Marshal(b, m, deterministic)
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (dst *UserRegisterReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_UserRegisterReq.Merge(dst, src)
}
func (m *UserRegisterReq) XXX_Size() int {
return xxx_messageInfo_UserRegisterReq.Size(m)
2022-08-07 22:37:27 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserRegisterReq) XXX_DiscardUnknown() {
xxx_messageInfo_UserRegisterReq.DiscardUnknown(m)
}
var xxx_messageInfo_UserRegisterReq proto.InternalMessageInfo
2021-12-27 16:48:05 +08:00
2022-09-21 20:20:26 +08:00
func (m *UserRegisterReq) GetUserInfo() *sdk_ws.UserInfo {
if m != nil {
return m.UserInfo
2021-05-26 19:19:41 +08:00
}
2021-12-27 16:48:05 +08:00
return nil
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserRegisterReq) GetOperationID() string {
if m != nil {
return m.OperationID
2021-05-26 19:19:41 +08:00
}
return ""
}
type UserRegisterResp struct {
2022-09-21 20:20:26 +08:00
CommonResp *CommonResp `protobuf:"bytes,1,opt,name=CommonResp" json:"CommonResp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2021-05-26 19:19:41 +08:00
}
2022-08-07 22:37:27 +08:00
2022-09-21 20:20:26 +08:00
func (m *UserRegisterResp) Reset() { *m = UserRegisterResp{} }
func (m *UserRegisterResp) String() string { return proto.CompactTextString(m) }
func (*UserRegisterResp) ProtoMessage() {}
func (*UserRegisterResp) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_71755bb03ef9bfd4, []int{2}
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserRegisterResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserRegisterResp.Unmarshal(m, b)
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserRegisterResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UserRegisterResp.Marshal(b, m, deterministic)
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (dst *UserRegisterResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_UserRegisterResp.Merge(dst, src)
2022-08-07 22:37:27 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserRegisterResp) XXX_Size() int {
return xxx_messageInfo_UserRegisterResp.Size(m)
}
func (m *UserRegisterResp) XXX_DiscardUnknown() {
xxx_messageInfo_UserRegisterResp.DiscardUnknown(m)
}
var xxx_messageInfo_UserRegisterResp proto.InternalMessageInfo
2021-05-26 19:19:41 +08:00
2022-09-21 20:20:26 +08:00
func (m *UserRegisterResp) GetCommonResp() *CommonResp {
if m != nil {
return m.CommonResp
2021-05-26 19:19:41 +08:00
}
2021-12-27 16:48:05 +08:00
return nil
2021-05-26 19:19:41 +08:00
}
type UserTokenReq struct {
2022-09-21 20:20:26 +08:00
Platform int32 `protobuf:"varint,1,opt,name=Platform" json:"Platform,omitempty"`
FromUserID string `protobuf:"bytes,2,opt,name=FromUserID" json:"FromUserID,omitempty"`
OpUserID string `protobuf:"bytes,3,opt,name=OpUserID" json:"OpUserID,omitempty"`
OperationID string `protobuf:"bytes,4,opt,name=OperationID" json:"OperationID,omitempty"`
LoginIp string `protobuf:"bytes,5,opt,name=LoginIp" json:"LoginIp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *UserTokenReq) Reset() { *m = UserTokenReq{} }
func (m *UserTokenReq) String() string { return proto.CompactTextString(m) }
func (*UserTokenReq) ProtoMessage() {}
func (*UserTokenReq) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_71755bb03ef9bfd4, []int{3}
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserTokenReq.Unmarshal(m, b)
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UserTokenReq.Marshal(b, m, deterministic)
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (dst *UserTokenReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_UserTokenReq.Merge(dst, src)
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenReq) XXX_Size() int {
return xxx_messageInfo_UserTokenReq.Size(m)
2022-08-07 22:37:27 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenReq) XXX_DiscardUnknown() {
xxx_messageInfo_UserTokenReq.DiscardUnknown(m)
}
var xxx_messageInfo_UserTokenReq proto.InternalMessageInfo
2021-05-26 19:19:41 +08:00
2022-09-21 20:20:26 +08:00
func (m *UserTokenReq) GetPlatform() int32 {
if m != nil {
return m.Platform
2021-05-26 19:19:41 +08:00
}
return 0
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenReq) GetFromUserID() string {
if m != nil {
return m.FromUserID
2021-12-27 16:48:05 +08:00
}
return ""
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenReq) GetOpUserID() string {
if m != nil {
return m.OpUserID
2021-12-27 16:48:05 +08:00
}
return ""
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenReq) GetOperationID() string {
if m != nil {
return m.OperationID
2021-05-26 19:19:41 +08:00
}
return ""
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenReq) GetLoginIp() string {
if m != nil {
return m.LoginIp
2022-08-07 22:37:27 +08:00
}
return ""
2021-05-26 19:19:41 +08:00
}
2022-08-07 22:37:27 +08:00
type UserTokenResp struct {
2022-09-21 20:20:26 +08:00
CommonResp *CommonResp `protobuf:"bytes,1,opt,name=CommonResp" json:"CommonResp,omitempty"`
Token string `protobuf:"bytes,2,opt,name=Token" json:"Token,omitempty"`
ExpiredTime int64 `protobuf:"varint,3,opt,name=ExpiredTime" json:"ExpiredTime,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2021-05-26 19:19:41 +08:00
}
2022-08-07 22:37:27 +08:00
2022-09-21 20:20:26 +08:00
func (m *UserTokenResp) Reset() { *m = UserTokenResp{} }
func (m *UserTokenResp) String() string { return proto.CompactTextString(m) }
func (*UserTokenResp) ProtoMessage() {}
func (*UserTokenResp) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_71755bb03ef9bfd4, []int{4}
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_UserTokenResp.Unmarshal(m, b)
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_UserTokenResp.Marshal(b, m, deterministic)
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (dst *UserTokenResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_UserTokenResp.Merge(dst, src)
2022-08-07 22:37:27 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenResp) XXX_Size() int {
return xxx_messageInfo_UserTokenResp.Size(m)
}
func (m *UserTokenResp) XXX_DiscardUnknown() {
xxx_messageInfo_UserTokenResp.DiscardUnknown(m)
}
var xxx_messageInfo_UserTokenResp proto.InternalMessageInfo
2021-05-26 19:19:41 +08:00
2022-09-21 20:20:26 +08:00
func (m *UserTokenResp) GetCommonResp() *CommonResp {
if m != nil {
return m.CommonResp
2021-05-26 19:19:41 +08:00
}
2021-12-27 16:48:05 +08:00
return nil
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenResp) GetToken() string {
if m != nil {
return m.Token
2021-05-26 19:19:41 +08:00
}
return ""
}
2022-09-21 20:20:26 +08:00
func (m *UserTokenResp) GetExpiredTime() int64 {
if m != nil {
return m.ExpiredTime
2021-05-26 19:19:41 +08:00
}
return 0
}
2022-06-06 20:39:45 +08:00
type ForceLogoutReq struct {
2022-09-21 20:20:26 +08:00
Platform int32 `protobuf:"varint,1,opt,name=Platform" json:"Platform,omitempty"`
FromUserID string `protobuf:"bytes,2,opt,name=FromUserID" json:"FromUserID,omitempty"`
OpUserID string `protobuf:"bytes,3,opt,name=OpUserID" json:"OpUserID,omitempty"`
OperationID string `protobuf:"bytes,4,opt,name=OperationID" json:"OperationID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ForceLogoutReq) Reset() { *m = ForceLogoutReq{} }
func (m *ForceLogoutReq) String() string { return proto.CompactTextString(m) }
func (*ForceLogoutReq) ProtoMessage() {}
func (*ForceLogoutReq) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_71755bb03ef9bfd4, []int{5}
2022-06-06 20:39:45 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *ForceLogoutReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ForceLogoutReq.Unmarshal(m, b)
2022-06-06 20:39:45 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *ForceLogoutReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ForceLogoutReq.Marshal(b, m, deterministic)
2022-06-06 20:39:45 +08:00
}
2022-09-21 20:20:26 +08:00
func (dst *ForceLogoutReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_ForceLogoutReq.Merge(dst, src)
2022-06-06 20:39:45 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *ForceLogoutReq) XXX_Size() int {
return xxx_messageInfo_ForceLogoutReq.Size(m)
}
func (m *ForceLogoutReq) XXX_DiscardUnknown() {
xxx_messageInfo_ForceLogoutReq.DiscardUnknown(m)
2022-08-07 22:37:27 +08:00
}
2022-06-06 20:39:45 +08:00
2022-09-21 20:20:26 +08:00
var xxx_messageInfo_ForceLogoutReq proto.InternalMessageInfo
func (m *ForceLogoutReq) GetPlatform() int32 {
if m != nil {
return m.Platform
2022-06-06 20:39:45 +08:00
}
return 0
}
2022-09-21 20:20:26 +08:00
func (m *ForceLogoutReq) GetFromUserID() string {
if m != nil {
return m.FromUserID
2022-06-06 20:39:45 +08:00
}
return ""
}
2022-09-21 20:20:26 +08:00
func (m *ForceLogoutReq) GetOpUserID() string {
if m != nil {
return m.OpUserID
2022-06-06 20:39:45 +08:00
}
return ""
}
2022-09-21 20:20:26 +08:00
func (m *ForceLogoutReq) GetOperationID() string {
if m != nil {
return m.OperationID
2022-06-06 20:39:45 +08:00
}
return ""
}
type ForceLogoutResp struct {
2022-09-21 20:20:26 +08:00
CommonResp *CommonResp `protobuf:"bytes,1,opt,name=CommonResp" json:"CommonResp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2022-06-06 20:39:45 +08:00
2022-09-21 20:20:26 +08:00
func (m *ForceLogoutResp) Reset() { *m = ForceLogoutResp{} }
func (m *ForceLogoutResp) String() string { return proto.CompactTextString(m) }
func (*ForceLogoutResp) ProtoMessage() {}
func (*ForceLogoutResp) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_71755bb03ef9bfd4, []int{6}
}
func (m *ForceLogoutResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ForceLogoutResp.Unmarshal(m, b)
}
func (m *ForceLogoutResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ForceLogoutResp.Marshal(b, m, deterministic)
}
func (dst *ForceLogoutResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ForceLogoutResp.Merge(dst, src)
}
func (m *ForceLogoutResp) XXX_Size() int {
return xxx_messageInfo_ForceLogoutResp.Size(m)
}
func (m *ForceLogoutResp) XXX_DiscardUnknown() {
xxx_messageInfo_ForceLogoutResp.DiscardUnknown(m)
2022-06-06 20:39:45 +08:00
}
2022-08-07 22:37:27 +08:00
2022-09-21 20:20:26 +08:00
var xxx_messageInfo_ForceLogoutResp proto.InternalMessageInfo
func (m *ForceLogoutResp) GetCommonResp() *CommonResp {
if m != nil {
return m.CommonResp
2022-08-07 22:37:27 +08:00
}
2022-09-21 20:20:26 +08:00
return nil
2022-06-06 20:39:45 +08:00
}
2022-08-07 22:37:27 +08:00
2022-09-21 20:20:26 +08:00
type ParseTokenReq struct {
Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2022-06-06 20:39:45 +08:00
}
2022-08-07 22:37:27 +08:00
2022-09-21 20:20:26 +08:00
func (m *ParseTokenReq) Reset() { *m = ParseTokenReq{} }
func (m *ParseTokenReq) String() string { return proto.CompactTextString(m) }
func (*ParseTokenReq) ProtoMessage() {}
func (*ParseTokenReq) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_71755bb03ef9bfd4, []int{7}
}
func (m *ParseTokenReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParseTokenReq.Unmarshal(m, b)
}
func (m *ParseTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParseTokenReq.Marshal(b, m, deterministic)
}
func (dst *ParseTokenReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParseTokenReq.Merge(dst, src)
}
func (m *ParseTokenReq) XXX_Size() int {
return xxx_messageInfo_ParseTokenReq.Size(m)
}
func (m *ParseTokenReq) XXX_DiscardUnknown() {
xxx_messageInfo_ParseTokenReq.DiscardUnknown(m)
}
var xxx_messageInfo_ParseTokenReq proto.InternalMessageInfo
2022-08-07 22:37:27 +08:00
2022-09-21 20:20:26 +08:00
func (m *ParseTokenReq) GetToken() string {
if m != nil {
return m.Token
2022-08-07 22:37:27 +08:00
}
2022-09-21 20:20:26 +08:00
return ""
2022-06-06 20:39:45 +08:00
}
2022-09-21 20:20:26 +08:00
func (m *ParseTokenReq) GetOperationID() string {
if m != nil {
return m.OperationID
}
return ""
2022-08-07 22:37:27 +08:00
}
2022-06-06 20:39:45 +08:00
2022-09-21 20:20:26 +08:00
type ParseTokenResp struct {
UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"`
Platform string `protobuf:"bytes,2,opt,name=platform" json:"platform,omitempty"`
CommonResp *CommonResp `protobuf:"bytes,3,opt,name=commonResp" json:"commonResp,omitempty"`
ExpireTimeSeconds uint32 `protobuf:"varint,4,opt,name=expireTimeSeconds" json:"expireTimeSeconds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ParseTokenResp) Reset() { *m = ParseTokenResp{} }
func (m *ParseTokenResp) String() string { return proto.CompactTextString(m) }
func (*ParseTokenResp) ProtoMessage() {}
func (*ParseTokenResp) Descriptor() ([]byte, []int) {
return fileDescriptor_auth_71755bb03ef9bfd4, []int{8}
}
func (m *ParseTokenResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ParseTokenResp.Unmarshal(m, b)
}
func (m *ParseTokenResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ParseTokenResp.Marshal(b, m, deterministic)
}
func (dst *ParseTokenResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ParseTokenResp.Merge(dst, src)
}
func (m *ParseTokenResp) XXX_Size() int {
return xxx_messageInfo_ParseTokenResp.Size(m)
}
func (m *ParseTokenResp) XXX_DiscardUnknown() {
xxx_messageInfo_ParseTokenResp.DiscardUnknown(m)
}
var xxx_messageInfo_ParseTokenResp proto.InternalMessageInfo
func (m *ParseTokenResp) GetUserID() string {
if m != nil {
return m.UserID
}
return ""
}
func (m *ParseTokenResp) GetPlatform() string {
if m != nil {
return m.Platform
}
return ""
}
func (m *ParseTokenResp) GetCommonResp() *CommonResp {
if m != nil {
return m.CommonResp
2022-06-06 20:39:45 +08:00
}
return nil
}
2022-09-21 20:20:26 +08:00
func (m *ParseTokenResp) GetExpireTimeSeconds() uint32 {
if m != nil {
return m.ExpireTimeSeconds
}
return 0
}
2022-08-07 22:37:27 +08:00
2022-09-21 20:20:26 +08:00
func init() {
proto.RegisterType((*CommonResp)(nil), "pbAuth.CommonResp")
proto.RegisterType((*UserRegisterReq)(nil), "pbAuth.UserRegisterReq")
proto.RegisterType((*UserRegisterResp)(nil), "pbAuth.UserRegisterResp")
proto.RegisterType((*UserTokenReq)(nil), "pbAuth.UserTokenReq")
proto.RegisterType((*UserTokenResp)(nil), "pbAuth.UserTokenResp")
proto.RegisterType((*ForceLogoutReq)(nil), "pbAuth.ForceLogoutReq")
proto.RegisterType((*ForceLogoutResp)(nil), "pbAuth.ForceLogoutResp")
proto.RegisterType((*ParseTokenReq)(nil), "pbAuth.ParseTokenReq")
proto.RegisterType((*ParseTokenResp)(nil), "pbAuth.ParseTokenResp")
2021-05-26 19:19:41 +08:00
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
2022-09-21 20:20:26 +08:00
var _ grpc.ClientConn
2021-05-26 19:19:41 +08:00
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
2022-09-21 20:20:26 +08:00
const _ = grpc.SupportPackageIsVersion4
// Client API for Auth service
2021-05-26 19:19:41 +08:00
type AuthClient interface {
UserRegister(ctx context.Context, in *UserRegisterReq, opts ...grpc.CallOption) (*UserRegisterResp, error)
UserToken(ctx context.Context, in *UserTokenReq, opts ...grpc.CallOption) (*UserTokenResp, error)
2022-06-06 20:39:45 +08:00
ForceLogout(ctx context.Context, in *ForceLogoutReq, opts ...grpc.CallOption) (*ForceLogoutResp, error)
2022-09-21 20:20:26 +08:00
ParseToken(ctx context.Context, in *ParseTokenReq, opts ...grpc.CallOption) (*ParseTokenResp, error)
2021-05-26 19:19:41 +08:00
}
type authClient struct {
2022-09-21 20:20:26 +08:00
cc *grpc.ClientConn
2021-05-26 19:19:41 +08:00
}
2022-09-21 20:20:26 +08:00
func NewAuthClient(cc *grpc.ClientConn) AuthClient {
2021-05-26 19:19:41 +08:00
return &authClient{cc}
}
func (c *authClient) UserRegister(ctx context.Context, in *UserRegisterReq, opts ...grpc.CallOption) (*UserRegisterResp, error) {
out := new(UserRegisterResp)
2022-09-21 20:20:26 +08:00
err := grpc.Invoke(ctx, "/pbAuth.Auth/UserRegister", in, out, c.cc, opts...)
2021-05-26 19:19:41 +08:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *authClient) UserToken(ctx context.Context, in *UserTokenReq, opts ...grpc.CallOption) (*UserTokenResp, error) {
out := new(UserTokenResp)
2022-09-21 20:20:26 +08:00
err := grpc.Invoke(ctx, "/pbAuth.Auth/UserToken", in, out, c.cc, opts...)
2021-05-26 19:19:41 +08:00
if err != nil {
return nil, err
}
return out, nil
}
2022-06-06 20:39:45 +08:00
func (c *authClient) ForceLogout(ctx context.Context, in *ForceLogoutReq, opts ...grpc.CallOption) (*ForceLogoutResp, error) {
out := new(ForceLogoutResp)
2022-09-21 20:20:26 +08:00
err := grpc.Invoke(ctx, "/pbAuth.Auth/ForceLogout", in, out, c.cc, opts...)
2022-06-06 20:39:45 +08:00
if err != nil {
return nil, err
}
return out, nil
}
2022-09-21 20:20:26 +08:00
func (c *authClient) ParseToken(ctx context.Context, in *ParseTokenReq, opts ...grpc.CallOption) (*ParseTokenResp, error) {
out := new(ParseTokenResp)
err := grpc.Invoke(ctx, "/pbAuth.Auth/ParseToken", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Auth service
2021-05-26 19:19:41 +08:00
type AuthServer interface {
UserRegister(context.Context, *UserRegisterReq) (*UserRegisterResp, error)
UserToken(context.Context, *UserTokenReq) (*UserTokenResp, error)
2022-06-06 20:39:45 +08:00
ForceLogout(context.Context, *ForceLogoutReq) (*ForceLogoutResp, error)
2022-09-21 20:20:26 +08:00
ParseToken(context.Context, *ParseTokenReq) (*ParseTokenResp, error)
2022-08-07 22:37:27 +08:00
}
2021-05-26 19:19:41 +08:00
func RegisterAuthServer(s *grpc.Server, srv AuthServer) {
s.RegisterService(&_Auth_serviceDesc, srv)
}
func _Auth_UserRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UserRegisterReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AuthServer).UserRegister(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pbAuth.Auth/UserRegister",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServer).UserRegister(ctx, req.(*UserRegisterReq))
}
return interceptor(ctx, in, info, handler)
}
func _Auth_UserToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UserTokenReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AuthServer).UserToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pbAuth.Auth/UserToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServer).UserToken(ctx, req.(*UserTokenReq))
}
return interceptor(ctx, in, info, handler)
}
2022-06-06 20:39:45 +08:00
func _Auth_ForceLogout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ForceLogoutReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AuthServer).ForceLogout(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pbAuth.Auth/ForceLogout",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServer).ForceLogout(ctx, req.(*ForceLogoutReq))
}
return interceptor(ctx, in, info, handler)
}
2022-09-21 20:20:26 +08:00
func _Auth_ParseToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ParseTokenReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(AuthServer).ParseToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pbAuth.Auth/ParseToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(AuthServer).ParseToken(ctx, req.(*ParseTokenReq))
}
return interceptor(ctx, in, info, handler)
}
2021-05-26 19:19:41 +08:00
var _Auth_serviceDesc = grpc.ServiceDesc{
ServiceName: "pbAuth.Auth",
HandlerType: (*AuthServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "UserRegister",
Handler: _Auth_UserRegister_Handler,
},
{
MethodName: "UserToken",
Handler: _Auth_UserToken_Handler,
},
2022-06-06 20:39:45 +08:00
{
MethodName: "ForceLogout",
Handler: _Auth_ForceLogout_Handler,
},
2022-09-21 20:20:26 +08:00
{
MethodName: "ParseToken",
Handler: _Auth_ParseToken_Handler,
},
2021-05-26 19:19:41 +08:00
},
Streams: []grpc.StreamDesc{},
Metadata: "auth/auth.proto",
}
2022-09-21 20:20:26 +08:00
func init() { proto.RegisterFile("auth/auth.proto", fileDescriptor_auth_71755bb03ef9bfd4) }
var fileDescriptor_auth_71755bb03ef9bfd4 = []byte{
// 537 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 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