controllers

package
v0.0.0-...-f628922 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
	BaseController
}

AuthController 认证控制器

func NewAuthController

func NewAuthController() *AuthController

func (*AuthController) Auth

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

Auth 认证

func (*AuthController) Info

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