28 lines
653 B
Go
28 lines
653 B
Go
// package router
|
|
// @Link https://github.com/xiujiecn/xiu-admin
|
|
// @Copyright Copyright (c) 2025 LiXiujie
|
|
// @Author Lxj <li@example.com>
|
|
// @License https://github.com/xiujiecn/xiu-admin/blob/master/LICENSE
|
|
package router
|
|
|
|
import (
|
|
"context"
|
|
"git.5iot.com/iotlcm-public/iotlcm-app/internal/controller/common"
|
|
"git.5iot.com/iotlcm-public/iotlcm-app/internal/service"
|
|
|
|
"github.com/gogf/gf/v2/net/ghttp"
|
|
)
|
|
|
|
// Common 通用路由
|
|
func Common(ctx context.Context, group *ghttp.RouterGroup) {
|
|
|
|
group.Group("/common", func(group *ghttp.RouterGroup) {
|
|
group.Middleware(
|
|
service.Middleware().Auth,
|
|
)
|
|
group.Bind(
|
|
common.NewV1(),
|
|
)
|
|
})
|
|
}
|