model

package
v0.7.25 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 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"`
	ModelTime *ModelTime `protobuf:"bytes,5,opt,name=modelTime,proto3" json:"modelTime,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) GetModelTime added in v0.7.6

func (x *Area) GetModelTime() *ModelTime

func (*Area) GetName

func (x *Area) GetName() string

func (*Area) GetPcode

func (x *Area) GetPcode() uint64

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 {
	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"`
	Status    uint32     `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
	ModelTime *ModelTime `protobuf:"bytes,4,opt,name=modelTime,proto3" json:"modelTime,inline" gorm:"embedded"`
	// contains filtered or unexported fields
}

func (*Attribute) Descriptor deprecated

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

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetId added in v0.7.6

func (x *Attribute) GetId() uint64

func (*Attribute) GetModelTime added in v0.7.6

func (x *Attribute) GetModelTime() *ModelTime

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 {
	Id        uint64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"`
	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"`
	ModelTime *ModelTime `protobuf:"bytes,9,opt,name=modelTime,proto3" json:"modelTime,inline" gorm:"embedded"`
	// 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) GetId added in v0.7.6

func (x *Dict) GetId() uint64

func (*Dict) GetKey

func (x *Dict) GetKey() string

func (*Dict) GetModelTime added in v0.7.6

func (x *Dict) GetModelTime() *ModelTime

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 {
	Id        uint64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"`
	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,5,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
	ModelTime *ModelTime `protobuf:"bytes,6,opt,name=modelTime,proto3" json:"modelTime,inline" gorm:"embedded"`
	// 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) GetId added in v0.7.6

func (x *Enum) GetId() uint64

func (*Enum) GetModelTime added in v0.7.6

func (x *Enum) GetModelTime() *ModelTime

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 {
	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,4,opt,name=value,proto3" json:"value,omitempty" comment:"值"`
	Status    uint32     `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"`
	ModelTime *ModelTime `protobuf:"bytes,6,opt,name=modelTime,proto3" json:"modelTime,inline" gorm:"embedded"`
	// 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) GetId added in v0.7.6

func (x *EnumValue) GetId() uint64

func (*EnumValue) GetIndex

func (x *EnumValue) GetIndex() uint64

func (*EnumValue) GetModelTime added in v0.7.6

func (x *EnumValue) GetModelTime() *ModelTime

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 FrontRoute added in v0.7.4

type FrontRoute struct {
	Id        uint64          `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"`
	Path      string          `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Name      string          `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Redirect  string          `protobuf:"bytes,4,opt,name=redirect,proto3" json:"redirect,omitempty"`
	Meta      *FrontRouteMeta `protobuf:"bytes,5,opt,name=meta,proto3" json:"meta,inline" gorm:"embedded"`
	ParentId  uint64          `protobuf:"varint,6,opt,name=parentId,proto3" json:"parentId,omitempty" gorm:"not null;default:0" comment:"父级id"`
	Children  []*FrontRoute   `protobuf:"bytes,7,rep,name=children,proto3" json:"children,omitempty" gorm:"foreignkey:ParentId"`
	ModelTime *ModelTime      `protobuf:"bytes,8,opt,name=modelTime,proto3" json:"modelTime,inline" gorm:"embedded"`
	// contains filtered or unexported fields
}

func (*FrontRoute) Descriptor deprecated added in v0.7.4

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

Deprecated: Use FrontRoute.ProtoReflect.Descriptor instead.

func (*FrontRoute) GetChildren added in v0.7.4

func (x *FrontRoute) GetChildren() []*FrontRoute

func (*FrontRoute) GetId added in v0.7.6

func (x *FrontRoute) GetId() uint64

func (*FrontRoute) GetMeta added in v0.7.4

func (x *FrontRoute) GetMeta() *FrontRouteMeta

func (*FrontRoute) GetModelTime added in v0.7.6

func (x *FrontRoute) GetModelTime() *ModelTime

func (*FrontRoute) GetName added in v0.7.4

func (x *FrontRoute) GetName() string

func (*FrontRoute) GetParentId added in v0.7.4

func (x *FrontRoute) GetParentId() uint64

func (*FrontRoute) GetPath added in v0.7.4

func (x *FrontRoute) GetPath() string

func (*FrontRoute) GetRedirect added in v0.7.4

func (x *FrontRoute) GetRedirect() string

func (*FrontRoute) ProtoMessage added in v0.7.4

func (*FrontRoute) ProtoMessage()

func (*FrontRoute) ProtoReflect added in v0.7.4

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

func (*FrontRoute) Reset added in v0.7.4

func (x *FrontRoute) Reset()

func (*FrontRoute) String added in v0.7.4

func (x *FrontRoute) String() string

type FrontRouteMeta added in v0.7.4

type FrontRouteMeta struct {
	Title    string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Icon     string   `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"`
	ShowLink bool     `protobuf:"varint,3,opt,name=showLink,proto3" json:"showLink,omitempty"`
	Rank     int32    `protobuf:"varint,4,opt,name=rank,proto3" json:"rank,omitempty"`
	Roles    []string `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty" gorm:"type:text[];serializer:string_array"`
	// contains filtered or unexported fields
}

func (*FrontRouteMeta) Descriptor deprecated added in v0.7.4

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

Deprecated: Use FrontRouteMeta.ProtoReflect.Descriptor instead.

func (*FrontRouteMeta) GetIcon added in v0.7.4

func (x *FrontRouteMeta) GetIcon() string

func (*FrontRouteMeta) GetRank added in v0.7.4

func (x *FrontRouteMeta) GetRank() int32

func (*FrontRouteMeta) GetRoles added in v0.7.4

func (x *FrontRouteMeta) GetRoles() []string
func (x *FrontRouteMeta) GetShowLink() bool

func (*FrontRouteMeta) GetTitle added in v0.7.4

func (x *FrontRouteMeta) GetTitle() string

func (*FrontRouteMeta) ProtoMessage added in v0.7.4

func (*FrontRouteMeta) ProtoMessage()

func (*FrontRouteMeta) ProtoReflect added in v0.7.4

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

func (*FrontRouteMeta) Reset added in v0.7.4

func (x *FrontRouteMeta) Reset()

func (*FrontRouteMeta) String added in v0.7.4

func (x *FrontRouteMeta) 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