package
Version:
v0.0.0-...-70948f9
Opens a new window with list of versions in this module.
Published: Jan 15, 2025
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type CreReq struct {
g.Meta `path:"sentence/create" method:"post" sm:"新增" tags:"句子"`
BookId model.Id `json:"book_id" v:"required"`
TagIds []model.Id `json:"tag_ids"`
Sentence string `json:"sentence" v:"required"`
}
type DelReq struct {
g.Meta `path:"sentence/delete/{id}" method:"post" sm:"删除" tags:"句子"`
*model.IdInput
}
type List struct {
Id model.Id `json:"id"`
BookId model.Id `json:"book_id"`
Sentence string `json:"sentence"`
}
type ListReq struct {
g.Meta `path:"sentence/list" method:"get" sm:"查询列表" tags:"句子"`
*model.Paging
BookId model.Id `json:"book_id" dc:"书籍id"`
TagIds []model.Id `json:"tag_ids" dc:"标签id"`
Search string `json:"search" dc:"搜索文本"`
}
type ListRes struct {
List []List `json:"list"`
Total uint `json:"total"`
}
type ShowReq struct {
g.Meta `path:"sentence/show/{id}" method:"get" sm:"查询详情" tags:"句子"`
*model.IdInput
}
type UpdReq struct {
g.Meta `path:"sentence/update/{id}" method:"post" sm:"修改" tags:"句子"`
*model.IdInput
BookId model.Id `json:"book_id" v:"required"`
TagIds []model.Id `json:"tag_ids"`
Sentence string `json:"sentence" v:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.