model

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameSpaceInfo = "space_info"
View Source
const TableNameSpaceType = "space_type"

Variables

This section is empty.

Functions

This section is empty.

Types

type SpaceInfo

type SpaceInfo struct {
	*cool.Model
	URL        string `gorm:"column:url;type:varchar(255);not null;comment:地址" json:"url"`   // 地址
	Type       string `gorm:"column:type;type:varchar(255);not null;comment:类型" json:"type"` // 类型
	ClassifyID *int64 `gorm:"column:classifyId;type:bigint;comment:分类ID" json:"classifyId"`  // 分类ID
}

SpaceInfo mapped from table <space_info>

func NewSpaceInfo

func NewSpaceInfo() *SpaceInfo

NewSpaceInfo create a new SpaceInfo

func (*SpaceInfo) GroupName

func (*SpaceInfo) GroupName() string

GroupName SpaceInfo's table group

func (*SpaceInfo) TableName

func (*SpaceInfo) TableName() string

TableName SpaceInfo's table name

type SpaceType

type SpaceType struct {
	*cool.Model
	Name     string `gorm:"column:name;type:varchar(255);not null;comment:类别名称 " json:"name"` // 类别名称
	ParentID *int32 `gorm:"column:parentId;type:tinyint;comment:父分类ID" json:"parentId"`       // 父分类ID
}

SpaceType mapped from table <space_type>

func NewSpaceType

func NewSpaceType() *SpaceType

NewSpaceType create a new SpaceType

func (*SpaceType) GroupName

func (*SpaceType) GroupName() string

GroupName SpaceType's table group

func (*SpaceType) TableName

func (*SpaceType) TableName() string

TableName SpaceType's table name

Jump to

Keyboard shortcuts

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