码农笔录博客源码
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

17 行
403 B

package models
import "time"
type Comment struct {
Id int64
CuserId int64 `orm:"default(0)"`
BuserId int64 `orm:"default(0)"`
BlogId int64 `orm:"default(0)"`
Ctime time.Time `orm:"auto_now_add;type(datetime)"`
Pid int64 `orm:"default(0)"`
ComVal string `orm:"type(text)"`
Childs []*Comment `orm:"-"`
CUser *User `orm:"-"`
BUser *User `orm:"-"`
}