完善基础架构,新增部分问题接口

This commit is contained in:
2022-05-26 00:39:39 +08:00
parent 761c24efbf
commit 326118eefb
16 changed files with 251 additions and 4 deletions

10
route/problem.go Normal file
View File

@@ -0,0 +1,10 @@
package route
import (
"github.com/gin-gonic/gin"
"online_code/api"
)
func problem(g *gin.RouterGroup) {
g.GET("/list", api.ProblemApi().GetProbleList)
}

8
route/router.go Normal file
View File

@@ -0,0 +1,8 @@
package route
import "github.com/gin-gonic/gin"
func InitRoute(g *gin.RouterGroup) {
api := g.Group("/api")
problem(api.Group("/problem"))
}