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.

22 lines
434 B

package category
import (
"gitlab.fanhaninfo.net/go/togo/dao/basedboperat"
)
func (Category) TableName() string {
return "category"
}
type Category struct {
Id int64 `json:"id"`
Type int64 `json:"type"`
Name string `json:"name"`
ParentId int64 `json:"parent_id"`
Children []Category `json:"children" xorm:"-"`
}
func (c *Category) AfterQuery(session basedboperat.DbTransactionSession) {
}