Documentation ¶
Index ¶
- type GraphCreateRequestSchema
- type GraphHandler
- type GraphUpdateRequestSchema
- type Link2WordsRequestSchema
- type LinkCreateRequestSchema
- type LinkHandler
- type LinkRemoveRequestSchema
- type LinkUpdateRequestSchema
- type WordCreateRequestSchema
- type WordHandler
- func (h *WordHandler) CreateWord(c *gin.Context)
- func (h *WordHandler) DeleteWord(c *gin.Context)
- func (h *WordHandler) FindPath(c *gin.Context)
- func (h *WordHandler) GetGraphData(c *gin.Context)
- func (h *WordHandler) GetWordDetail(c *gin.Context)
- func (h *WordHandler) Link2Words(c *gin.Context)
- func (h *WordHandler) SearchWord(c *gin.Context)
- func (h *WordHandler) UpdateWord(c *gin.Context)
- type WordUpdateRequestSchema
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 Link2WordsRequestSchema ¶
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 (*LinkHandler) CreateLink ¶
func (h *LinkHandler) CreateLink(c *gin.Context)
func (*LinkHandler) DeleteLink ¶
func (h *LinkHandler) DeleteLink(c *gin.Context)
func (*LinkHandler) GetDetail ¶
func (h *LinkHandler) GetDetail(c *gin.Context)
func (*LinkHandler) UpdateLink ¶
func (h *LinkHandler) UpdateLink(c *gin.Context)
type LinkRemoveRequestSchema ¶
type LinkUpdateRequestSchema ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.