organization

pull/218/head
skiffer-git 3 years ago
parent f076a927c9
commit 02b5ff38a4

@ -25,7 +25,7 @@ func CreateDepartment(c *gin.Context) {
} }
req := &rpc.CreateDepartmentReq{DepartmentInfo: &open_im_sdk.Department{}} req := &rpc.CreateDepartmentReq{DepartmentInfo: &open_im_sdk.Department{}}
utils.CopyStructFields(req, &params) utils.CopyStructFields(req, &params)
utils.CopyStructFields(req, params.Department) utils.CopyStructFields(req.DepartmentInfo, &params)
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
if err != nil { if err != nil {

Loading…
Cancel
Save