model

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 9 Imported by: 1

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Area.ProtoReflect.Descriptor instead.

func (*Area) GetCode

func (x *Area) GetCode() uint64

func (*Area) GetLevel

func (x *Area) GetLevel() int32

func (*Area) GetName

func (x *Area) GetName() string

func (*Area) GetPcode

func (x *Area) GetPcode() uint64

func (*Area) GetTime

func (x *Area) GetTime() *ModelTime

func (*Area) ProtoMessage

func (*Area) ProtoMessage()

func (*Area) ProtoReflect

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

func (*Area) Reset

func (x *Area) Reset()

func (*Area) String

func (x *Area) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetModel

func (x *Attribute) GetModel() *Model

func (*Attribute) GetName

func (x *Attribute) GetName() string

func (*Attribute) GetStatus

func (x *Attribute) GetStatus() uint32

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) ProtoReflect

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

func (*Attribute) Reset

func (x *Attribute) Reset()

func (*Attribute) String

func (x *Attribute) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Dict.ProtoReflect.Descriptor instead.

func (*Dict) GetGroup

func (x *Dict) GetGroup() uint32

func (*Dict) GetKey

func (x *Dict) GetKey() string

func (*Dict) GetModel

func (x *Dict) GetModel() *Model

func (*Dict) GetSeq

func (x *Dict) GetSeq() uint32

func (*Dict) GetStatus

func (x *Dict) GetStatus() uint32

func (*Dict) GetType

func (x *Dict) GetType() uint32

func (*Dict) GetValue

func (x *Dict) GetValue() string

func (*Dict) ProtoMessage

func (*Dict) ProtoMessage()

func (*Dict) ProtoReflect

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

func (*Dict) Reset

func (x *Dict) Reset()

func (*Dict) String

func (x *Dict) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Enum.ProtoReflect.Descriptor instead.

func (*Enum) GetGroup

func (x *Enum) GetGroup() uint64

func (*Enum) GetModel

func (x *Enum) GetModel() *Model

func (*Enum) GetName

func (x *Enum) GetName() string

func (*Enum) GetStatus

func (x *Enum) GetStatus() uint32

func (*Enum) GetType

func (x *Enum) GetType() uint32

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 {
	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) Descriptor() ([]byte, []int)

Deprecated: Use EnumValue.ProtoReflect.Descriptor instead.

func (*EnumValue) GetEnumId

func (x *EnumValue) GetEnumId() uint64

func (*EnumValue) GetIndex

func (x *EnumValue) GetIndex() uint64

func (*EnumValue) GetModel

func (x *EnumValue) GetModel() *Model

func (*EnumValue) GetStatus

func (x *EnumValue) GetStatus() uint32

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetCreatedAt

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

func (*Model) GetDeletedAt

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

func (*Model) GetId

func (x *Model) GetId() uint64

func (*Model) GetUpdatedAt

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

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

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

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use ModelTime.ProtoReflect.Descriptor instead.

func (*ModelTime) GetCreatedAt

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

func (*ModelTime) GetDeletedAt

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

func (*ModelTime) GetUpdatedAt

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

func (*ModelTime) ProtoMessage

func (*ModelTime) ProtoMessage()

func (*ModelTime) ProtoReflect

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

func (*ModelTime) Reset

func (x *ModelTime) Reset()

func (*ModelTime) String

func (x *ModelTime) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use TableMeta.ProtoReflect.Descriptor instead.

func (*TableMeta) GetModel

func (x *TableMeta) GetModel() *Model

func (*TableMeta) GetName

func (x *TableMeta) GetName() string

func (*TableMeta) GetStatus

func (x *TableMeta) GetStatus() uint32

func (*TableMeta) ProtoMessage

func (*TableMeta) ProtoMessage()

func (*TableMeta) ProtoReflect

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

func (*TableMeta) Reset

func (x *TableMeta) Reset()

func (*TableMeta) String

func (x *TableMeta) String() string

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

Jump to

Keyboard shortcuts

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