mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 02:16:16 +08:00
organization
This commit is contained in:
parent
ecc47dcfbb
commit
fd01e5c263
@ -156,7 +156,7 @@ func DeleteDepartment(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func CreateOrganizationUser(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 {
|
if err := c.BindJSON(¶ms); err != nil {
|
||||||
log.NewError("0", "BindJSON failed ", err.Error())
|
log.NewError("0", "BindJSON failed ", err.Error())
|
||||||
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
|
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user