Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDept ¶
CreateDept godoc @Summary 创建部门 @Description 根据一个DeptName创建部门,DeptName 要求不能重复 @Tags dept @ID dept-create @Param dept body formDept.CreateDeptRequest true "参数不可空" @Success 200 {object} formDept.CreateDeptResponse @Failure 500 {object} app.ErrResponse @Failure 400 {object} app.ErrResponse @Accept application/json @Produce json @Router /dept [post] @Security BearerAuth
func DeleteDept ¶
DeleteDept godoc @Summary 删除部门 @Description 删除部门,幂等操作 @Tags dept @ID dept-delete @Param dept_id path string true "部门唯一id" @Success 200 {object} formDept.DeleteDeptResponse @Failure 500 {object} app.ErrResponse @Failure 400 {object} app.ErrResponse @Accept application/json @Produce json @Router /dept/{dept_id} [delete] @Security BearerAuth
func GetDept ¶
GetDept godoc @Summary 查询部门 @Description 根据部门id查询部门信息 @Tags dept @ID dept-get @Param dept_id path string true "部门id" @Success 200 {object} formDept.GetDeptResponse @Failure 500 {object} app.ErrResponse @Failure 400 {object} app.ErrResponse @Produce json @Router /dept/{dept_id} [get] @Security BearerAuth
func ListDpet ¶
ListDept godoc @Summary 查询部门列表 @Description 根据offset和limit查询部门列表 @Tags dept @ID dept-list @Param offset query int true "偏移" @Param limit query int true "限制" @Success 200 {object} formDept.ListDeptResponse @Failure 500 {object} app.ErrResponse @Failure 400 {object} app.ErrResponse @Produce json @Router /dept [get] @Security BearerAuth
func UpdateDept ¶
UpdateDept godoc @Summary 更新部门 @Description 更新部门信息 @Tags dept @ID dept-update @Param dept body formDept.UpdateDeptRequest true "部门id" @Success 200 {object} formDept.UpdateDeptResponse @Failure 500 {object} app.ErrResponse @Failure 400 {object} app.ErrResponse @Accept application/json @Produce json @Router /dept [put] @Security BearerAuth
Types ¶
This section is empty.