Documentation ¶
Index ¶
- func CreateDepartment(c *gin.Context)
- func CreateDepartmentMember(c *gin.Context)
- func CreateOrganizationUser(c *gin.Context)
- func DeleteDepartment(c *gin.Context)
- func DeleteOrganizationUser(c *gin.Context)
- func DeleteUserInDepartment(c *gin.Context)
- func GetAllDepartment(c *gin.Context)
- func GetDepartmentMember(c *gin.Context)
- func GetSubDepartment(c *gin.Context)
- func GetUserInDepartment(c *gin.Context)
- func GetUserInOrganization(c *gin.Context)
- func UpdateDepartment(c *gin.Context)
- func UpdateOrganizationUser(c *gin.Context)
- func UpdateUserInDepartment(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDepartment ¶
@Summary 创建部门 @Description 创建部门 @Tags 组织架构相关 @ID CreateDepartment @Accept json @Param token header string true "im token" @Param req body api.CreateDepartmentReq true "请求" @Produce json @Success 0 {object} api.CreateDepartmentResp{data=open_im_sdk.Department} @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/create_department [post]
func CreateDepartmentMember ¶
@Summary 创建部门用户 @Description 创建部门用户 @Tags 组织架构相关 @ID CreateDepartmentMember @Accept json @Param token header string true "im token" @Param req body api.CreateDepartmentMemberReq true "请求" @Produce json @Success 0 {object} api.CreateDepartmentMemberResp @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/create_department_member [post]
func CreateOrganizationUser ¶
@Summary 组织架构导入用户 @Description 组织架构导入用户 @Tags 组织架构相关 @ID CreateOrganizationUser @Accept json @Param token header string true "im token" @Param req body api.CreateOrganizationUserReq true "请求" @Produce json @Success 0 {object} api.CreateOrganizationUserResp @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/create_organization_user [post]
func DeleteDepartment ¶
@Summary 删除部门 @Description 删除部门 @Tags 组织架构相关 @ID DeleteDepartment @Accept json @Param token header string true "im token" @Param req body api.DeleteDepartmentReq true "请求" @Produce json @Success 0 {object} api.DeleteDepartmentResp @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/delete_department [post]
func DeleteOrganizationUser ¶
@Summary 删除组织架构中某个用户 @Description 删除组织架构中某个用户 @Tags 组织架构相关 @ID DeleteOrganizationUser @Accept json @Param token header string true "im token" @Param req body api.DeleteOrganizationUserReq true "请求" @Produce json @Success 0 {object} api.DeleteOrganizationUserResp @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/delete_organization_user [post]
func DeleteUserInDepartment ¶
@Summary 删除部门中某个用户 @Description 删除部门中某个用户 @Tags 组织架构相关 @ID DeleteUserInDepartment @Accept json @Param token header string true "im token" @Param req body api.DeleteUserInDepartmentReq true "请求" @Produce json @Success 0 {object} api.DeleteUserInDepartmentResp @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/delete_user_in_department [post]
func GetAllDepartment ¶
func GetDepartmentMember ¶
@Summary 获取部门中所有成员 @Description 获取部门中所有成员 @Tags 组织架构相关 @ID GetDepartmentMember @Accept json @Param token header string true "im token" @Param req body api.GetDepartmentMemberReq true "请求" @Produce json @Success 0 {object} api.GetDepartmentMemberResp{data=[]open_im_sdk.UserDepartmentMember} @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/get_department_member [post]
func GetSubDepartment ¶
@Summary 获取子部门列表 @Description 获取子部门列表 @Tags 组织架构相关 @ID GetSubDepartment @Accept json @Param token header string true "im token" @Param req body api.GetSubDepartmentReq true "请求" @Produce json @Success 0 {object} api.GetSubDepartmentResp{data=[]open_im_sdk.Department} @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/get_sub_department [post]
func GetUserInDepartment ¶
@Summary 获取部门中的所有用户 @Description 获取部门中的所有用户 @Tags 组织架构相关 @ID GetUserInDepartment @Accept json @Param token header string true "im token" @Param req body api.GetUserInDepartmentReq true "请求" @Produce json @Success 0 {object} api.GetUserInDepartmentResp{data=open_im_sdk.UserInDepartment} @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/get_user_in_department [post]
func GetUserInOrganization ¶
func UpdateDepartment ¶
@Summary 更新部门信息 @Description 更新部门信息 @Tags 组织架构相关 @ID UpdateDepartment @Accept json @Param token header string true "im token" @Param req body api.UpdateDepartmentReq true "请求" @Produce json @Success 0 {object} api.UpdateDepartmentResp @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/update_department [post]
func UpdateOrganizationUser ¶
@Summary 更新组织架构中的用户 @Description 更新组织架构中的用户 @Tags 组织架构相关 @ID UpdateOrganizationUser @Accept json @Param token header string true "im token" @Param req body api.UpdateOrganizationUserReq true "请求" @Produce json @Success 0 {object} api.UpdateOrganizationUserResp @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/update_organization_user [post]
func UpdateUserInDepartment ¶
@Summary 更新部门中某个用户 @Description 更新部门中某个用户 @Tags 组织架构相关 @ID UpdateUserInDepartment @Accept json @Param token header string true "im token" @Param req body api.UpdateUserInDepartmentReq true "请求" @Produce json @Success 0 {object} api.UpdateUserInDepartmentResp @Failure 500 {object} api.Swagger500Resp "errCode为500 一般为服务器内部错误" @Failure 400 {object} api.Swagger400Resp "errCode为400 一般为参数输入错误, token未带上等" @Router /organization/update_user_in_department [post]
Types ¶
This section is empty.