common_controller

package
v1.2.41 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Captcha

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

func (Captcha) DoHandle

func (this Captcha) DoHandle(ctx *gin.Context) *goio.Response

type Health

type Health struct {
}

func (Health) DoHandle

func (this Health) DoHandle(ctx *gin.Context) *goio.Response

type Login

type Login struct {
	Request struct {
		Account     string `json:"account" binding:"required"`
		Password    string `json:"password" binding:"required"`
		CaptchaId   string `json:"captcha_id" binding:"required"`
		CaptchaCode string `json:"captcha_code" binding:"required"`
	}
	Response LoginResponse
}

func (Login) DoHandle

func (this Login) DoHandle(ctx *gin.Context) *goio.Response

type LoginResponse

type LoginResponse struct {
	Token    string `json:"token"`
	Username string `json:"username"`
	IsSuper  bool   `json:"is_super"`
}

Jump to

Keyboard shortcuts

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