Files
2026-10-26 16:28:14 +08:00

18 lines
502 B
Go

package appser
import (
"context"
"videoweb/app/api/proto"
"videoweb/app/service/configser"
"videoweb/pub/common/srvdef"
)
// AppCategoryData 查询应用分类列表及当前分类数据
func AppCategoryData(ctx context.Context, categoryId int64) ([]proto.AppCategoryInfo, proto.AppCategoryInfo, *srvdef.SrvErr) {
list := GetAppListCache()
category := GetCategoryCache(categoryId)
configser.RewriteImageCdn(ctx, &list)
configser.RewriteImageCdn(ctx, &category)
return list, category, nil
}