2023-11-02 04:34:46 +08:00
|
|
|
package app
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
v1 "miniapp/api/v1"
|
|
|
|
"miniapp/middleware"
|
|
|
|
)
|
|
|
|
|
|
|
|
type VisionRouter struct{}
|
|
|
|
|
|
|
|
func (s *VisionRouter) InitVisionRouter(Router *gin.RouterGroup) {
|
|
|
|
userRouter := Router.Group("vision").Use(middleware.AuthorizeToken())
|
|
|
|
//publicRouter := Router.Group("user")
|
|
|
|
baseApi := v1.ApiGroupApp.AppApiGroup.VisionApi
|
|
|
|
{
|
2023-12-11 18:56:19 +08:00
|
|
|
userRouter.GET("list", baseApi.GetList)
|
2023-11-02 04:34:46 +08:00
|
|
|
userRouter.POST("", baseApi.Create)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|