common

package
v0.0.0-...-1f4ee57 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagIndex = iota + 10
	SysIndex
	CronIndex
)

Variables

View Source
var (
	RedisIndex_name = map[int32]string{
		0:  "RedisIndexPlaceholder",
		13: "RedisIndexFlag",
		14: "RedisIndexSys",
		15: "RedisIndexCron",
	}
	RedisIndex_value = map[string]int32{
		"RedisIndexPlaceholder": 0,
		"RedisIndexFlag":        13,
		"RedisIndexSys":         14,
		"RedisIndexCron":        15,
	}
)

Enum value maps for RedisIndex.

View Source
var (
	ObjectType_name = map[int32]string{
		0: "ObjectPlaceholder",
		1: "ObjectContent",
	}
	ObjectType_value = map[string]int32{
		"ObjectPlaceholder": 0,
		"ObjectContent":     1,
	}
)

Enum value maps for ObjectType.

View Source
var File_common_common_enum_proto protoreflect.FileDescriptor
View Source
var File_common_common_model_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Attr

type Attr struct {
	Id            uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"`
	Name          string `` /* 138-byte string literal not displayed */
	Description   string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" gorm:"size:100" annotation:"描述"`
	ExpressionURL string `protobuf:"bytes,17,opt,name=expressionURL,proto3" json:"expressionURL,omitempty" gorm:"size:255" annotation:"表情url"`
	CreatedAt     string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"`
	Status        uint32 `protobuf:"varint,28,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
	// contains filtered or unexported fields
}

func (*Attr) Descriptor deprecated

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

Deprecated: Use Attr.ProtoReflect.Descriptor instead.

func (*Attr) GetCreatedAt

func (x *Attr) GetCreatedAt() string

func (*Attr) GetDescription

func (x *Attr) GetDescription() string

func (*Attr) GetExpressionURL

func (x *Attr) GetExpressionURL() string

func (*Attr) GetId

func (x *Attr) GetId() uint64

func (*Attr) GetName

func (x *Attr) GetName() string

func (*Attr) GetStatus

func (x *Attr) GetStatus() uint32

func (*Attr) ProtoMessage

func (*Attr) ProtoMessage()

func (*Attr) ProtoReflect

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

func (*Attr) Reset

func (x *Attr) Reset()

func (*Attr) String

func (x *Attr) String() string

type ObjectType

type ObjectType int32
const (
	ObjectPlaceholder ObjectType = 0
	ObjectContent     ObjectType = 1
)

func (ObjectType) Descriptor

func (ObjectType) Descriptor() protoreflect.EnumDescriptor

func (ObjectType) Enum

func (x ObjectType) Enum() *ObjectType

func (ObjectType) EnumDescriptor deprecated

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

Deprecated: Use ObjectType.Descriptor instead.

func (ObjectType) MarshalGQL

func (x ObjectType) MarshalGQL(w io.Writer)

func (ObjectType) Number

func (x ObjectType) Number() protoreflect.EnumNumber

func (ObjectType) OrigString

func (x ObjectType) OrigString() string

func (ObjectType) String

func (x ObjectType) String() string

func (ObjectType) Type

func (*ObjectType) UnmarshalGQL

func (x *ObjectType) UnmarshalGQL(v interface{}) error

type RedisIndex

type RedisIndex int32
const (
	RedisIndexPlaceholder RedisIndex = 0
	RedisIndexFlag        RedisIndex = 13
	RedisIndexSys         RedisIndex = 14
	RedisIndexCron        RedisIndex = 15
)

func (RedisIndex) Descriptor

func (RedisIndex) Descriptor() protoreflect.EnumDescriptor

func (RedisIndex) Enum

func (x RedisIndex) Enum() *RedisIndex

func (RedisIndex) EnumDescriptor deprecated

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

Deprecated: Use RedisIndex.Descriptor instead.

func (RedisIndex) MarshalGQL

func (x RedisIndex) MarshalGQL(w io.Writer)

func (RedisIndex) Number

func (x RedisIndex) Number() protoreflect.EnumNumber

func (RedisIndex) OrigString

func (x RedisIndex) OrigString() string

func (RedisIndex) String

func (x RedisIndex) String() string

func (RedisIndex) Type

func (*RedisIndex) UnmarshalGQL

func (x *RedisIndex) UnmarshalGQL(v interface{}) error

Jump to

Keyboard shortcuts

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