|
@@ -38,6 +38,9 @@ func DeleteCategory(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
// CategoryList 获取分类列表
|
|
// CategoryList 获取分类列表
|
|
func CategoryList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
func CategoryList(c *gin.Context, apictx *ApiSession) (interface{}, error) {
|
|
page, size, query := UtilQueryPageSize(c)
|
|
page, size, query := UtilQueryPageSize(c)
|
|
|
|
+ if _, ok := query["type"]; !ok {
|
|
|
|
+ query["typeId"] = -1
|
|
|
|
+ }
|
|
|
|
|
|
return repo.RepoPageSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
|
|
return repo.RepoPageSearch(apictx.CreateRepoCtx(), &repo.PageSearchOptions{
|
|
CollectName: repo.CollectionCategories,
|
|
CollectName: repo.CollectionCategories,
|