entity

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	ID        uint           `gorm:"primarykey" json:"id"`
	CreatedAt time.Time      `json:"created_at"`
	UpdatedAt time.Time      `json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
}

type Category

type Category struct {
	BaseModel
	Name     string `json:"name" form:"name" gorm:"column:name;comment:名称;size:55;"`
	Status   int    `json:"status" form:"status" gorm:"column:status;comment:状态;size:1;"`
	ParentId int    `json:"parent_id" form:"parent_id" gorm:"column:parent_id;comment:父id;size:16;"`
}

Category 结构体

func (Category) TableName

func (Category) TableName() string

TableName Category 表名

type Id

type Id struct {
	Id int `json:"id" gorm:"id"`
}

Jump to

Keyboard shortcuts

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