package route import ( "github.com/gin-gonic/gin" "online_code/api" ) func user(g *gin.RouterGroup) { g.GET("/:identity", api.UserApi().GetUserInfo) // 获取用户详情 }