controller

package
v0.0.0-...-82d1dcb Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatController

type ChatController interface {
	SendMessage(c *gin.Context)
	GetChatHistory(c *gin.Context)
}

ChatController 定义聊天控制器接口

func NewChatController

func NewChatController(chatService service.ChatService) ChatController

NewChatController 创建聊天控制器实例

type HealthController

type HealthController interface {
	Check(c *gin.Context)
}

HealthController defines the health check controller interface

func NewHealthController

func NewHealthController() HealthController

NewHealthController creates a new health check controller instance

type UserController

type UserController interface {
	Register(c *gin.Context)
	Login(c *gin.Context)
	SendVerificationCode(c *gin.Context)
}

UserController defines the user controller interface

func NewUserController

func NewUserController(userService service.UserService, verificationService service.VerificationService) UserController

NewUserController creates a new user controller instance

Jump to

Keyboard shortcuts

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