controllers

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController added in v0.1.4

type AuthController struct {
	BaseController
}

AuthController 认证控制器

func NewAuthController added in v0.1.4

func NewAuthController() *AuthController

func (*AuthController) Auth added in v0.1.4

func (c *AuthController) Auth(ctx *gin.Context)

Auth 认证

func (*AuthController) Info added in v0.1.4

func (c *AuthController) Info(ctx *gin.Context)

Info 登录用户信息

type BaseController

type BaseController struct {
}

func (*BaseController) ResponseJson

func (*BaseController) ResponseJson(ctx *gin.Context, code int, errorMsg string, data interface{})

type ChatController

type ChatController struct {
	BaseController
}

ChatController 首页控制器

func NewChatController

func NewChatController() *ChatController

NewChatController 创建控制器

func (*ChatController) Completion

func (c *ChatController) Completion(ctx *gin.Context)

Completion 回复

func (*ChatController) Index

func (c *ChatController) Index(ctx *gin.Context)

Index 首页

Jump to

Keyboard shortcuts

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