From fd01e5c2633b1e9c258088c7c8b26ee09ea52afa Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Sun, 17 Apr 2022 15:01:26 +0800 Subject: [PATCH] organization --- internal/api/organization/organization.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/organization/organization.go b/internal/api/organization/organization.go index 250e9eef0..13402d044 100644 --- a/internal/api/organization/organization.go +++ b/internal/api/organization/organization.go @@ -156,7 +156,7 @@ func DeleteDepartment(c *gin.Context) { } func CreateOrganizationUser(c *gin.Context) { - params := api.CreateOrganizationUserReq{OrganizationUser: &open_im_sdk.OrganizationUser{}} + params := api.CreateOrganizationUserReq{} if err := c.BindJSON(¶ms); err != nil { log.NewError("0", "BindJSON failed ", err.Error()) c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})