entity

package
v0.0.0-...-8af6e0c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	Id        uint        `json:"id"        orm:"id"         description:""`
	Username  string      `json:"username"  orm:"username"   description:"用户名"`
	Password  string      `json:"password"  orm:"password"   description:"密码"`
	Nickname  string      `json:"nickname"  orm:"nickname"   description:"昵称"`
	Avatar    string      `json:"avatar"    orm:"avatar"     description:"头像,base64"`
	Register  *gtime.Time `json:"register"  orm:"register"   description:"注册时间"`
	Salt      string      `json:"salt"      orm:"salt"       description:"随机盐值"`
	LastLogin *gtime.Time `json:"lastLogin" orm:"last_login" description:"最后登录时间"`
}

Admin is the golang structure for table admin.

type Article

type Article struct {
	Id          uint        `json:"id"          orm:"id"          description:""`
	GrpId       uint        `json:"grpId"       orm:"grp_id"      description:"分组id"`
	Title       string      `json:"title"       orm:"title"       description:"标题"`
	Author      string      `json:"author"      orm:"author"      description:"作者"`
	Thumb       string      `json:"thumb"       orm:"thumb"       description:"图片地址"`
	Tags        string      `json:"tags"        orm:"tags"        description:"标签,依英文逗号隔开"`
	Description string      `json:"description" orm:"description" description:"简介"`
	Content     string      `json:"content"     orm:"content"     description:"内容"`
	Order       int         `json:"order"       orm:"order"       description:"排序,越大越靠前"`
	Ontop       uint        `json:"ontop"       orm:"ontop"       description:"是否置顶"`
	Onshow      uint        `json:"onshow"      orm:"onshow"      description:"是否显示"`
	Hist        uint        `json:"hist"        orm:"hist"        description:"点击数"`
	Post        uint        `json:"post"        orm:"post"        description:"评论数"`
	CreatedAt   *gtime.Time `json:"createdAt"   orm:"created_at"  description:"创建时间"`
	UpdatedAt   *gtime.Time `json:"updatedAt"   orm:"updated_at"  description:"更新时间"`
	DeletedAt   *gtime.Time `json:"deletedAt"   orm:"deleted_at"  description:"删除时间"`
	LastedAt    *gtime.Time `json:"lastedAt"    orm:"lasted_at"   description:"最后浏览时间"`
}

Article is the golang structure for table article.

type ArticleGrp

type ArticleGrp struct {
	Id          uint   `json:"id"          orm:"id"          description:""`
	Name        string `json:"name"        orm:"name"        description:"名称"`
	Tags        string `json:"tags"        orm:"tags"        description:"标签,依英文逗号隔开"`
	Description string `json:"description" orm:"description" description:"简介"`
	Onshow      uint   `json:"onshow"      orm:"onshow"      description:"是否显示"`
	Order       int    `json:"order"       orm:"order"       description:"排序,越大越靠前"`
}

ArticleGrp is the golang structure for table article_grp.

type Link struct {
	Id          uint   `json:"id"          orm:"id"          description:""`
	Name        string `json:"name"        orm:"name"        description:"名称"`
	Description string `json:"description" orm:"description" description:"描述"`
	Link        string `json:"link"        orm:"link"        description:"链接"`
}

Link is the golang structure for table link.

type Reading

type Reading struct {
	Id         uint        `json:"id"         orm:"id"          description:""`
	Name       string      `json:"name"       orm:"name"        description:"书名"`
	Author     string      `json:"author"     orm:"author"      description:"作者"`
	Status     uint        `json:"status"     orm:"status"      description:"状态: 1完结 2在读 3弃读"`
	FinishedAt *gtime.Time `json:"finishedAt" orm:"finished_at" description:"读完时间"`
}

Reading is the golang structure for table reading.

type Reply

type Reply struct {
	Id        uint        `json:"id"        orm:"id"         description:""`
	Aid       int         `json:"aid"       orm:"aid"        description:"文章id"`
	Rid       int         `json:"rid"       orm:"rid"        description:"根回复id,一个根可视为一个楼层"`
	Pid       int         `json:"pid"       orm:"pid"        description:"回复的id"`
	PName     string      `json:"pName"     orm:"p_name"     description:"回复的名称"`
	Email     string      `json:"email"     orm:"email"      description:"回复人邮箱"`
	Name      string      `json:"name"      orm:"name"       description:"回复人名称"`
	Site      string      `json:"site"      orm:"site"       description:"回复人网站"`
	Content   string      `json:"content"   orm:"content"    description:"回复内容"`
	Status    int         `json:"status"    orm:"status"     description:"状态: 1待审核 2审核通过 3审核失败"`
	Reason    string      `json:"reason"    orm:"reason"     description:"审核失败原因"`
	CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
	UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
	DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"删除时间"`
}

Reply is the golang structure for table reply.

type Sentence

type Sentence struct {
	Id       uint   `json:"id"       orm:"id"       description:""`
	BookId   uint   `json:"bookId"   orm:"book_id"  description:""`
	Sentence string `json:"sentence" orm:"sentence" description:""`
}

Sentence is the golang structure for table sentence.

type SentenceTag

type SentenceTag struct {
	SId uint `json:"sId" orm:"s_id" description:"句子id"`
	TId uint `json:"tId" orm:"t_id" description:"tag id"`
}

SentenceTag is the golang structure for table sentence_tag.

type Tag

type Tag struct {
	Id    uint   `json:"id"    orm:"id"     description:""`
	GrpId uint   `json:"grpId" orm:"grp_id" description:"分组id"`
	Name  string `json:"name"  orm:"name"   description:"标签名称"`
}

Tag is the golang structure for table tag.

type TagGrp

type TagGrp struct {
	Id   uint   `json:"id"   orm:"id"   description:""`
	Name string `json:"name" orm:"name" description:"标签分组名称"`
}

TagGrp is the golang structure for table tag_grp.

Jump to

Keyboard shortcuts

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