🎨 优化用户和分类相关接口,新增banner接口

This commit is contained in:
2025-06-23 17:04:44 +08:00
parent a5ae680f94
commit cf0f60d221
29 changed files with 695 additions and 299 deletions

View File

@@ -186,3 +186,13 @@ func (catApi *CategoryApi) GetCategoryPublic(c *gin.Context) {
"info": "不需要鉴权的类别接口信息",
}, "获取成功", c)
}
func (catApi *CategoryApi) GetCategoryListPublic(context *gin.Context) {
list, err := catService.GetIndexCategoryList()
if err != nil {
global.GVA_LOG.Error("获取类别列表失败!", zap.Error(err))
response.FailWithMessage("获取类别列表失败:"+err.Error(), context)
return
}
response.OkWithData(list, context)
}