package
0.0.0-20220126111042-bcd2c7cf3f6d
Repository: https://github.com/codehanhan/ferry-backend.git
Documentation: pkg.go.dev
# Functions
CreatePost godoc @Summary 创建岗位 @Description 根据PostName和PostCode创建岗位信息 @Tags post @ID post-create @Param post body formPost.CreatePostRequest true "post名称和post等级" @Success 200 {object} formPost.CreatePostResponse @Failure 500 {object} app.ErrResponse @Failure 400 {object} app.ErrResponse @Produce json @Router /post [post] @Security BearerAuth.
DeletePost godoc @Summary 删除岗位 @Description 根据PostID删除岗位 @Tags post @ID post-delete @Param post_id path string true "岗位唯一id" @Success 200 {object} formPost.DeletePostResponse @Failure 500 {object} app.ErrResponse @Failure 400 {object} app.ErrResponse @Produce json @Router /post/{post_id} [delete] @Security BearerAuth.
GetPost godoc @Summary 查询岗位 @Description 根据岗位id查询岗位信息 @Tags post @ID post-get @Param post_id path string true "部门id" @Success 200 {object} formPost.GetPostResponse @Failure 500 {object} app.ErrResponse @Failure 400 {object} app.ErrResponse @Produce json @Router /post/{post_id} [get] @Security BearerAuth.
ListPost godoc @Summary 查询岗位列表 @Description 根据offset和limit查询岗位列表 @Tags post @ID post-list @Param offset query int true "偏移" @Param limit query int true "限制" @Success 200 {object} formPost.ListPostResponse @Failure 500 {object} app.ErrResponse @Failure 400 {object} app.ErrResponse @Produce json @Router /post [get] @Security BearerAuth.
UpdatePost godoc @Summary 更新岗位 @Description 更新岗位信息 @Tags post @ID post-update @Param post body formPost.UpdatePostRequest true "包含postid、post名称、post等级等相关信息" @Success 200 {object} formPost.UpdatePostResponse @Failure 500 {object} app.ErrResponse @Failure 400 {object} app.ErrResponse @Accept application/json @Produce json @Router /post [put] @Security BearerAuth.