organization

pull/218/head
skiffer-git 3 years ago
parent a42b72e9ce
commit 6184eaa30e

@ -25,7 +25,6 @@ func CreateDepartment(c *gin.Context) {
}
req := &rpc.CreateDepartmentReq{DepartmentInfo: &open_im_sdk.Department{}}
utils.CopyStructFields(req, &params)
utils.CopyStructFields(req.DepartmentInfo, params.Department)
err, opUserID := token_verify.ParseTokenGetUserID(c.Request.Header.Get("token"), req.OperationID)
req.OpUserID = opUserID
if err != nil {

@ -13,7 +13,7 @@ type CreateDepartmentResp struct {
}
type UpdateDepartmentReq struct {
open_im_sdk.Department
*open_im_sdk.Department
DepartmentID string `json:"departmentID" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
}

Loading…
Cancel
Save