sels

package
v1.24.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationSel

type ApplicationSel struct {
	ID              uint
	ApplicationName string
}

type EnvironmentSel

type EnvironmentSel struct {
	ID              uint
	EnvironmentName string
}

type ProjectSel

type ProjectSel struct {
	ID          uint
	ProjectName string
}

type SelsHandler

type SelsHandler struct {
	base.BaseHandler
}

func (*SelsHandler) ApplicationSels

func (h *SelsHandler) ApplicationSels(c *gin.Context)

@Tags Sels @Summary application sels @Description application sels @Accept json @Produce json @Param project_id query string false "project_id" @Success 200 {object} handlers.ResponseStruct{Data=handlers.PageData{List=[]ApplicationSel}} "data" @Router /v1/sels/applications [get] @Security JWT

func (*SelsHandler) EnvironmentSels

func (h *SelsHandler) EnvironmentSels(c *gin.Context)

@Tags Sels @Summary environment sels @Description environment sels @Accept json @Produce json @Param tenant_id query string false "tenant_id" @Success 200 {object} handlers.ResponseStruct{Data=handlers.PageData{List=[]EnvironmentSel}} "data" @Router /v1/sels/environments [get] @Security JWT

func (*SelsHandler) ProjectSels

func (h *SelsHandler) ProjectSels(c *gin.Context)

@Tags Sels @Summary project sels @Description project sels @Accept json @Produce json @Param tenant_id query string false "tenant_id" @Success 200 {object} handlers.ResponseStruct{Data=handlers.PageData{List=[]ProjectSel}} "data" @Router /v1/sels/projects [get] @Security JWT

func (*SelsHandler) RegistRouter

func (h *SelsHandler) RegistRouter(rg *gin.RouterGroup)

func (*SelsHandler) TenantSels

func (h *SelsHandler) TenantSels(c *gin.Context)

@Tags Sels @Summary tenant sels @Description tenant sels @Accept json @Produce json @Param all query string false "是否全部,默认(false),只有激活的" @Success 200 {object} handlers.ResponseStruct{Data=handlers.PageData{List=[]TenantSel}} "data" @Router /v1/sels/tenants [get] @Security JWT

func (*SelsHandler) UserSels

func (h *SelsHandler) UserSels(c *gin.Context)

@Tags Sels @Summary user sels @Description user sels @Accept json @Produce json @Param tenant_id query string false "tenant_id" @Param all query string false "all" @Success 200 {object} handlers.ResponseStruct{Data=handlers.PageData{List=[]UserSel}} "data" @Router /v1/sels/users [get] @Security JWT

type TenantSel

type TenantSel struct {
	ID         uint
	TenantName string
	IsActive   bool
	Clusters   []string `gorm:"-"`
}

type UserSel

type UserSel struct {
	ID       uint
	Username string
	Email    string
	IsActive bool
}

Jump to

Keyboard shortcuts

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