organization

package
v0.0.0-...-4702bed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDepartment

func CreateDepartment(c *gin.Context)

@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

func CreateDepartmentMember(c *gin.Context)

@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

func CreateOrganizationUser(c *gin.Context)

@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

func DeleteDepartment(c *gin.Context)

@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

func DeleteOrganizationUser(c *gin.Context)

@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

func DeleteUserInDepartment(c *gin.Context)

@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 GetAllDepartment(c *gin.Context)

func GetDepartmentMember

func GetDepartmentMember(c *gin.Context)

@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

func GetSubDepartment(c *gin.Context)

@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

func GetUserInDepartment(c *gin.Context)

@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 GetUserInOrganization(c *gin.Context)

func UpdateDepartment

func UpdateDepartment(c *gin.Context)

@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

func UpdateOrganizationUser(c *gin.Context)

@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

func UpdateUserInDepartment(c *gin.Context)

@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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL