🎨 新增获取用户详情接口

This commit is contained in:
2022-06-02 16:22:01 +08:00
parent 090acb0454
commit fb5f8ca2a5
3 changed files with 49 additions and 0 deletions

10
route/user.go Normal file
View File

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