approveHandler

package
v1.21.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Approve

type Approve struct {
	msgbus.ResourceType
	ID          uint // 目前记录的是quota id
	Title       string
	Content     interface{}
	TenantID    uint   `json:",omitempty"`
	TenantName  string `json:",omitempty"`
	ClusterID   uint   `json:",omitempty"`
	ClusterName string `json:",omitempty"`
	CreatedAt   time.Time
	Status      string
}

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)

Jump to

Keyboard shortcuts

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