码农笔录博客源码
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

33 righe
872 B

package models
import (
"time"
)
type Blog struct {
Id int64
UserId int64
Title string
BlogValue string `orm:"type(text)"`
BlogHtml string `orm:"type(text)"`
5 anni fa
BlogDesc string
Ctime time.Time `orm:"auto_now_add;type(datetime)"`
Utime time.Time `orm:"auto_now_add;type(datetime)"`
Browses int64 `orm:"default(0)"`
6 anni fa
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)"`
CategoryId int64
6 anni fa
User *User `orm:"-"`
UserName string `orm:"-"`
HeadImg string `orm:"-"`
CateName string `orm:"-"`
Lables []*NLabel `orm:"-"`
Comms []*Comment `orm:"-"`
}