提交 69b1ee2e 编写于 作者: W wenxu12345

Refactor code

上级 95a771c2
......@@ -54,7 +54,7 @@ func ImportFriend(c *gin.Context) {
return
}
req := &rpc.ImportFriendReq{}
utils.CopyStructFields(req, &params.ParamsCommFriend)
utils.CopyStructFields(req, &params)
var ok bool
ok, req.OpUserID = token_verify.GetUserIDFromToken(c.Request.Header.Get("token"))
if !ok {
......
......@@ -17,7 +17,8 @@ type AddBlacklistResp struct {
type ImportFriendReq struct {
FriendUserIDList []string `json:"friendUserIDList" binding:"required"`
ParamsCommFriend
OperationID string `json:"operationID" binding:"required"`
FromUserID string `json:"fromUserID" binding:"required"`
}
type UserIDResult struct {
UserID string `json:"userID""`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册