entity

package
v0.0.0-...-2f4d8a3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TatoebaSentence

type TatoebaSentence struct {
	SentenceNumber int       `json:"sentenceNumber"`
	Lang2          string    `json:"lang2"`
	Text           string    `json:"text"`
	Author         string    `json:"author"`
	UpdatedAt      time.Time `json:"updatedAt"`
}

type TatoebaSentenceFindParameter

type TatoebaSentenceFindParameter struct {
	PageNo   int    `json:"pageNo" binding:"required,gte=1"`
	PageSize int    `json:"pageSize" binding:"required,gte=1"`
	Keyword  string `json:"keyword"`
	Random   bool   `json:"random"`
}

type TatoebaSentenceFindResponse

type TatoebaSentenceFindResponse struct {
	TotalCount int64                 `json:"totalCount"`
	Results    []TatoebaSentencePair `json:"results"`
}

type TatoebaSentencePair

type TatoebaSentencePair struct {
	Src TatoebaSentence `json:"src"`
	Dst TatoebaSentence `json:"dst"`
}

type Translation

type Translation struct {
	Lang2      string `json:"lang2"`
	Text       string `json:"text"`
	Pos        int    `json:"pos"`
	Translated string `json:"translated"`
	Provider   string `json:"provider"`
}

type TranslationAddParameter

type TranslationAddParameter struct {
	Lang2      string `json:"lang2" binding:"required"`
	Text       string `json:"text" binding:"required"`
	Pos        int    `json:"pos" binding:"required"`
	Translated string `json:"translated" binding:"required"`
}

type TranslationFindParameter

type TranslationFindParameter struct {
	Letter string `json:"letter"`
	Lang2  string `json:"lang2"`
}

type TranslationFindResponse

type TranslationFindResponse struct {
	Results []Translation `json:"results"`
}

type TranslationUpdateParameter

type TranslationUpdateParameter struct {
	Translated string `json:"translated" binding:"required"`
}

Jump to

Keyboard shortcuts

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