content

package
v0.0.0-...-533d78a Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialogue

type Dialogue struct {
	ID       ulid.ULID `json:"id"`
	PageID   ulid.ULID `json:"page_id"`
	Dialogue string    `json:"dialogue"`
	Top      float64   `json:"top"`
	Bottom   float64   `json:"bottom"`
	Left     float64   `json:"left"`
	Right    float64   `json:"right"`
}

type DialogueHandler

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

func NewDialogueHandler

func NewDialogueHandler(repo repository.DialogueRepository) *DialogueHandler

func (*DialogueHandler) DeleteDialogue

func (h *DialogueHandler) DeleteDialogue(c echo.Context) error

func (*DialogueHandler) PatchDialogue

func (h *DialogueHandler) PatchDialogue(c echo.Context) error

func (*DialogueHandler) PostDialogue

func (h *DialogueHandler) PostDialogue(c echo.Context) error

type Line

type Line struct {
	ID      ulid.ULID `json:"id"`
	PageID  ulid.ULID `json:"page_id"`
	PenSize int       `json:"penSize"`
	Points  []Point   `json:"points"`
}

type LineHandler

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

func NewLineHandler

func NewLineHandler(repo repository.LineRepository) *LineHandler

func (*LineHandler) DeleteLine

func (h *LineHandler) DeleteLine(c echo.Context) error

func (*LineHandler) PostLine

func (h *LineHandler) PostLine(c echo.Context) error

type PatchDialogueRequest

type PatchDialogueRequest struct {
	Dialogue string  `json:"dialogue"`
	Top      float64 `json:"top"`
	Bottom   float64 `json:"bottom"`
	Left     float64 `json:"left"`
	Right    float64 `json:"right"`
}

type PatchDialogueResponse

type PatchDialogueResponse Dialogue

type Point

type Point struct {
	X        float64 `json:"x"`
	Y        float64 `json:"y"`
	Pressure float64 `json:"pressure"`
}

type PostDialogueRequest

type PostDialogueRequest struct {
	PageID   ulid.ULID `json:"page_id"`
	Dialogue string    `json:"dialogue"`
	Top      float64   `json:"top"`
	Bottom   float64   `json:"bottom"`
	Left     float64   `json:"left"`
	Right    float64   `json:"right"`
}

type PostDialogueResponse

type PostDialogueResponse Dialogue

type PostLineRequest

type PostLineRequest struct {
	PageID  ulid.ULID `json:"page_id"`
	PenSize int       `json:"penSize"`
	Points  []Point   `json:"points"`
}

type PostLineResponse

type PostLineResponse Line

Jump to

Keyboard shortcuts

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