mindoc/models/blogs.go

26 lines
718 B
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package models
import "time"
//博文表
type Blog struct {
BlogId int
BlogTitle string
MemberId int
//文字摘要
BlogExcerpt string
//文章内容
BlogContent string
//文章当前的状态枚举enum(publish,draft,private,static,object)值publish为已 发表draft为草稿private为私人内容(不会被公开) static(不详)object(不详)。默认为publish。
BlogStatus string
//文章密码varchar(20)值。文章编辑才可为文章设定一个密码,凭这个密码才能对文章进行重新强加或修改。
Password string
//最后修改时间
Modified time.Time
//修改人id
ModifyAt int
//创建时间
Created time.Time
}