mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-05 20:11:14 +08:00
organization
This commit is contained in:
parent
5271d22174
commit
ec9474e96f
@ -234,9 +234,9 @@ func CreateDepartmentMember(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
req := &rpc.CreateDepartmentMemberReq{UserInDepartment: &open_im_sdk.UserInDepartment{}}
|
req := &rpc.CreateDepartmentMemberReq{DepartmentMember: &open_im_sdk.DepartmentMember{}}
|
||||||
utils.CopyStructFields(req, ¶ms)
|
utils.CopyStructFields(req, ¶ms)
|
||||||
utils.CopyStructFields(req.UserInDepartment, ¶ms)
|
utils.CopyStructFields(req.DepartmentMember, ¶ms)
|
||||||
|
|
||||||
err, opUserID := token_verify.ParseTokenGetUserID(c.Request.Header.Get("token"), req.OperationID)
|
err, opUserID := token_verify.ParseTokenGetUserID(c.Request.Header.Get("token"), req.OperationID)
|
||||||
req.OpUserID = opUserID
|
req.OpUserID = opUserID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user