码农笔录博客源码
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

32 rindas
853 B

pirms 6 gadiem
package models
import (
"time"
)
pirms 6 gadiem
type Blog struct {
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)"`
pirms 6 gadiem
Likes int64 `orm:"default(0)"`
Comments 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)"`
pirms 6 gadiem
CategoryId int64
pirms 6 gadiem
User *User `orm:"-"`
UserName string `orm:"-"`
HeadImg string `orm:"-"`
CateName string `orm:"-"`
Lables []*NLabel `orm:"-"`
Comms []*Comment `orm:"-"`
pirms 6 gadiem
}