Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteListReq ¶
type DeleteListRes ¶
type DeleteListRes struct{}
type GetListReq ¶
type GetListReq struct { g.Meta `path:"/hitokoto" method:"GET" summary:"获取句子列表" tags:"句子"` model.GetHitokotoV1SchemaListInput }
GetListReq 获取句子列表
type GetListRes ¶
type GetListRes model.GetHitokotoV1SchemaListOutput
type MoveListReq ¶
type MoveListReq struct { g.Meta `path:"/hitokoto/move" method:"POST" summary:"移动句子" tags:"句子"` UUIDs []string `json:"uuids" dc:"句子 UUID" v:"required|length:1,100"` Target consts.HitokotoStatus `json:"target" dc:"目标状态" v:"required|in:pending,approved,rejected" in:"query"` }
type MoveListRes ¶
type MoveSentenceReq ¶
type MoveSentenceReq struct { g.Meta `path:"/hitokoto/:uuid" method:"POST" summary:"移动句子" tags:"句子"` UUID string `` //nolint:lll /* 174-byte string literal not displayed */ Target consts.HitokotoStatus `json:"target" dc:"目标状态" v:"required|in:pending,approved,rejected" in:"query"` }
type MoveSentenceRes ¶
type MoveSentenceRes struct{}
type UpdateOneReq ¶
type UpdateOneReq struct { g.Meta `path:"/hitokoto/:uuid" method:"PUT" summary:"更新句子" tags:"句子"` UUID string `` //nolint:lll /* 174-byte string literal not displayed */ // 句子相关 model.DoHitokotoV1Update }
type UpdateOneRes ¶
type UpdateOneRes struct{}
Click to show internal directories.
Click to hide internal directories.