http

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphCreateRequestSchema

type GraphCreateRequestSchema struct {
	Name string `json:"name" validate:"required,max=128"`
}

type GraphHandler

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

func InitGraphHandlers

func InitGraphHandlers(sus domain.GraphUsecase) *GraphHandler

func (*GraphHandler) CreateGraph

func (h *GraphHandler) CreateGraph(c *gin.Context)

func (*GraphHandler) DeleteGraph

func (h *GraphHandler) DeleteGraph(c *gin.Context)

func (*GraphHandler) Detail

func (h *GraphHandler) Detail(c *gin.Context)

func (*GraphHandler) List

func (h *GraphHandler) List(c *gin.Context)

func (*GraphHandler) UpdateGraph

func (h *GraphHandler) UpdateGraph(c *gin.Context)

type GraphUpdateRequestSchema

type GraphUpdateRequestSchema struct {
	Name string `json:"name" validate:"max=128"`
	Type string `json:"type" validate:"max=20"`
}

type Link2WordsRequestSchema

type Link2WordsRequestSchema struct {
	SourceId string `json:"sourceId" validate:"required,max=50"`
	TargetId string `json:"targetId" validate:"required,max=50"`
}

type LinkCreateRequestSchema

type LinkCreateRequestSchema struct {
	Word1Id     string    `json:"word1Id" validate:"required,max=50"`
	Word2Id     string    `json:"word2Id" validate:"required,max=50"`
	Content     string    `json:"content" validate:"required,max=50"`
	Description *string   `json:"description" validate:"omitempty,max=512"`
	Refs        *[]string `json:"refs" validate:"omitempty,dive,required"`
}

type LinkHandler

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

func InitLinkHandlers

func InitLinkHandlers(us domain.LinkUsecase) *LinkHandler
func (h *LinkHandler) CreateLink(c *gin.Context)
func (h *LinkHandler) DeleteLink(c *gin.Context)

func (*LinkHandler) GetDetail

func (h *LinkHandler) GetDetail(c *gin.Context)
func (h *LinkHandler) UpdateLink(c *gin.Context)

type LinkRemoveRequestSchema

type LinkRemoveRequestSchema struct {
	Word1Id string `json:"word1Id" validate:"required,max=50"`
	Word2Id string `json:"word2Id" validate:"required,max=50"`
}

type LinkUpdateRequestSchema

type LinkUpdateRequestSchema struct {
	Content     string    `json:"content" validate:"required,max=50"`
	Description *string   `json:"description" validate:"omitempty,max=512"`
	Refs        *[]string `json:"refs" validate:"omitempty,dive,required"`
}

type WordCreateRequestSchema

type WordCreateRequestSchema struct {
	Content     string    `json:"content" validate:"required,max=50"`
	Description *string   `json:"description" validate:"omitempty,max=512"`
	Refs        *[]string `json:"refs" validate:"omitempty,dive,required"`
	GraphId     string    `json:"graphId" validate:"required,max=50"`
	SourceId    *string   `json:"sourceId" validate:"omitempty,max=50"`
}

type WordHandler

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

func InitWordHandlers

func InitWordHandlers(wus domain.WordUsecase) *WordHandler

func (*WordHandler) CreateWord

func (h *WordHandler) CreateWord(c *gin.Context)

func (*WordHandler) DeleteWord

func (h *WordHandler) DeleteWord(c *gin.Context)

func (*WordHandler) FindPath

func (h *WordHandler) FindPath(c *gin.Context)

func (*WordHandler) GetGraphData

func (h *WordHandler) GetGraphData(c *gin.Context)

func (*WordHandler) GetWordDetail

func (h *WordHandler) GetWordDetail(c *gin.Context)

func (*WordHandler) Link2Words

func (h *WordHandler) Link2Words(c *gin.Context)

func (*WordHandler) SearchWord

func (h *WordHandler) SearchWord(c *gin.Context)

func (*WordHandler) UpdateWord

func (h *WordHandler) UpdateWord(c *gin.Context)

type WordUpdateRequestSchema

type WordUpdateRequestSchema struct {
	Content     string    `json:"content" validate:"required,max=50"`
	Description *string   `json:"description" validate:"omitempty,max=512"`
	Refs        *[]string `json:"refs" validate:"omitempty,dive,required"`
}

Jump to

Keyboard shortcuts

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