entity

package
v0.0.0-...-04b3042 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 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 TatoebaSentencePair

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

type TatoebaSentencePairFindResponse

type TatoebaSentencePairFindResponse struct {
	TotalCount int                   `json:"totalCount"`
	Results    []TatoebaSentencePair `json:"results"`
}

type TatoebaSentenceResponse

type TatoebaSentenceResponse struct {
	SentenceNumber int       `json:"sentenceNumber"`
	Lang2          string    `json:"lang2" binding:"len=2" validate:"oneof=ja en"`
	Text           string    `json:"text"`
	Author         string    `json:"author"`
	UpdatedAt      time.Time `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

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