organization

pull/455/head
skiffer-git 3 years ago committed by Xinwei Xiong(cubxxw-openim)
parent f917eb19f1
commit d949ee0239

@ -192,7 +192,7 @@ func CreateOrganizationUser(c *gin.Context) {
}
func UpdateOrganizationUser(c *gin.Context) {
params := api.UpdateOrganizationUserReq{OrganizationUser: &open_im_sdk.OrganizationUser{}}
params := api.UpdateOrganizationUserReq{}
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()})

@ -48,16 +48,16 @@ type CreateOrganizationUserResp struct {
}
type UpdateOrganizationUserReq struct {
OperationID string `json:"operationID" binding:"required"`
OrganizationUser *open_im_sdk.OrganizationUser
OperationID string `json:"operationID" binding:"required"`
*open_im_sdk.OrganizationUser
}
type UpdateOrganizationUserResp struct {
CommResp
}
type CreateDepartmentMemberReq struct {
OperationID string `json:"operationID" binding:"required"`
UserInDepartment *open_im_sdk.UserInDepartment
OperationID string `json:"operationID" binding:"required"`
*open_im_sdk.UserInDepartment
}
type CreateDepartmentMemberResp struct {
@ -65,7 +65,7 @@ type CreateDepartmentMemberResp struct {
}
type GetUserInDepartmentReq struct {
UserID string
UserID string `json:"userID" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
}
type GetUserInDepartmentResp struct {
@ -83,7 +83,7 @@ type UpdateUserInDepartmentResp struct {
}
type DeleteOrganizationUserReq struct {
UserID string
UserID string `json:"userID" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
}
type DeleteOrganizationUserResp struct {
@ -91,7 +91,7 @@ type DeleteOrganizationUserResp struct {
}
type GetDepartmentMemberReq struct {
DepartmentID string
DepartmentID string `json:"departmentID" binding:"required"`
OperationID string `json:"operationID" binding:"required"`
}
type GetDepartmentMemberResp struct {

Loading…
Cancel
Save