@ -24,6 +24,7 @@ func CreateDepartment(c *gin.Context) {
}
req := &rpc.CreateDepartmentReq{}
utils.CopyStructFields(req, ¶ms)
utils.CopyStructFields(req.DepartmentInfo, ¶ms)
err, opUserID := token_verify.ParseTokenGetUserID(c.Request.Header.Get("token"), req.OperationID)
req.OpUserID = opUserID
if err != nil {
@ -3,7 +3,7 @@ package base_info
import open_im_sdk "Open_IM/pkg/proto/sdk_ws"
type CreateDepartmentReq struct {
open_im_sdk.Department
*open_im_sdk.Department
OperationID string `json:"operationID" binding:"required"`
type CreateDepartmentResp struct {