Discover Packages
github.com/kujilabo/cocotola-tatoeba-api
src
app
controller
entity
package
Version:
v0.0.0-...-0799847
Opens a new window with list of versions in this module.
Published: Oct 16, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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 TatoebaSentencePairFindResponse struct {
TotalCount int `json:"totalCount"`
Results []TatoebaSentencePair `json:"results"`
}
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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.