Discover Packages
github.com/kujilabo/cocotola/cocotola-api
src
plugin
common
controller
entity
package
Version:
v0.0.0-...-2f4d8a3
Opens a new window with list of versions in this module.
Published: Jan 3, 2023
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 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 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 struct {
TotalCount int64 `json:"totalCount"`
Results []TatoebaSentencePair `json:"results"`
}
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 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 struct {
Letter string `json:"letter"`
Lang2 string `json:"lang2"`
}
type TranslationFindResponse struct {
Results []Translation `json:"results"`
}
type TranslationUpdateParameter struct {
Translated string `json:"translated" binding:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.