From a030d7181c8a02886a0cbe5dbd61de8c575ba652 Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Mon, 18 Apr 2022 16:18:10 +0800 Subject: [PATCH] organization --- cmd/open_im_api/main.go | 2 +- internal/api/organization/organization.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/open_im_api/main.go b/cmd/open_im_api/main.go index bbeb522e3..6d8f5d577 100644 --- a/cmd/open_im_api/main.go +++ b/cmd/open_im_api/main.go @@ -165,7 +165,7 @@ func main() { organizationGroup.POST("/create_department_member", organization.CreateDepartmentMember) organizationGroup.POST("/get_user_in_department", organization.GetUserInDepartment) - organizationGroup.POST("/update_user_In_department", organization.UpdateUserInDepartment) + organizationGroup.POST("/update_user_in_department", organization.UpdateUserInDepartment) organizationGroup.POST("/get_department_member", organization.GetDepartmentMember) organizationGroup.POST("/delete_user_in_department", organization.DeleteUserInDepartment) diff --git a/internal/api/organization/organization.go b/internal/api/organization/organization.go index eeaf49e1e..5b7d1d437 100644 --- a/internal/api/organization/organization.go +++ b/internal/api/organization/organization.go @@ -299,7 +299,7 @@ func GetUserInDepartment(c *gin.Context) { } func UpdateUserInDepartment(c *gin.Context) { - params := api.UpdateUserInDepartmentReq{DepartmentMember: &open_im_sdk.DepartmentMember{}} + params := api.UpdateUserInDepartmentReq{} 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()})