Documentation
¶
Index ¶
- Variables
- type Area
- func (*Area) Descriptor() ([]byte, []int)deprecated
- func (x *Area) GetCode() uint64
- func (x *Area) GetLevel() int32
- func (x *Area) GetName() string
- func (x *Area) GetPcode() uint64
- func (x *Area) GetTime() *ModelTime
- func (*Area) ProtoMessage()
- func (x *Area) ProtoReflect() protoreflect.Message
- func (x *Area) Reset()
- func (x *Area) String() string
- type Attribute
- func (*Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *Attribute) GetModel() *Model
- func (x *Attribute) GetName() string
- func (x *Attribute) GetStatus() uint32
- func (*Attribute) ProtoMessage()
- func (x *Attribute) ProtoReflect() protoreflect.Message
- func (x *Attribute) Reset()
- func (x *Attribute) String() string
- type Dict
- func (*Dict) Descriptor() ([]byte, []int)deprecated
- func (x *Dict) GetGroup() uint32
- func (x *Dict) GetKey() string
- func (x *Dict) GetModel() *Model
- func (x *Dict) GetSeq() uint32
- func (x *Dict) GetStatus() uint32
- func (x *Dict) GetType() uint32
- func (x *Dict) GetValue() string
- func (*Dict) ProtoMessage()
- func (x *Dict) ProtoReflect() protoreflect.Message
- func (x *Dict) Reset()
- func (x *Dict) String() string
- type Enum
- func (*Enum) Descriptor() ([]byte, []int)deprecated
- func (x *Enum) GetGroup() uint64
- func (x *Enum) GetModel() *Model
- func (x *Enum) GetName() string
- func (x *Enum) GetStatus() uint32
- func (x *Enum) GetType() uint32
- 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) GetEnumId() uint64
- func (x *EnumValue) GetIndex() uint64
- func (x *EnumValue) GetModel() *Model
- func (x *EnumValue) GetStatus() uint32
- func (x *EnumValue) GetValue() string
- func (*EnumValue) ProtoMessage()
- func (x *EnumValue) ProtoReflect() protoreflect.Message
- func (x *EnumValue) Reset()
- func (x *EnumValue) String() string
- type Model
- func (*Model) Descriptor() ([]byte, []int)deprecated
- func (x *Model) GetCreatedAt() *timestamp.Timestamp
- func (x *Model) GetDeletedAt() *deletedAt.DeletedAt
- func (x *Model) GetId() uint64
- func (x *Model) GetUpdatedAt() *timestamp.Timestamp
- func (*Model) ProtoMessage()
- func (x *Model) ProtoReflect() protoreflect.Message
- func (x *Model) Reset()
- func (x *Model) String() string
- type ModelTime
- func (*ModelTime) Descriptor() ([]byte, []int)deprecated
- func (x *ModelTime) GetCreatedAt() *timestamp.Timestamp
- func (x *ModelTime) GetDeletedAt() *deletedAt.DeletedAt
- func (x *ModelTime) GetUpdatedAt() *timestamp.Timestamp
- func (*ModelTime) ProtoMessage()
- func (x *ModelTime) ProtoReflect() protoreflect.Message
- func (x *ModelTime) Reset()
- func (x *ModelTime) String() string
- type ModelTimeInt
- func (*ModelTimeInt) Descriptor() ([]byte, []int)deprecated
- func (x *ModelTimeInt) GetCreatedAt() int64
- func (x *ModelTimeInt) GetDeletedAt() int64
- func (x *ModelTimeInt) GetUpdatedAt() int64
- func (*ModelTimeInt) ProtoMessage()
- func (x *ModelTimeInt) ProtoReflect() protoreflect.Message
- func (x *ModelTimeInt) Reset()
- func (x *ModelTimeInt) String() string
- type ModelTimeStr
- func (*ModelTimeStr) Descriptor() ([]byte, []int)deprecated
- func (x *ModelTimeStr) GetCreatedAt() string
- func (x *ModelTimeStr) GetDeletedAt() string
- func (x *ModelTimeStr) GetUpdatedAt() string
- func (*ModelTimeStr) ProtoMessage()
- func (x *ModelTimeStr) ProtoReflect() protoreflect.Message
- func (x *ModelTimeStr) Reset()
- func (x *ModelTimeStr) String() string
- type TableColumn
- func (*TableColumn) Descriptor() ([]byte, []int)deprecated
- func (x *TableColumn) GetModel() *Model
- func (x *TableColumn) GetName() string
- func (x *TableColumn) GetStatus() uint32
- func (x *TableColumn) GetTableId() uint64
- func (x *TableColumn) GetType() uint32
- func (*TableColumn) ProtoMessage()
- func (x *TableColumn) ProtoReflect() protoreflect.Message
- func (x *TableColumn) Reset()
- func (x *TableColumn) String() string
- type TableMeta
- func (*TableMeta) Descriptor() ([]byte, []int)deprecated
- func (x *TableMeta) GetModel() *Model
- func (x *TableMeta) GetName() string
- func (x *TableMeta) GetStatus() uint32
- func (*TableMeta) ProtoMessage()
- func (x *TableMeta) ProtoReflect() protoreflect.Message
- func (x *TableMeta) Reset()
- func (x *TableMeta) String() string
- type TableValue
- func (*TableValue) Descriptor() ([]byte, []int)deprecated
- func (x *TableValue) GetColumnId() string
- func (x *TableValue) GetModel() *Model
- func (x *TableValue) GetStatus() uint32
- func (x *TableValue) GetValue() string
- func (*TableValue) ProtoMessage()
- func (x *TableValue) ProtoReflect() protoreflect.Message
- func (x *TableValue) Reset()
- func (x *TableValue) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_hopeio_model_basic_proto protoreflect.FileDescriptor
View Source
var File_hopeio_model_model_proto protoreflect.FileDescriptor
View Source
var File_hopeio_model_table_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Area ¶
type Area struct {
Code uint64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty" gorm:"primaryKey"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
Pcode uint64 `protobuf:"varint,4,opt,name=pcode,proto3" json:"pcode,omitempty"`
Time *ModelTime `protobuf:"bytes,5,opt,name=time,proto3" json:",inline" gorm:"embedded"`
// contains filtered or unexported fields
}
func (*Area) Descriptor
deprecated
func (*Area) ProtoMessage ¶
func (*Area) ProtoMessage()
func (*Area) ProtoReflect ¶
func (x *Area) ProtoReflect() protoreflect.Message
type Attribute ¶
type Attribute struct {
Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:",inline" gorm:"embedded"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Status uint32 `protobuf:"varint,18,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
// contains filtered or unexported fields
}
func (*Attribute) Descriptor
deprecated
func (*Attribute) ProtoMessage ¶
func (*Attribute) ProtoMessage()
func (*Attribute) ProtoReflect ¶
func (x *Attribute) ProtoReflect() protoreflect.Message
type Dict ¶
type Dict struct {
Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:",inline" gorm:"embedded"`
Group uint32 `protobuf:"varint,2,opt,name=group,proto3" json:"group,omitempty"`
Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty" gorm:"键"`
Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty" comment:"值"`
Type uint32 `protobuf:"varint,6,opt,name=type,proto3" json:"type,omitempty" comment:"类型"`
Seq uint32 `protobuf:"varint,7,opt,name=seq,proto3" json:"seq,omitempty" comment:"顺序"`
Status uint32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
// contains filtered or unexported fields
}
func (*Dict) Descriptor
deprecated
func (*Dict) ProtoMessage ¶
func (*Dict) ProtoMessage()
func (*Dict) ProtoReflect ¶
func (x *Dict) ProtoReflect() protoreflect.Message
type Enum ¶
type Enum struct {
Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:",inline" gorm:"embedded"`
Group uint64 `protobuf:"varint,2,opt,name=group,proto3" json:"group,omitempty" gorm:"size:20"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Type uint32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty" comment:"类型"`
Status uint32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
// contains filtered or unexported fields
}
func (*Enum) Descriptor
deprecated
func (*Enum) ProtoMessage ¶
func (*Enum) ProtoMessage()
func (*Enum) ProtoReflect ¶
func (x *Enum) ProtoReflect() protoreflect.Message
type EnumValue ¶
type EnumValue struct {
Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:",inline" gorm:"embedded"`
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,4,opt,name=value,proto3" json:"value,omitempty" comment:"值"`
Status uint32 `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
// contains filtered or unexported fields
}
func (*EnumValue) Descriptor
deprecated
func (*EnumValue) ProtoMessage ¶
func (*EnumValue) ProtoMessage()
func (*EnumValue) ProtoReflect ¶
func (x *EnumValue) ProtoReflect() protoreflect.Message
type Model ¶
type Model struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"`
CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now()"`
UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty" gorm:"type:timestamptz(6)"`
DeletedAt *deletedAt.DeletedAt `protobuf:"bytes,4,opt,name=deletedAt,proto3" json:"deletedAt,omitempty" gorm:"<-:false;type:timestamptz(6);index"`
// contains filtered or unexported fields
}
[(go.field) = {tags:'json:",inline" gorm:"embedded"'}]
func (*Model) Descriptor
deprecated
func (*Model) GetCreatedAt ¶
func (*Model) GetDeletedAt ¶
func (*Model) GetUpdatedAt ¶
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
type ModelTime ¶
type ModelTime struct {
CreatedAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"`
UpdatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=updatedAt,proto3" json:"updatedAt,omitempty" gorm:"type:timestamptz(6)"`
DeletedAt *deletedAt.DeletedAt `protobuf:"bytes,3,opt,name=deletedAt,proto3" json:"deletedAt,omitempty" gorm:"<-:false;type:timestamptz(6);index"`
// contains filtered or unexported fields
}
[(go.field) = {tags:'json:",inline" gorm:"embedded"'}]
func (*ModelTime) Descriptor
deprecated
func (*ModelTime) GetCreatedAt ¶
func (*ModelTime) GetDeletedAt ¶
func (*ModelTime) GetUpdatedAt ¶
func (*ModelTime) ProtoMessage ¶
func (*ModelTime) ProtoMessage()
func (*ModelTime) ProtoReflect ¶
func (x *ModelTime) ProtoReflect() protoreflect.Message
type ModelTimeInt ¶
type ModelTimeInt struct {
CreatedAt int64 `protobuf:"varint,1,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"`
UpdatedAt int64 `protobuf:"varint,2,opt,name=updatedAt,proto3" json:"updatedAt,omitempty" gorm:"type:timestamptz(6)"`
DeletedAt int64 `protobuf:"varint,3,opt,name=deletedAt,proto3" json:"deletedAt,omitempty" gorm:"<-:false;type:timestamptz(6);index"`
// contains filtered or unexported fields
}
[(go.field) = {tags:'json:",inline" gorm:"embedded"'}]
func (*ModelTimeInt) Descriptor
deprecated
func (*ModelTimeInt) Descriptor() ([]byte, []int)
Deprecated: Use ModelTimeInt.ProtoReflect.Descriptor instead.
func (*ModelTimeInt) GetCreatedAt ¶
func (x *ModelTimeInt) GetCreatedAt() int64
func (*ModelTimeInt) GetDeletedAt ¶
func (x *ModelTimeInt) GetDeletedAt() int64
func (*ModelTimeInt) GetUpdatedAt ¶
func (x *ModelTimeInt) GetUpdatedAt() int64
func (*ModelTimeInt) ProtoMessage ¶
func (*ModelTimeInt) ProtoMessage()
func (*ModelTimeInt) ProtoReflect ¶
func (x *ModelTimeInt) ProtoReflect() protoreflect.Message
func (*ModelTimeInt) Reset ¶
func (x *ModelTimeInt) Reset()
func (*ModelTimeInt) String ¶
func (x *ModelTimeInt) String() string
type ModelTimeStr ¶
type ModelTimeStr struct {
CreatedAt string `protobuf:"bytes,1,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"`
UpdatedAt string `protobuf:"bytes,2,opt,name=updatedAt,proto3" json:"updatedAt,omitempty" gorm:"type:timestamptz(6)"`
DeletedAt string `protobuf:"bytes,3,opt,name=deletedAt,proto3" json:"deletedAt,omitempty" gorm:"<-:false;type:timestamptz(6);index"`
// contains filtered or unexported fields
}
[(go.field) = {tags:'json:",inline" gorm:"embedded"'}]
func (*ModelTimeStr) Descriptor
deprecated
func (*ModelTimeStr) Descriptor() ([]byte, []int)
Deprecated: Use ModelTimeStr.ProtoReflect.Descriptor instead.
func (*ModelTimeStr) GetCreatedAt ¶
func (x *ModelTimeStr) GetCreatedAt() string
func (*ModelTimeStr) GetDeletedAt ¶
func (x *ModelTimeStr) GetDeletedAt() string
func (*ModelTimeStr) GetUpdatedAt ¶
func (x *ModelTimeStr) GetUpdatedAt() string
func (*ModelTimeStr) ProtoMessage ¶
func (*ModelTimeStr) ProtoMessage()
func (*ModelTimeStr) ProtoReflect ¶
func (x *ModelTimeStr) ProtoReflect() protoreflect.Message
func (*ModelTimeStr) Reset ¶
func (x *ModelTimeStr) Reset()
func (*ModelTimeStr) String ¶
func (x *ModelTimeStr) String() string
type TableColumn ¶
type TableColumn struct {
Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:",inline" gorm:"embedded"`
TableId uint64 `protobuf:"varint,2,opt,name=tableId,proto3" json:"tableId,omitempty" gorm:"comment:tableId"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Type uint32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
Status uint32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
// contains filtered or unexported fields
}
func (*TableColumn) Descriptor
deprecated
func (*TableColumn) Descriptor() ([]byte, []int)
Deprecated: Use TableColumn.ProtoReflect.Descriptor instead.
func (*TableColumn) GetModel ¶
func (x *TableColumn) GetModel() *Model
func (*TableColumn) GetName ¶
func (x *TableColumn) GetName() string
func (*TableColumn) GetStatus ¶
func (x *TableColumn) GetStatus() uint32
func (*TableColumn) GetTableId ¶
func (x *TableColumn) GetTableId() uint64
func (*TableColumn) GetType ¶
func (x *TableColumn) GetType() uint32
func (*TableColumn) ProtoMessage ¶
func (*TableColumn) ProtoMessage()
func (*TableColumn) ProtoReflect ¶
func (x *TableColumn) ProtoReflect() protoreflect.Message
func (*TableColumn) Reset ¶
func (x *TableColumn) Reset()
func (*TableColumn) String ¶
func (x *TableColumn) String() string
type TableMeta ¶
type TableMeta struct {
Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:",inline" gorm:"embedded"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Status uint32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
// contains filtered or unexported fields
}
func (*TableMeta) Descriptor
deprecated
func (*TableMeta) ProtoMessage ¶
func (*TableMeta) ProtoMessage()
func (*TableMeta) ProtoReflect ¶
func (x *TableMeta) ProtoReflect() protoreflect.Message
type TableValue ¶
type TableValue struct {
Model *Model `protobuf:"bytes,1,opt,name=model,proto3" json:",inline" gorm:"embedded"`
ColumnId string `protobuf:"bytes,2,opt,name=columnId,proto3" json:"columnId,omitempty"`
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty" comment:"值"`
Status uint32 `protobuf:"varint,18,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
// contains filtered or unexported fields
}
func (*TableValue) Descriptor
deprecated
func (*TableValue) Descriptor() ([]byte, []int)
Deprecated: Use TableValue.ProtoReflect.Descriptor instead.
func (*TableValue) GetColumnId ¶
func (x *TableValue) GetColumnId() string
func (*TableValue) GetModel ¶
func (x *TableValue) GetModel() *Model
func (*TableValue) GetStatus ¶
func (x *TableValue) GetStatus() uint32
func (*TableValue) GetValue ¶
func (x *TableValue) GetValue() string
func (*TableValue) ProtoMessage ¶
func (*TableValue) ProtoMessage()
func (*TableValue) ProtoReflect ¶
func (x *TableValue) ProtoReflect() protoreflect.Message
func (*TableValue) Reset ¶
func (x *TableValue) Reset()
func (*TableValue) String ¶
func (x *TableValue) String() string
Click to show internal directories.
Click to hide internal directories.