获取请求用户
This commit is contained in:
parent
fe9a0b3caf
commit
4c20d06327
|
|
@ -108,7 +108,6 @@ func GetFriendRequest(c *gin.Context) {
|
||||||
user_id := int(id.(float64))
|
user_id := int(id.(float64))
|
||||||
data := service.GetFriendRequest(user_id)
|
data := service.GetFriendRequest(user_id)
|
||||||
c.JSON(http.StatusOK, gin.H{"code": proto.SuccessCode, "data": data, "message": "success"})
|
c.JSON(http.StatusOK, gin.H{"code": proto.SuccessCode, "data": data, "message": "success"})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func CreateGroup(c *gin.Context) {
|
func CreateGroup(c *gin.Context) {
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ func GetFriendList(user_id int) FGRet {
|
||||||
return fg
|
return fg
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetFriendRequest(user_id int) []dao.User {
|
func GetFriendRequest(user_id int) []dao.FriendRequest {
|
||||||
//获取好友请求
|
//获取好友请求
|
||||||
users := dao.GetFriendRequest(user_id)
|
users := dao.GetFriendRequest(user_id)
|
||||||
return users
|
return users
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue