add MyPeers for user

This commit is contained in:
Tao Chen
2024-11-02 07:35:26 +08:00
parent dfcc7d54c1
commit a4dd39043e
5 changed files with 61 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ func UserBind(rg *gin.RouterGroup) {
aR.GET("/current", cont.Current)
aR.POST("/changeCurPwd", cont.ChangeCurPwd)
aR.POST("/myOauth", cont.MyOauth)
aR.GET("/myPeer", cont.MyPeer)
aR.POST("/groupUsers", cont.GroupUsers)
}
aRP := rg.Group("/user").Use(middleware.AdminPrivilege())