完善配送端资源搜索与资质导航

This commit is contained in:
czl231
2026-08-22 23:24:12 +08:00
parent 5d4bd61672
commit 4334719051
22 changed files with 432 additions and 58 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
sdkmiddleware "git.apinb.com/bsm-sdk/core/middleware"
"git.apinb.com/heqiapp/platforms/backend/api/internal/logic/common"
deliverylogic "git.apinb.com/heqiapp/platforms/backend/api/internal/logic/delivery"
"github.com/gin-gonic/gin"
)
@@ -16,6 +17,7 @@ func RegisterDelivery(serviceKey string, engine *gin.Engine) {
protected := engine.Group(basePath)
protected.Use(sdkmiddleware.JwtAuth(true))
protected.Use(deliverylogic.RequireDeliveryAdmin())
protected.Use(common.EnableConfiguredKeywordSearch())
protected.GET("/auth/profile", deliverylogic.CurrentProfile)
protected.PUT("/auth/password", deliverylogic.ChangePassword)
protected.GET("/delivery_menu", deliverylogic.ListMenu)