🎨 优化用户和分类相关接口,新增banner接口
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user