models

package
v0.0.0-...-8580c6f Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: GPL-3.0, GPL-3.0-or-later 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 {
	Uid      int    //用戶id
	Uuid     string //uuid
	Uname    string //会员名称
	Pcode    string //加密随机数
	Passwd   string //密码
	Nikename string //昵称
	Avatar   string //头像
	State    int8   //状态:0禁用-1正常
	Ctime    string //创建时间
	Utime    string //更新时间

}

type Article

type Article struct {
	ID          int       //id
	UUID        string    //uuid
	Title       string    //文章标题
	ShortTitle  string    //文章短标题
	Desc        string    //文章摘要
	Type        int8      //文章属性:0普通文章,1单页
	Thumb       string    //文章缩略图
	State       int8      //状态:0隐藏,1显示,2未审核
	Click       int       //点击量
	Like        int       //喜欢量
	Ctime       time.Time //创建时间
	Utime       time.Time //创建时间
	Author      string    //作者昵称
	UID         int       //作者id
	Content     string    //文章内容
	SeoTitle    string    //seo标题
	SeoKeyWords string    //seo关键字
	SeoDesc     string    //seo描述
	IsTop       int8      //置顶
	IsNice      int8      //推荐
}

type ArticleCate

type ArticleCate struct {
	ID  int //文章id
	CID int //分类id
}

type Cate

type Cate struct {
	CID         int    //分类id
	UUID        string //uuid
	PID         int    //上级id
	CName       string //分类标题
	EName       string //英文标题
	Desc        string //简述
	SeoTitle    string //seo标题
	SeoKeywords string //关键字
	SeoDesc     string //seo描述
	Thumb       string //分类缩略图
	State       int8   //状态:0隐藏,1显示
	Icon        string //分类小图标
	Listorder   int    //排序
}

type Config

type Config struct {
	ID    int    //配置id
	Name  string //配置名称
	Ename string //配置英文名
	Value string //配置值
}

type Files

type Files struct {
	FileId    int       //文件id
	FilePath  string    //文件路径
	FileTitle string    //标题
	FileDesc  string    //描述
	FileSize  string    //文件大小
	FileState int8      //文件状态:0未使用 1正常
	FileTime  time.Time //文件上传时间
	FileExt   string    //文件后缀
}
type Link struct {
	ID        int    //友链id
	Name      string //友链名称
	Url       string //友链地址
	State     int8   //友链状态
	Target    string //友链打开方式
	Listorder int    //排序
}

Jump to

Keyboard shortcuts

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