dept

package
v0.0.0-...-bcd2c7c Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDept

func CreateDept(c *gin.Context)

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

func DeleteDept(c *gin.Context)

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

func GetDept(c *gin.Context)

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

func ListDpet(c *gin.Context)

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

func UpdateDept(c *gin.Context)

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.

Jump to

Keyboard shortcuts

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