model

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	Aid           int64          `json:"aid"`
	CateId        int64          `gorm:"default:0" json:"cate_id"`
	Title         string         `json:"title"`
	Content       string         `json:"content"`
	PublishTime   string         `json:"publish_time"`
	UpdateTime    string         `json:"update_time"`
	PublishStatus int            `json:"publish_status"`
	Views         int64          `json:"views"`
	TagIds        datatypes.JSON `json:"tag_ids"`
	PAid          int64          `json:"p_aid"`
	SortId        int64          `json:"sort_id"`
}

func (Article) TableName

func (Article) TableName() string

type ArticleHistory added in v1.3.0

type ArticleHistory struct {
	Id            int64          `gorm:"primaryKey" json:"id"`
	Aid           int64          `json:"aid"`
	CateId        int64          `gorm:"default:0" json:"cate_id"`
	Title         string         `json:"title"`
	Content       string         `json:"content"`
	PublishTime   string         `json:"publish_time"`
	UpdateTime    string         `json:"update_time"`
	PublishStatus int            `json:"publish_status"`
	Views         int64          `json:"views"`
	TagIds        datatypes.JSON `json:"tag_ids"`
	PAid          int64          `json:"p_aid"`
	SortId        int64          `json:"sort_id"`
}

func (ArticleHistory) TableName added in v1.3.0

func (ArticleHistory) TableName() string

type Category

type Category struct {
	ID        int64 `gorm:"primarykey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
	Name      string
}

func (Category) TableName added in v1.6.0

func (Category) TableName() string

type FailBan added in v1.5.0

type FailBan struct {
	ID        int64 `gorm:"primarykey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
	Ip        string
	Count     uint
	Status    uint //0 未登录 1 已登录
}

func (FailBan) TableName added in v1.5.0

func (FailBan) TableName() string

type Tag

type Tag struct {
	ID        int64 `gorm:"primarykey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index"`
	Name      string
	TotalNums int64
}

func (Tag) TableName added in v1.6.0

func (Tag) TableName() string

type TwoAuth added in v1.5.0

type TwoAuth struct {
	ID         int64 `gorm:"primarykey"`
	CreatedAt  time.Time
	UpdatedAt  time.Time
	DeletedAt  gorm.DeletedAt `gorm:"index"`
	KeyA       string
	KeyB       string
	KeyBStatus uint
	Status     uint //0 未登录 1 已登录
}

func (TwoAuth) TableName added in v1.5.0

func (TwoAuth) TableName() string

Jump to

Keyboard shortcuts

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