mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
organization
This commit is contained in:
parent
f917eb19f1
commit
d949ee0239
@ -192,7 +192,7 @@ func CreateOrganizationUser(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func UpdateOrganizationUser(c *gin.Context) {
|
func UpdateOrganizationUser(c *gin.Context) {
|
||||||
params := api.UpdateOrganizationUserReq{OrganizationUser: &open_im_sdk.OrganizationUser{}}
|
params := api.UpdateOrganizationUserReq{}
|
||||||
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()})
|
||||||
|
@ -48,16 +48,16 @@ type CreateOrganizationUserResp struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type UpdateOrganizationUserReq struct {
|
type UpdateOrganizationUserReq struct {
|
||||||
OperationID string `json:"operationID" binding:"required"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
OrganizationUser *open_im_sdk.OrganizationUser
|
*open_im_sdk.OrganizationUser
|
||||||
}
|
}
|
||||||
type UpdateOrganizationUserResp struct {
|
type UpdateOrganizationUserResp struct {
|
||||||
CommResp
|
CommResp
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateDepartmentMemberReq struct {
|
type CreateDepartmentMemberReq struct {
|
||||||
OperationID string `json:"operationID" binding:"required"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
UserInDepartment *open_im_sdk.UserInDepartment
|
*open_im_sdk.UserInDepartment
|
||||||
}
|
}
|
||||||
|
|
||||||
type CreateDepartmentMemberResp struct {
|
type CreateDepartmentMemberResp struct {
|
||||||
@ -65,7 +65,7 @@ type CreateDepartmentMemberResp struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetUserInDepartmentReq struct {
|
type GetUserInDepartmentReq struct {
|
||||||
UserID string
|
UserID string `json:"userID" binding:"required"`
|
||||||
OperationID string `json:"operationID" binding:"required"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
}
|
}
|
||||||
type GetUserInDepartmentResp struct {
|
type GetUserInDepartmentResp struct {
|
||||||
@ -83,7 +83,7 @@ type UpdateUserInDepartmentResp struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type DeleteOrganizationUserReq struct {
|
type DeleteOrganizationUserReq struct {
|
||||||
UserID string
|
UserID string `json:"userID" binding:"required"`
|
||||||
OperationID string `json:"operationID" binding:"required"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
}
|
}
|
||||||
type DeleteOrganizationUserResp struct {
|
type DeleteOrganizationUserResp struct {
|
||||||
@ -91,7 +91,7 @@ type DeleteOrganizationUserResp struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GetDepartmentMemberReq struct {
|
type GetDepartmentMemberReq struct {
|
||||||
DepartmentID string
|
DepartmentID string `json:"departmentID" binding:"required"`
|
||||||
OperationID string `json:"operationID" binding:"required"`
|
OperationID string `json:"operationID" binding:"required"`
|
||||||
}
|
}
|
||||||
type GetDepartmentMemberResp struct {
|
type GetDepartmentMemberResp struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user