mirror of
https://github.com/ProudMuBai/GoFilm.git
synced 2026-02-24 04:04:42 +08:00
add search tag api
This commit is contained in:
@@ -41,3 +41,15 @@ func ExistsCategoryTree() bool {
|
||||
}
|
||||
return exists == 1
|
||||
}
|
||||
|
||||
// GetChildrenTree 根据影片Id获取对应分类的子分类信息
|
||||
func GetChildrenTree(id int64) []*CategoryTree {
|
||||
tree := GetCategoryTree()
|
||||
for _, t := range tree.Children {
|
||||
if t.Id == id {
|
||||
return t.Children
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user