page

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"`
	Dialogue string    `json:"dialogue"`
	Top      float64   `json:"top"`
	Bottom   float64   `json:"bottom"`
	Left     float64   `json:"left"`
	Right    float64   `json:"right"`
}

type GetPageResponse

type GetPageResponse PageWithContents

type Line

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

type Page

type Page struct {
	ID        ulid.ULID `json:"id"`
	ProjectID ulid.ULID `json:"project_id"`
	Index     int       `json:"index"`
	Height    int       `json:"height"`
	Width     int       `json:"width"`
}

type PageHandler

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

func (*PageHandler) GetPage

func (h *PageHandler) GetPage(c echo.Context) error

func (*PageHandler) PatchIndex

func (h *PageHandler) PatchIndex(c echo.Context) error

func (*PageHandler) PostPage

func (h *PageHandler) PostPage(c echo.Context) error

type PageWithContents

type PageWithContents struct {
	ID        ulid.ULID  `json:"id"`
	ProjectID ulid.ULID  `json:"project_id"`
	Index     int        `json:"index"`
	Height    int        `json:"height"`
	Width     int        `json:"width"`
	Lines     []Line     `json:"lines"`
	Dialogues []Dialogue `json:"dialogues"`
}

type PatchIndexRequest

type PatchIndexRequest struct {
	// Operationは"inc"(加算)か"dec"(減算)のみを許可する
	Operation string `json:"operation"`
}

type PatchIndexResponse

type PatchIndexResponse []Page

更新したページ一覧を返却する

type Point

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

type PostPageRequest

type PostPageRequest struct {
	ProjectID ulid.ULID `json:"project_id"`
	Height    int       `json:"height"`
	Width     int       `json:"width"`
}

type PostPageResponse

type PostPageResponse Page

Jump to

Keyboard shortcuts

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