service/dbstruct/catalog.go

21 lines
814 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package dbstruct
// 分类
type Catalog struct {
Id int64 `json:"id" bson:"_id"` // 分类id
Name string `json:"name" bson:"name"` // 分类名
CoverId int64 `json:"cover_id" bson:"cover_id"` // 封面图片id
Desc string `json:"desc" bson:"desc"` // 描述
Level int `json:"level" bson:"level"` // 标签等级见CatalogLevel*
ParentId int64 `json:"parent_id" bson:"parent_id"` // 父级分类id2级的是1级id
DelFlag int `json:"del_flag" bson:"del_flag"` // 删除标记1已删除0未删除
Index int `json:"index" bson:"index"` // 顺序
Ct int64 `json:"ct" bson:"ct"`
Ut int64 `json:"ut" bson:"ut"`
}
const (
CatalogLevel1 = 1 // 1级分类
CatalogLevel2 = 2 // 2级分类
)