mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 10:22:36 +08:00
Refactor code
This commit is contained in:
parent
17b96dd7c1
commit
a2440a2e80
@ -36,7 +36,7 @@ func main() {
|
|||||||
friendRouterGroup.POST("/add_friend", friend.AddFriend) //1
|
friendRouterGroup.POST("/add_friend", friend.AddFriend) //1
|
||||||
friendRouterGroup.POST("/delete_friend", friend.DeleteFriend) //1
|
friendRouterGroup.POST("/delete_friend", friend.DeleteFriend) //1
|
||||||
friendRouterGroup.POST("/get_friend_apply_list", friend.GetFriendApplyList) //1
|
friendRouterGroup.POST("/get_friend_apply_list", friend.GetFriendApplyList) //1
|
||||||
friendRouterGroup.POST("/get_self_apply_list", friend.GetSelfApplyList) //1
|
friendRouterGroup.POST("/get_self_friend_apply_list", friend.GetSelfFriendApplyList) //1
|
||||||
friendRouterGroup.POST("/get_friend_list", friend.GetFriendList) //1
|
friendRouterGroup.POST("/get_friend_list", friend.GetFriendList) //1
|
||||||
friendRouterGroup.POST("/add_friend_response", friend.AddFriendResponse) //1
|
friendRouterGroup.POST("/add_friend_response", friend.AddFriendResponse) //1
|
||||||
friendRouterGroup.POST("/set_friend_remark", friend.SetFriendRemark) //1
|
friendRouterGroup.POST("/set_friend_remark", friend.SetFriendRemark) //1
|
||||||
|
@ -423,7 +423,7 @@ func GetFriendApplyList(c *gin.Context) {
|
|||||||
c.JSON(http.StatusOK, resp)
|
c.JSON(http.StatusOK, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetSelfApplyList(c *gin.Context) {
|
func GetSelfFriendApplyList(c *gin.Context) {
|
||||||
params := api.GetSelfApplyListReq{}
|
params := api.GetSelfApplyListReq{}
|
||||||
if err := c.BindJSON(¶ms); err != nil {
|
if err := c.BindJSON(¶ms); err != nil {
|
||||||
log.NewError("0", "BindJSON failed ", err.Error())
|
log.NewError("0", "BindJSON failed ", err.Error())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user