|
|
|
@ -25,7 +25,7 @@ func main() {
|
|
|
|
|
userRouterGroup := r.Group("/user")
|
|
|
|
|
{
|
|
|
|
|
userRouterGroup.POST("/update_user_info", user.UpdateUserInfo) //1
|
|
|
|
|
userRouterGroup.POST("/get_user_info", user.GetUserInfo) //1
|
|
|
|
|
userRouterGroup.POST("/get_user_info", user.GetUserInfo) //1
|
|
|
|
|
}
|
|
|
|
|
//friend routing group
|
|
|
|
|
friendRouterGroup := r.Group("/friend")
|
|
|
|
@ -35,14 +35,14 @@ func main() {
|
|
|
|
|
friendRouterGroup.POST("/get_friend_apply_list", friend.GetFriendApplyList) //1
|
|
|
|
|
friendRouterGroup.POST("/get_self_apply_list", friend.GetSelfApplyList) //1
|
|
|
|
|
friendRouterGroup.POST("/get_friend_list", friend.GetFriendList) //1
|
|
|
|
|
friendRouterGroup.POST("/add_blacklist", friend.AddBlacklist) //1
|
|
|
|
|
friendRouterGroup.POST("/get_blacklist", friend.GetBlacklist) //1
|
|
|
|
|
friendRouterGroup.POST("/remove_blacklist", friend.RemoveBlacklist) //1
|
|
|
|
|
friendRouterGroup.POST("/add_blacklist", friend.AddBlacklist) //1
|
|
|
|
|
friendRouterGroup.POST("/get_blacklist", friend.GetBlacklist) //1
|
|
|
|
|
friendRouterGroup.POST("/remove_blacklist", friend.RemoveBlacklist) //1
|
|
|
|
|
friendRouterGroup.POST("/delete_friend", friend.DeleteFriend)
|
|
|
|
|
friendRouterGroup.POST("/add_friend_response", friend.AddFriendResponse) //1
|
|
|
|
|
friendRouterGroup.POST("/set_friend_remark", friend.SetFriendRemark) //1
|
|
|
|
|
friendRouterGroup.POST("/is_friend", friend.IsFriend) //1
|
|
|
|
|
friendRouterGroup.POST("/import_friend", friend.ImportFriend)
|
|
|
|
|
friendRouterGroup.POST("/import_friend", friend.ImportFriend) //1
|
|
|
|
|
}
|
|
|
|
|
//group related routing group
|
|
|
|
|
groupRouterGroup := r.Group("/group")
|
|
|
|
@ -66,7 +66,7 @@ func main() {
|
|
|
|
|
authRouterGroup := r.Group("/auth")
|
|
|
|
|
{
|
|
|
|
|
authRouterGroup.POST("/user_register", apiAuth.UserRegister) //1
|
|
|
|
|
authRouterGroup.POST("/user_token", apiAuth.UserToken) //1
|
|
|
|
|
authRouterGroup.POST("/user_token", apiAuth.UserToken) //1
|
|
|
|
|
}
|
|
|
|
|
//Third service
|
|
|
|
|
thirdGroup := r.Group("/third")
|
|
|
|
|