Documentation
¶
Index ¶
- Variables
- type Enum
- func (*Enum) Descriptor() ([]byte, []int)deprecated
- func (x *Enum) GetCreatedAt() *timestamp.Timestamp
- func (x *Enum) GetDeletedAt() *deletedAt.DeletedAt
- func (x *Enum) GetGroup() uint64
- func (x *Enum) GetId() uint64
- func (x *Enum) GetName() string
- func (x *Enum) GetStatus() uint32
- func (x *Enum) GetType() uint32
- func (x *Enum) GetUpdatedAt() *timestamp.Timestamp
- func (*Enum) ProtoMessage()
- func (x *Enum) ProtoReflect() protoreflect.Message
- func (x *Enum) Reset()
- func (x *Enum) String() string
- type EnumValue
- func (*EnumValue) Descriptor() ([]byte, []int)deprecated
- func (x *EnumValue) GetCreatedAt() *timestamp.Timestamp
- func (x *EnumValue) GetDeletedAt() *deletedAt.DeletedAt
- func (x *EnumValue) GetEnumId() uint64
- func (x *EnumValue) GetId() uint64
- func (x *EnumValue) GetIndex() uint64
- func (x *EnumValue) GetStatus() uint32
- func (x *EnumValue) GetUpdatedAt() *timestamp.Timestamp
- func (x *EnumValue) GetValue() string
- func (*EnumValue) ProtoMessage()
- func (x *EnumValue) ProtoReflect() protoreflect.Message
- func (x *EnumValue) Reset()
- func (x *EnumValue) String() string
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) GetCreatedAt ¶
func (*Enum) GetDeletedAt ¶
func (*Enum) GetUpdatedAt ¶
func (*Enum) ProtoMessage ¶
func (*Enum) ProtoMessage()
func (*Enum) ProtoReflect ¶
func (x *Enum) ProtoReflect() protoreflect.Message
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) GetCreatedAt ¶
func (*EnumValue) GetDeletedAt ¶
func (*EnumValue) GetUpdatedAt ¶
func (*EnumValue) ProtoMessage ¶
func (*EnumValue) ProtoMessage()
func (*EnumValue) ProtoReflect ¶
func (x *EnumValue) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.