Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApproveHandler ¶
type ApproveHandler struct {
base.BaseHandler
}
func (*ApproveHandler) ListApproves ¶
func (h *ApproveHandler) ListApproves(c *gin.Context)
ListApproves 获取待处理审批 @Tags Approve @Summary 获取待处理审批 @Description 获取待处理审批 @Accept json @Produce json @Success 200 {object} handlers.ResponseStruct{Data=ApprovesList} "ApprovesList" @Router /v1/approve [get] @Security JWT
func (*ApproveHandler) Pass ¶
func (h *ApproveHandler) Pass(c *gin.Context)
Approve 审批通过 @Tags Approve @Summary 审批通过 @Description 审批通过 @Accept json @Produce json @Param id path uint true "tenant resource quota id" @Param param body Approve true "通过的内容" @Success 200 {object} handlers.ResponseStruct{Data=string} "" @Router /v1/approve/{id}/pass [post] @Security JWT
func (*ApproveHandler) RegistRouter ¶
func (h *ApproveHandler) RegistRouter(rg *gin.RouterGroup)
func (*ApproveHandler) Reject ¶
func (h *ApproveHandler) Reject(c *gin.Context)
Approve 审批拒绝 @Tags Approve @Summary 审批拒绝 @Description 审批拒绝 @Accept json @Produce json @Param id path uint true "id" @Success 200 {object} handlers.ResponseStruct{Data=string} "" @Router /v1/approve/{id}/reject [post] @Security JWT
type ApprovesList ¶
type ApprovesList []Approve
func (ApprovesList) Len ¶
func (a ApprovesList) Len() int
func (ApprovesList) Less ¶
func (a ApprovesList) Less(i, j int) bool
func (ApprovesList) Swap ¶
func (a ApprovesList) Swap(i, j int)