business

package
v0.0.0-...-c5f6412 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 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 Books

type Books struct {
	ID              uint           `json:"id" gorm:"primarykey"`
	BookId          string         `json:"book_id" gorm:"common:图书ID"`
	BookName        string         `json:"book_name" gorm:"common:图书名称"`
	Author          string         `json:"author" gorm:"common:作者"`
	Price           string         `json:"price" gorm:"common:价格"`
	Publisher       string         `json:"publisher" gorm:"common:出版社"`
	PublicationDate string         `json:"publication_date" gorm:"common:出版日期"`
	Isbn            string         `json:"isbn" gorm:"common:ISBN号"`
	CoverImage      string         `json:"cover_image" gorm:"common:封面图片"`
	Summary         string         `json:"summary" gorm:"common:简介"`
	Category        int8           `json:"category" gorm:"common:分类"`
	Remark          string         `json:"remark" gorm:"common:备注"`
	Status          int8           `json:"status" gorm:"default:1;comment:证书状态 1正常 2冻结"`
	CreatedAt       time.Time      // 创建时间
	UpdatedAt       time.Time      // 更新时间
	DeletedAt       gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间
}

func (Books) TableName

func (Books) TableName() string

type BooksCategory

type BooksCategory struct {
	ID        uint           `json:"id" gorm:"primarykey"`
	Name      string         `json:"name" gorm:"comment:分类名称"`
	Pid       uint           `json:"pid" gorm:"comment:父级ID"`
	Level     int            `json:"level" gorm:"comment:分类级别"`
	Remark    string         `json:"remark" gorm:"comment:备注"`
	CreatedAt time.Time      // 创建时间
	UpdatedAt time.Time      // 更新时间
	DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间
}

func (BooksCategory) TableName

func (BooksCategory) TableName() string

type CertReading

type CertReading struct {
	ID        uint           `json:"ID" gorm:"primarykey"`
	Name      string         `json:"name" gorm:"comment:姓名"`
	Number    string         `json:"number" gorm:"index;comment:证书编号"`
	IdCard    string         `json:"idCard" gorm:"comment:身份证号"`
	Mobile    string         `json:"mobile" gorm:"comment:手机号"`
	Profile   string         `json:"profile" gorm:"comment:头像照片"`
	File      string         `json:"file" gorm:"type:json;comment:证书文件"`
	Group     string         `json:"group" gorm:"comment:所属组"`
	Referrer  string         `json:"referrer" gorm:"comment:推荐人/单位"`
	Status    int            `json:"status" gorm:"default:1;comment:证书状态 1正常 2冻结"`
	Remark    string         `json:"remark" gorm:"comment:备注"`
	CreatedAt time.Time      // 创建时间
	UpdatedAt time.Time      // 更新时间
	DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间
}

func (CertReading) TableName

func (CertReading) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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