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"` // 父级分类id,2级的是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级分类 )