controllers

package
v0.0.0-...-0b4b916 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ResultPool *sync.Pool

Functions

func Created

func Created(c *gin.Context, v interface{}) interface{}

func Error

func Error(c *gin.Context, v interface{}) interface{}

func GetAuthUser

func GetAuthUser(c *gin.Context) *UserModel.UserImpl

func OK

func OK(c *gin.Context, v interface{}) interface{}

func Test

func Test(c *gin.Context)

func Unauthorized

func Unauthorized(c *gin.Context, v interface{}) interface{}

Types

type AuthController

type AuthController struct {
	// contains filtered or unexported fields
}

func NewAuthController

func NewAuthController(userService *service.IUserServiceGetterImpl) *AuthController

func (*AuthController) Build

func (a *AuthController) Build(r *gin.RouterGroup)

func (*AuthController) GetMe

func (a *AuthController) GetMe(c *gin.Context)

func (*AuthController) Login

func (this *AuthController) Login(c *gin.Context)

func (*AuthController) SignUp

func (a *AuthController) SignUp(c *gin.Context)

type ConfigMapController

type ConfigMapController struct {
	// contains filtered or unexported fields
}

func NewConfigMapController

func NewConfigMapController(configService *service.ConfigmapService) *ConfigMapController

func (*ConfigMapController) Build

func (this *ConfigMapController) Build(r *gin.RouterGroup)

func (*ConfigMapController) ListAll

func (this *ConfigMapController) ListAll(c *gin.Context)

type DeploymentController

type DeploymentController struct {
	// contains filtered or unexported fields
}

func ProviderDeploymentController

func ProviderDeploymentController(deploymentService *service.DeploymentService) *DeploymentController

func (*DeploymentController) Build

func (this *DeploymentController) Build(r *gin.RouterGroup)

func (*DeploymentController) GetPodContainer

func (this *DeploymentController) GetPodContainer(c *gin.Context)

type JSONResult

type JSONResult struct {
	Message string      `json:"message"`
	Code    int8        `json:"code"`
	Result  interface{} `json:"result"`
	Token   string      `json:"token"`
}

func NewJSONResult

func NewJSONResult(result interface{}) *JSONResult

type Output

type Output func(c *gin.Context, v interface{}) interface{}

type ResultFunc

type ResultFunc func(result interface{}, message string) func(output Output) interface{}

func ResultWrapper

func ResultWrapper(c *gin.Context) ResultFunc

type SecretController

type SecretController struct {
	// contains filtered or unexported fields
}

func NewSecretController

func NewSecretController(secretService service.ISecret) *SecretController

func (*SecretController) Build

func (this *SecretController) Build(r *gin.RouterGroup)

type TestUserReq

type TestUserReq struct {
	ID          string `validate:"required" json:"id"`
	UserID      string `json:"-"`
	CanDelete   bool   `json:"-"`
	CaptchaID   string `json:"captcha_id"`
	CaptchaCode string `json:"captcha_code"`
}

type UserController

type UserController struct {
	// contains filtered or unexported fields
}

func ProviderUserController

func ProviderUserController(userService *service.IUserServiceGetterImpl) *UserController

func (*UserController) Build

func (this *UserController) Build(r *gin.RouterGroup)

Build Build方法

func (*UserController) UserDetail

func (this *UserController) UserDetail(c *gin.Context)

func (*UserController) UserList

func (this *UserController) UserList(c *gin.Context)

Jump to

Keyboard shortcuts

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