From 763ea81bdf46597fceda06eea3eea09b0c46e70f Mon Sep 17 00:00:00 2001 From: lifei6671 Date: Tue, 1 Aug 2017 17:58:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=8D=9A=E6=96=87=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/blogs.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 models/blogs.go diff --git a/models/blogs.go b/models/blogs.go new file mode 100644 index 00000000..80ee253f --- /dev/null +++ b/models/blogs.go @@ -0,0 +1,25 @@ +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 +} \ No newline at end of file