basic

package
v0.0.0-...-4036ab3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-2.0 Imports: 7 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	APP_name = map[int32]string{
		0: "Unknown",
		1: "Meowchat",
		2: "MeowchatManager",
		3: "Meowcloud",
	}
	APP_value = map[string]int32{
		"Unknown":         0,
		"Meowchat":        1,
		"MeowchatManager": 2,
		"Meowcloud":       3,
	}
)

Enum value maps for APP.

View Source
var File_basic_app_proto protoreflect.FileDescriptor
View Source
var File_basic_pagination_proto protoreflect.FileDescriptor
View Source
var File_basic_user_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type APP

type APP int32
const (
	APP_Unknown         APP = 0
	APP_Meowchat        APP = 1
	APP_MeowchatManager APP = 2
	APP_Meowcloud       APP = 3
)

func (APP) Descriptor

func (APP) Descriptor() protoreflect.EnumDescriptor

func (APP) Enum

func (x APP) Enum() *APP

func (APP) EnumDescriptor deprecated

func (APP) EnumDescriptor() ([]byte, []int)

Deprecated: Use APP.Descriptor instead.

func (APP) Number

func (x APP) Number() protoreflect.EnumNumber

func (APP) String

func (x APP) String() string

func (APP) Type

func (APP) Type() protoreflect.EnumType

type Extra

type Extra struct {
	ClientIP       string `protobuf:"bytes,1,opt,name=clientIP,proto3" json:"clientIP,omitempty"`
	Language       string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"`
	Resolution     string `protobuf:"bytes,3,opt,name=resolution,proto3" json:"resolution,omitempty"`         // 像素比
	DevicePlatform string `protobuf:"bytes,4,opt,name=devicePlatform,proto3" json:"devicePlatform,omitempty"` // 设备平台
	DeviceBrand    string `protobuf:"bytes,5,opt,name=deviceBrand,proto3" json:"deviceBrand,omitempty"`       // 设备品牌
	DeviceId       string `protobuf:"bytes,6,opt,name=deviceId,proto3" json:"deviceId,omitempty"`
	OperateSystem  string `protobuf:"bytes,7,opt,name=operateSystem,proto3" json:"operateSystem,omitempty"`
	// contains filtered or unexported fields
}

客户端透传

func (*Extra) Descriptor deprecated

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

Deprecated: Use Extra.ProtoReflect.Descriptor instead.

func (*Extra) FastRead

func (x *Extra) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Extra) FastWrite

func (x *Extra) FastWrite(buf []byte) (offset int)

func (*Extra) GetClientIP

func (x *Extra) GetClientIP() string

func (*Extra) GetDeviceBrand

func (x *Extra) GetDeviceBrand() string

func (*Extra) GetDeviceId

func (x *Extra) GetDeviceId() string

func (*Extra) GetDevicePlatform

func (x *Extra) GetDevicePlatform() string

func (*Extra) GetLanguage

func (x *Extra) GetLanguage() string

func (*Extra) GetOperateSystem

func (x *Extra) GetOperateSystem() string

func (*Extra) GetResolution

func (x *Extra) GetResolution() string

func (*Extra) ProtoMessage

func (*Extra) ProtoMessage()

func (*Extra) ProtoReflect

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

func (*Extra) Reset

func (x *Extra) Reset()

func (*Extra) Size

func (x *Extra) Size() (n int)

func (*Extra) String

func (x *Extra) String() string

type PaginationOptions

type PaginationOptions struct {
	Page      *int64  `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"`
	Limit     *int64  `protobuf:"varint,2,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	LastToken *string `protobuf:"bytes,3,opt,name=lastToken,proto3,oneof" json:"lastToken,omitempty"`
	Backward  *bool   `protobuf:"varint,4,opt,name=backward,proto3,oneof" json:"backward,omitempty"`
	Offset    *int64  `protobuf:"varint,5,opt,name=offset,proto3,oneof" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*PaginationOptions) Descriptor deprecated

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

Deprecated: Use PaginationOptions.ProtoReflect.Descriptor instead.

func (*PaginationOptions) FastRead

func (x *PaginationOptions) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*PaginationOptions) FastWrite

func (x *PaginationOptions) FastWrite(buf []byte) (offset int)

func (*PaginationOptions) GetBackward

func (x *PaginationOptions) GetBackward() bool

func (*PaginationOptions) GetLastToken

func (x *PaginationOptions) GetLastToken() string

func (*PaginationOptions) GetLimit

func (x *PaginationOptions) GetLimit() int64

func (*PaginationOptions) GetOffset

func (x *PaginationOptions) GetOffset() int64

func (*PaginationOptions) GetPage

func (x *PaginationOptions) GetPage() int64

func (*PaginationOptions) ProtoMessage

func (*PaginationOptions) ProtoMessage()

func (*PaginationOptions) ProtoReflect

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

func (*PaginationOptions) Reset

func (x *PaginationOptions) Reset()

func (*PaginationOptions) Size

func (x *PaginationOptions) Size() (n int)

func (*PaginationOptions) String

func (x *PaginationOptions) String() string

type UserMeta

type UserMeta struct {
	UserId          string          `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
	AppId           APP             `protobuf:"varint,2,opt,name=appId,proto3,enum=basic.APP" json:"appId,omitempty"`
	DeviceId        string          `protobuf:"bytes,3,opt,name=deviceId,proto3" json:"deviceId,omitempty"`
	SessionUserId   string          `protobuf:"bytes,4,opt,name=sessionUserId,proto3" json:"sessionUserId,omitempty"`
	SessionAppId    APP             `protobuf:"varint,5,opt,name=sessionAppId,proto3,enum=basic.APP" json:"sessionAppId,omitempty"`
	SessionDeviceId string          `protobuf:"bytes,6,opt,name=sessionDeviceId,proto3" json:"sessionDeviceId,omitempty"`
	IsLogin         bool            `protobuf:"varint,7,opt,name=isLogin,proto3" json:"isLogin,omitempty"`
	WechatUserMeta  *WechatUserMeta `protobuf:"bytes,8,opt,name=wechatUserMeta,proto3,oneof" json:"wechatUserMeta,omitempty"`
	// contains filtered or unexported fields
}

func (*UserMeta) Descriptor deprecated

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

Deprecated: Use UserMeta.ProtoReflect.Descriptor instead.

func (*UserMeta) FastRead

func (x *UserMeta) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*UserMeta) FastWrite

func (x *UserMeta) FastWrite(buf []byte) (offset int)

func (*UserMeta) GetAppId

func (x *UserMeta) GetAppId() APP

func (*UserMeta) GetDeviceId

func (x *UserMeta) GetDeviceId() string

func (*UserMeta) GetIsLogin

func (x *UserMeta) GetIsLogin() bool

func (*UserMeta) GetSessionAppId

func (x *UserMeta) GetSessionAppId() APP

func (*UserMeta) GetSessionDeviceId

func (x *UserMeta) GetSessionDeviceId() string

func (*UserMeta) GetSessionUserId

func (x *UserMeta) GetSessionUserId() string

func (*UserMeta) GetUserId

func (x *UserMeta) GetUserId() string

func (*UserMeta) GetWechatUserMeta

func (x *UserMeta) GetWechatUserMeta() *WechatUserMeta

func (*UserMeta) ProtoMessage

func (*UserMeta) ProtoMessage()

func (*UserMeta) ProtoReflect

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

func (*UserMeta) Reset

func (x *UserMeta) Reset()

func (*UserMeta) Size

func (x *UserMeta) Size() (n int)

func (*UserMeta) String

func (x *UserMeta) String() string

type WechatUserMeta

type WechatUserMeta struct {
	AppId      string `protobuf:"bytes,1,opt,name=appId,proto3" json:"appId,omitempty"`
	OpenId     string `protobuf:"bytes,2,opt,name=openId,proto3" json:"openId,omitempty"`
	PlatformId string `protobuf:"bytes,3,opt,name=platformId,proto3" json:"platformId,omitempty"`
	UnionId    string `protobuf:"bytes,4,opt,name=unionId,proto3" json:"unionId,omitempty"`
	// contains filtered or unexported fields
}

func (*WechatUserMeta) Descriptor deprecated

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

Deprecated: Use WechatUserMeta.ProtoReflect.Descriptor instead.

func (*WechatUserMeta) FastRead

func (x *WechatUserMeta) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*WechatUserMeta) FastWrite

func (x *WechatUserMeta) FastWrite(buf []byte) (offset int)

func (*WechatUserMeta) GetAppId

func (x *WechatUserMeta) GetAppId() string

func (*WechatUserMeta) GetOpenId

func (x *WechatUserMeta) GetOpenId() string

func (*WechatUserMeta) GetPlatformId

func (x *WechatUserMeta) GetPlatformId() string

func (*WechatUserMeta) GetUnionId

func (x *WechatUserMeta) GetUnionId() string

func (*WechatUserMeta) ProtoMessage

func (*WechatUserMeta) ProtoMessage()

func (*WechatUserMeta) ProtoReflect

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

func (*WechatUserMeta) Reset

func (x *WechatUserMeta) Reset()

func (*WechatUserMeta) Size

func (x *WechatUserMeta) Size() (n int)

func (*WechatUserMeta) String

func (x *WechatUserMeta) String() string

Jump to

Keyboard shortcuts

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