Files
2026-09-29 10:47:38 +08:00

28 lines
759 B
Go

package navigationapi
import (
"videoweb/app/service/navigationser"
"videoweb/pub/common"
"videoweb/pub/common/srvdef"
"github.com/gin-gonic/gin"
)
// HeaderNavigation 查询头部导航配置
// @Tags app导航相关接口
// @Summary 查询头部导航配置 -- by 王鸣
// @Description 查询导航类型为URL模式和二级导航的头部导航配置
// @Accept json
// @Produce json
// @Success 200 {object} proto.AppTranslationInfo "成功"
// @Failure 400 {string} string "失败"
// @Router /api/app/navigation/header [get]
func HeaderNavigation(ctx *gin.Context) {
resp, err := navigationser.HeaderNavigation(ctx)
if err != nil {
common.ServerJSON(ctx, err, err.GetMsg())
return
}
common.JSONWriterCache(ctx, srvdef.Success, resp)
}