Documentation
¶
Index ¶
- Variables
- type NoticeType
- type RankData
- func (*RankData) Descriptor() ([]byte, []int)deprecated
- func (x *RankData) GetId() int64
- func (x *RankData) GetRank() int32
- func (x *RankData) GetScore() int64
- func (x *RankData) GetUpdateTs() int64
- func (*RankData) ProtoMessage()
- func (x *RankData) ProtoReflect() protoreflect.Message
- func (x *RankData) Reset()
- func (x *RankData) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NoticeType_name = map[int32]string{ 0: "DINGTALK", 1: "WECHAT", 2: "EMAIL", 3: "SMS", 4: "VOICE", } NoticeType_value = map[string]int32{ "DINGTALK": 0, "WECHAT": 1, "EMAIL": 2, "SMS": 3, "VOICE": 4, } )
Enum value maps for NoticeType.
View Source
var File_pkg_v1_pkg_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type NoticeType ¶
type NoticeType int32
定义 NoticeType 枚举
const ( NoticeType_DINGTALK NoticeType = 0 NoticeType_WECHAT NoticeType = 1 NoticeType_EMAIL NoticeType = 2 NoticeType_SMS NoticeType = 3 NoticeType_VOICE NoticeType = 4 )
func (NoticeType) Descriptor ¶
func (NoticeType) Descriptor() protoreflect.EnumDescriptor
func (NoticeType) Enum ¶
func (x NoticeType) Enum() *NoticeType
func (NoticeType) EnumDescriptor
deprecated
func (NoticeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use NoticeType.Descriptor instead.
func (NoticeType) Number ¶
func (x NoticeType) Number() protoreflect.EnumNumber
func (NoticeType) String ¶
func (x NoticeType) String() string
func (NoticeType) Type ¶
func (NoticeType) Type() protoreflect.EnumType
type RankData ¶
type RankData struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Score int64 `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"`
Rank int32 `protobuf:"varint,3,opt,name=rank,proto3" json:"rank,omitempty"`
UpdateTs int64 `protobuf:"varint,4,opt,name=update_ts,json=updateTs,proto3" json:"update_ts,omitempty"`
// contains filtered or unexported fields
}
排行榜数据
func (*RankData) Descriptor
deprecated
func (*RankData) GetUpdateTs ¶
func (*RankData) ProtoMessage ¶
func (*RankData) ProtoMessage()
func (*RankData) ProtoReflect ¶
func (x *RankData) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.