enum

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_hopeio_model_enum_enum_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Enum

type Enum struct {
	Id        uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"`
	Name      string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Group     uint64               `protobuf:"varint,3,opt,name=group,proto3" json:"group,omitempty" gorm:"size:20"`
	Type      uint32               `protobuf:"varint,6,opt,name=type,proto3" json:"type,omitempty" comment:"类型"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,16,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,26,opt,name=updatedAt,proto3" json:"updatedAt,omitempty" gorm:"type:timestamptz(6)"`
	DeletedAt *deletedAt.DeletedAt `protobuf:"bytes,28,opt,name=deletedAt,proto3" json:"deletedAt,omitempty" gorm:"<-:false;type:timestamptz(6);index"`
	Status    uint32               `protobuf:"varint,18,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
	// contains filtered or unexported fields
}

func (*Enum) Descriptor deprecated

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

Deprecated: Use Enum.ProtoReflect.Descriptor instead.

func (*Enum) GetCreatedAt

func (x *Enum) GetCreatedAt() *timestamp.Timestamp

func (*Enum) GetDeletedAt

func (x *Enum) GetDeletedAt() *deletedAt.DeletedAt

func (*Enum) GetGroup

func (x *Enum) GetGroup() uint64

func (*Enum) GetId

func (x *Enum) GetId() uint64

func (*Enum) GetName

func (x *Enum) GetName() string

func (*Enum) GetStatus

func (x *Enum) GetStatus() uint32

func (*Enum) GetType added in v0.1.4

func (x *Enum) GetType() uint32

func (*Enum) GetUpdatedAt

func (x *Enum) GetUpdatedAt() *timestamp.Timestamp

func (*Enum) ProtoMessage

func (*Enum) ProtoMessage()

func (*Enum) ProtoReflect

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

func (*Enum) Reset

func (x *Enum) Reset()

func (*Enum) String

func (x *Enum) String() string

type EnumValue

type EnumValue struct {
	Id        uint64               `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"`
	EnumId    uint64               `protobuf:"varint,2,opt,name=enumId,proto3" json:"enumId,omitempty"`
	Index     uint64               `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty" gorm:"comment:index"`
	Value     string               `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty" comment:"值"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,16,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"`
	UpdatedAt *timestamp.Timestamp `protobuf:"bytes,26,opt,name=updatedAt,proto3" json:"updatedAt,omitempty" gorm:"type:timestamptz(6)"`
	DeletedAt *deletedAt.DeletedAt `protobuf:"bytes,28,opt,name=deletedAt,proto3" json:"deletedAt,omitempty" gorm:"<-:false;type:timestamptz(6);index"`
	Status    uint32               `protobuf:"varint,18,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
	// contains filtered or unexported fields
}

func (*EnumValue) Descriptor deprecated

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

Deprecated: Use EnumValue.ProtoReflect.Descriptor instead.

func (*EnumValue) GetCreatedAt

func (x *EnumValue) GetCreatedAt() *timestamp.Timestamp

func (*EnumValue) GetDeletedAt

func (x *EnumValue) GetDeletedAt() *deletedAt.DeletedAt

func (*EnumValue) GetEnumId

func (x *EnumValue) GetEnumId() uint64

func (*EnumValue) GetId

func (x *EnumValue) GetId() uint64

func (*EnumValue) GetIndex

func (x *EnumValue) GetIndex() uint64

func (*EnumValue) GetStatus

func (x *EnumValue) GetStatus() uint32

func (*EnumValue) GetUpdatedAt

func (x *EnumValue) GetUpdatedAt() *timestamp.Timestamp

func (*EnumValue) GetValue

func (x *EnumValue) GetValue() string

func (*EnumValue) ProtoMessage

func (*EnumValue) ProtoMessage()

func (*EnumValue) ProtoReflect

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

func (*EnumValue) Reset

func (x *EnumValue) Reset()

func (*EnumValue) String

func (x *EnumValue) String() string

Jump to

Keyboard shortcuts

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