You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
331 B
20 lines
331 B
package Router
|
|
|
|
import (
|
|
"dsAutoCode/Controller/ProtoController"
|
|
"dsAutoCode/Controller/SyncController"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
//接口路由
|
|
func GinRouter(r *gin.Engine) {
|
|
//注册根目录
|
|
|
|
//注册分路线
|
|
rr := r.Group("/init")
|
|
SyncController.Routers(rr)
|
|
|
|
rr = r.Group("/proto")
|
|
ProtoController.Routers(rr)
|
|
}
|