basic

package
v1.0.44 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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 added in v1.0.6

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

func (APP) Descriptor added in v1.0.6

func (APP) Descriptor() protoreflect.EnumDescriptor

func (APP) Enum added in v1.0.6

func (x APP) Enum() *APP

func (APP) EnumDescriptor deprecated added in v1.0.6

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

Deprecated: Use APP.Descriptor instead.

func (APP) Number added in v1.0.6

func (x APP) Number() protoreflect.EnumNumber

func (APP) String added in v1.0.6

func (x APP) String() string

func (APP) Type added in v1.0.6

func (APP) Type() protoreflect.EnumType

type Extra added in v1.0.6

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

客户端透传

func (*Extra) Descriptor deprecated added in v1.0.6

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

Deprecated: Use Extra.ProtoReflect.Descriptor instead.

func (*Extra) GetClientIP added in v1.0.6

func (x *Extra) GetClientIP() string

func (*Extra) GetDeviceBrand added in v1.0.6

func (x *Extra) GetDeviceBrand() string

func (*Extra) GetDeviceId added in v1.0.6

func (x *Extra) GetDeviceId() string

func (*Extra) GetDevicePlatform added in v1.0.6

func (x *Extra) GetDevicePlatform() string

func (*Extra) GetLanguage added in v1.0.6

func (x *Extra) GetLanguage() string

func (*Extra) GetOperateSystem added in v1.0.6

func (x *Extra) GetOperateSystem() string

func (*Extra) GetResolution added in v1.0.6

func (x *Extra) GetResolution() string

func (*Extra) ProtoMessage added in v1.0.6

func (*Extra) ProtoMessage()

func (*Extra) ProtoReflect added in v1.0.6

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

func (*Extra) Reset added in v1.0.6

func (x *Extra) Reset()

func (*Extra) String added in v1.0.6

func (x *Extra) String() string

type PaginationOptions added in v1.0.6

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

func (*PaginationOptions) Descriptor deprecated added in v1.0.6

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

Deprecated: Use PaginationOptions.ProtoReflect.Descriptor instead.

func (*PaginationOptions) GetBackward added in v1.0.6

func (x *PaginationOptions) GetBackward() bool

func (*PaginationOptions) GetLastToken added in v1.0.6

func (x *PaginationOptions) GetLastToken() string

func (*PaginationOptions) GetLimit added in v1.0.6

func (x *PaginationOptions) GetLimit() int64

func (*PaginationOptions) GetOffset added in v1.0.6

func (x *PaginationOptions) GetOffset() int64

func (*PaginationOptions) GetPage added in v1.0.6

func (x *PaginationOptions) GetPage() int64

func (*PaginationOptions) ProtoMessage added in v1.0.6

func (*PaginationOptions) ProtoMessage()

func (*PaginationOptions) ProtoReflect added in v1.0.6

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

func (*PaginationOptions) Reset added in v1.0.6

func (x *PaginationOptions) Reset()

func (*PaginationOptions) String added in v1.0.6

func (x *PaginationOptions) String() string

type UserMeta added in v1.0.6

type UserMeta struct {
	UserId          string          `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty" form:"userId" query:"userId"`
	AppId           APP             `protobuf:"varint,2,opt,name=appId,proto3,enum=basic.APP" json:"appId,omitempty" form:"appId" query:"appId"`
	DeviceId        string          `protobuf:"bytes,3,opt,name=deviceId,proto3" json:"deviceId,omitempty" form:"deviceId" query:"deviceId"`
	SessionUserId   string          `protobuf:"bytes,4,opt,name=sessionUserId,proto3" json:"sessionUserId,omitempty" form:"sessionUserId" query:"sessionUserId"`
	SessionAppId    APP             `` /* 134-byte string literal not displayed */
	SessionDeviceId string          `` /* 130-byte string literal not displayed */
	IsLogin         bool            `protobuf:"varint,7,opt,name=isLogin,proto3" json:"isLogin,omitempty" form:"isLogin" query:"isLogin"`
	WechatUserMeta  *WechatUserMeta `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UserMeta) Descriptor deprecated added in v1.0.6

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

Deprecated: Use UserMeta.ProtoReflect.Descriptor instead.

func (*UserMeta) GetAppId added in v1.0.6

func (x *UserMeta) GetAppId() APP

func (*UserMeta) GetDeviceId added in v1.0.6

func (x *UserMeta) GetDeviceId() string

func (*UserMeta) GetIsLogin added in v1.0.6

func (x *UserMeta) GetIsLogin() bool

func (*UserMeta) GetSessionAppId added in v1.0.6

func (x *UserMeta) GetSessionAppId() APP

func (*UserMeta) GetSessionDeviceId added in v1.0.6

func (x *UserMeta) GetSessionDeviceId() string

func (*UserMeta) GetSessionUserId added in v1.0.6

func (x *UserMeta) GetSessionUserId() string

func (*UserMeta) GetUserId added in v1.0.6

func (x *UserMeta) GetUserId() string

func (*UserMeta) GetWechatUserMeta added in v1.0.6

func (x *UserMeta) GetWechatUserMeta() *WechatUserMeta

func (*UserMeta) ProtoMessage added in v1.0.6

func (*UserMeta) ProtoMessage()

func (*UserMeta) ProtoReflect added in v1.0.6

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

func (*UserMeta) Reset added in v1.0.6

func (x *UserMeta) Reset()

func (*UserMeta) String added in v1.0.6

func (x *UserMeta) String() string

type WechatUserMeta added in v1.0.6

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

func (*WechatUserMeta) Descriptor deprecated added in v1.0.6

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

Deprecated: Use WechatUserMeta.ProtoReflect.Descriptor instead.

func (*WechatUserMeta) GetAppId added in v1.0.6

func (x *WechatUserMeta) GetAppId() string

func (*WechatUserMeta) GetOpenId added in v1.0.6

func (x *WechatUserMeta) GetOpenId() string

func (*WechatUserMeta) GetPlatformId added in v1.0.6

func (x *WechatUserMeta) GetPlatformId() string

func (*WechatUserMeta) GetUnionId added in v1.0.6

func (x *WechatUserMeta) GetUnionId() string

func (*WechatUserMeta) ProtoMessage added in v1.0.6

func (*WechatUserMeta) ProtoMessage()

func (*WechatUserMeta) ProtoReflect added in v1.0.6

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

func (*WechatUserMeta) Reset added in v1.0.6

func (x *WechatUserMeta) Reset()

func (*WechatUserMeta) String added in v1.0.6

func (x *WechatUserMeta) String() string

Jump to

Keyboard shortcuts

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