v1

package
v0.0.0-...-70948f9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreReq

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 CreRes

type CreRes struct {
}

type DelReq

type DelReq struct {
	g.Meta `path:"sentence/delete/{id}" method:"post" sm:"删除" tags:"句子"`
	*model.IdInput
}

type DelRes

type DelRes struct {
}

type List

type List struct {
	Id       model.Id `json:"id"`
	BookId   model.Id `json:"book_id"`
	Sentence string   `json:"sentence"`
}

type ListReq

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

type ListRes struct {
	List  []List `json:"list"`
	Total uint   `json:"total"`
}

type ShowReq

type ShowReq struct {
	g.Meta `path:"sentence/show/{id}" method:"get" sm:"查询详情" tags:"句子"`
	*model.IdInput
}

type ShowRes

type ShowRes struct {
	*entity.Sentence
	TagList []entity.Tag `json:"tag_list"`
}

type UpdReq

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"`
}

type UpdRes

type UpdRes struct {
}

Jump to

Keyboard shortcuts

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