Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB_BLOG_CATES ¶
DB_BLOG_CATES 文章分类表模型
type DB_BLOG_COMMENTS ¶
type DB_BLOG_COMMENTS struct {
models.Model
Name string `json:"name"`
User string `json:"user"`
Date string `json:"date"`
Comment string `json:"comment"`
}
DB_BLOG_COMMENTS 文章评论表模型
type DB_BLOG_LIKES ¶
type DB_BLOG_LIKES struct {
models.Model
Name string `gorm:"unique;not null" json:"name"`
Like int `json:"like"`
}
DB_BLOG_LIKES 文章点赞表模型
type DB_BLOG_POST ¶
type DB_BLOG_POST struct {
models.Model
ID int `gorm:"not null" json:"id"`
Name string `gorm:"unique;not null" json:"name"`
Title string `json:"title"`
Date string `json:"date"`
DatePlus string `json:"date_plus"`
Update string `json:"update"`
Abstract string `json:"abstract"`
Content string `json:"content"`
Tags string `json:"tags"`
Categories string `json:"categories"`
Pin int `json:"pin"`
}
DB_BLOG_POST 文章表模型
func Search ¶
func Search(name string) (s []DB_BLOG_POST)
Search 模糊搜索 当前支持title name content abstract tag cate
type DB_BLOG_SHARE ¶
DB_BLOG_SHARE 文章分享表模型
type DB_BLOG_TAGS ¶
DB_BLOG_TAGS 文章标签表模型
Click to show internal directories.
Click to hide internal directories.