adminV1

package
v0.0.0-...-bf4de7e Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 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 DeleteListReq

type DeleteListReq struct {
	g.Meta `path:"/hitokoto" method:"DELETE" summary:"批量删除句子" tags:"句子"`
	UUIDs  []string `json:"uuids" dc:"句子 UUID" v:"required|length:1,100" in:"query"`
}

type DeleteListRes

type DeleteListRes struct{}

type GetListReq

type GetListReq struct {
	g.Meta `path:"/hitokoto" method:"GET" summary:"获取句子列表" tags:"句子"`
	model.GetHitokotoV1SchemaListInput
}

GetListReq 获取句子列表

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 MoveListRes struct {
	IsSuccess   bool        `json:"is_success"`
	Total       int         `json:"total"`
	FailedUUIDs []string    `json:"failed_uuids"`
	FailedDesc  g.MapStrStr `json:"failed_desc"`
}

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{}

Jump to

Keyboard shortcuts

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