码农笔录博客源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
765 B

пре 6 година
package models
import (
"time"
)
пре 6 година
type Blog struct {
пре 6 година
Id int64
UserId int64
Title string
BlogValue string `orm:"type(text)"`
BlogHtml string `orm:"type(text)"`
Ctime time.Time `orm:"auto_now_add;type(datetime)"`
Utime time.Time `orm:"auto_now_add;type(datetime)"`
Browses int64 `orm:"default(0)"`
Top int `orm:"default(0)"`
Hot int `orm:"default(0)"`
Ttime time.Time `orm:"null;type(date)"`
Htime time.Time `orm:"null;type(date)"`
Delflag int `orm:"default(0)"`
пре 6 година
CategoryId int64
пре 6 година
User *User `orm:"-"`
пре 6 година
UserName string `orm:"-"`
HeadImg string `orm:"-"`
CateName string `orm:"-"`
Lables []*NLabel `orm:"-"`
пре 6 година
Comms []*Comment `orm:"-"`
пре 6 година
}