model

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameDictInfo = "dict_info"
View Source
const TableNameDictType = "dict_type"

Variables

This section is empty.

Functions

This section is empty.

Types

type DictInfo

type DictInfo struct {
	*v.Model
	TypeID   int32   `gorm:"column:typeId;type:int;not null" json:"typeId"`      // 类型ID
	Name     string  `gorm:"column:name;type:varchar(255);not null" json:"name"` // 名称
	OrderNum int32   `gorm:"column:orderNum;type:int;not null" json:"orderNum"`  // 排序
	Remark   *string `gorm:"column:remark;type:varchar(255)" json:"remark"`      // 备注
	ParentID *int32  `gorm:"column:parentId;type:int" json:"parentId"`           // 父ID
}

DictInfo mapped from table <dict_info>

func NewDictInfo

func NewDictInfo() *DictInfo

NewDictInfo create a new DictInfo

func (*DictInfo) GroupName

func (*DictInfo) GroupName() string

GroupName DictInfo's table group

func (*DictInfo) TableName

func (*DictInfo) TableName() string

TableName DictInfo's table name

type DictType

type DictType struct {
	*v.Model
	Name string `gorm:"column:name;type:varchar(255);not null" json:"name"` // 名称
	Key  string `gorm:"column:key;type:varchar(255);not null" json:"key"`   // 标识
}

DictType mapped from table <dict_type>

func NewDictType

func NewDictType() *DictType

NewDictType create a new DictType

func (*DictType) GroupName

func (*DictType) GroupName() string

GroupName DictType's table group

func (*DictType) TableName

func (*DictType) TableName() string

TableName DictType's table name

Jump to

Keyboard shortcuts

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