handler

package
v0.0.0-...-ca21e7b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

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

func NewAuthHandler

func NewAuthHandler(authService service.AuthService) *AuthHandler

func (*AuthHandler) Login

func (h *AuthHandler) Login(c *gin.Context)

Login handles user login

func (*AuthHandler) Logout

func (h *AuthHandler) Logout(c *gin.Context)

Logout handles user logout

func (*AuthHandler) RefreshToken

func (h *AuthHandler) RefreshToken(c *gin.Context)

RefreshToken handles token refresh

func (*AuthHandler) Register

func (h *AuthHandler) Register(c *gin.Context)

Register handles user registration

type MapHandler

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

func NewMapHandler

func NewMapHandler(mapService *service.MapService) *MapHandler

func (*MapHandler) CreateMap

func (h *MapHandler) CreateMap(c *gin.Context)

CreateMap handles the creation of a new mind map

func (*MapHandler) DeleteMap

func (h *MapHandler) DeleteMap(c *gin.Context)

DeleteMap handles deleting a mind map

func (*MapHandler) GetMap

func (h *MapHandler) GetMap(c *gin.Context)

GetMap handles retrieving a specific mind map

func (*MapHandler) ListMaps

func (h *MapHandler) ListMaps(c *gin.Context)

ListMaps handles retrieving a list of mind maps

func (*MapHandler) UpdateMap

func (h *MapHandler) UpdateMap(c *gin.Context)

UpdateMap handles updating a mind map

type NodeHandler

type NodeHandler struct {
	NodeService          *service.NodeService
	ConclusionService    *service.ConclusionService
	DecompositionService *service.DecompositionService
}

NodeHandler 节点相关接口

func NewNodeHandler

func NewNodeHandler(nodeService *service.NodeService, conclusionService *service.ConclusionService, decompositionService *service.DecompositionService) *NodeHandler

func (*NodeHandler) CreateNode

func (h *NodeHandler) CreateNode(c *gin.Context)

CreateNode handles creating a new node

func (*NodeHandler) DeleteNode

func (h *NodeHandler) DeleteNode(c *gin.Context)

DeleteNode handles deleting a node

func (*NodeHandler) ExecutableNodes

func (h *NodeHandler) ExecutableNodes(c *gin.Context)

ExecutableNodes handles retrieving executable nodes in a map

func (*NodeHandler) GetNodeMessages

func (h *NodeHandler) GetNodeMessages(c *gin.Context)

func (*NodeHandler) ListNodes

func (h *NodeHandler) ListNodes(c *gin.Context)

ListNodes handles retrieving all nodes in a map

func (*NodeHandler) ResetConclusion

func (h *NodeHandler) ResetConclusion(c *gin.Context)

ResetConclusion handles resetting a conclusion

func (*NodeHandler) ResetDecomposition

func (h *NodeHandler) ResetDecomposition(c *gin.Context)

ResetDecomposition handles resetting a decomposition

func (*NodeHandler) ResetNodeContext

func (h *NodeHandler) ResetNodeContext(c *gin.Context)

ResetNodeContext handles resetting a node's context

func (*NodeHandler) SaveConclusion

func (h *NodeHandler) SaveConclusion(c *gin.Context)

SaveConclusion handles saving a conclusion

func (*NodeHandler) UpdateNode

func (h *NodeHandler) UpdateNode(c *gin.Context)

UpdateNode handles updating a node

func (*NodeHandler) UpdateNodeContext

func (h *NodeHandler) UpdateNodeContext(c *gin.Context)

type SSEHandler

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

func NewSSEHandler

func NewSSEHandler(broker *sse.Broker, mapRepo repository.ThinkingMap) *SSEHandler

func (*SSEHandler) Connect

func (h *SSEHandler) Connect(c *gin.Context)

Connect handles SSE connection requests, with map ownership check

func (*SSEHandler) SendEvent

func (h *SSEHandler) SendEvent(c *gin.Context)

SendEvent handles SSE test event requests

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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