common

package
v0.0.0-...-a69402d Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Platform_name = map[int32]string{
		0: "Platform_Nil",
		1: "Platform_WX",
		2: "Platform_WXGH",
		3: "Platform_QQ",
	}
	Platform_value = map[string]int32{
		"Platform_Nil":  0,
		"Platform_WX":   1,
		"Platform_WXGH": 2,
		"Platform_QQ":   3,
	}
)

Enum value maps for Platform.

View Source
var (
	Exception_name = map[int32]string{
		0: "Exception_Nil",
		1: "Exception_IDCACHE_INIT_FALSE",
		2: "Exception_KEY_NOT_EXISTS",
		3: "Exception_TWO_SEGMENTS_ARE_NULL",
	}
	Exception_value = map[string]int32{
		"Exception_Nil":                   0,
		"Exception_IDCACHE_INIT_FALSE":    1,
		"Exception_KEY_NOT_EXISTS":        2,
		"Exception_TWO_SEGMENTS_ARE_NULL": 3,
	}
)

Enum value maps for Exception.

View Source
var (
	Status_name = map[int32]string{
		0: "Status_Success",
		1: "Status_Exception",
	}
	Status_value = map[string]int32{
		"Status_Success":   0,
		"Status_Exception": 1,
	}
)

Enum value maps for Status.

View Source
var File_common_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type Exception

type Exception int32
const (
	Exception_Exception_Nil                   Exception = 0
	Exception_Exception_IDCACHE_INIT_FALSE    Exception = 1
	Exception_Exception_KEY_NOT_EXISTS        Exception = 2
	Exception_Exception_TWO_SEGMENTS_ARE_NULL Exception = 3
)

func (Exception) Descriptor

func (Exception) Descriptor() protoreflect.EnumDescriptor

func (Exception) Enum

func (x Exception) Enum() *Exception

func (Exception) EnumDescriptor deprecated

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

Deprecated: Use Exception.Descriptor instead.

func (Exception) Number

func (x Exception) Number() protoreflect.EnumNumber

func (Exception) String

func (x Exception) String() string

func (Exception) Type

type Platform

type Platform int32
const (
	Platform_Platform_Nil  Platform = 0
	Platform_Platform_WX   Platform = 1 //微信小程序
	Platform_Platform_WXGH Platform = 2 //微信公众号
	Platform_Platform_QQ   Platform = 3 //qq 小程序
)

func (Platform) Descriptor

func (Platform) Descriptor() protoreflect.EnumDescriptor

func (Platform) Enum

func (x Platform) Enum() *Platform

func (Platform) EnumDescriptor deprecated

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

Deprecated: Use Platform.Descriptor instead.

func (Platform) Number

func (x Platform) Number() protoreflect.EnumNumber

func (Platform) String

func (x Platform) String() string

func (Platform) Type

type Result

type Result struct {
	Id     int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=common.Status" json:"status,omitempty"`
	Msg    string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetId

func (x *Result) GetId() int64

func (*Result) GetMsg

func (x *Result) GetMsg() string

func (*Result) GetStatus

func (x *Result) GetStatus() Status

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type SegmentKeyReq

type SegmentKeyReq struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*SegmentKeyReq) Descriptor deprecated

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

Deprecated: Use SegmentKeyReq.ProtoReflect.Descriptor instead.

func (*SegmentKeyReq) GetKey

func (x *SegmentKeyReq) GetKey() string

func (*SegmentKeyReq) ProtoMessage

func (*SegmentKeyReq) ProtoMessage()

func (*SegmentKeyReq) ProtoReflect

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

func (*SegmentKeyReq) Reset

func (x *SegmentKeyReq) Reset()

func (*SegmentKeyReq) String

func (x *SegmentKeyReq) String() string

type Status

type Status int32
const (
	Status_Status_Success   Status = 0
	Status_Status_Exception Status = 1
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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