organization

This commit is contained in:
skiffer-git 2022-04-17 15:01:26 +08:00 committed by Xinwei Xiong(cubxxw-openim)
parent 6d499032fa
commit df2271ee9a

View File

@ -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(&params); err != nil {
log.NewError("0", "BindJSON failed ", err.Error())
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})