v1

package
v0.0.0-...-8af6e0c Latest Latest
Warning

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

Go to latest
Published: Dec 20, 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 CreReq

type CreReq struct {
	g.Meta `path:"tag/create" method:"post" sm:"新增" tags:"标签"`
	GrpId  model.Id `json:"grpId" v:"required|integer|between:1,4294967295"`
	Name   string   `json:"name" v:"required|length:1, 30"`
}

type CreRes

type CreRes struct {
}

type DelReq

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

type DelRes

type DelRes struct {
}

type List

type List struct {
	Id   model.Id `json:"id"`
	Name string   `json:"name"`
}

type ListReq

type ListReq struct {
	g.Meta `path:"tag/list" method:"get" sm:"查询列表" tags:"标签"`
	GrpId  model.Id `json:"grpId" v:"required|integer|between:1,4294967295"`
}

type ListRes

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

type ShowReq

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

type ShowRes

type ShowRes struct {
	*entity.Tag
}

type UpdReq

type UpdReq struct {
	g.Meta `path:"tag/update/{id}" method:"post" sm:"修改" tags:"标签"`
	*model.IdInput
	GrpId model.Id `json:"grpId" v:"required|integer|between:1,4294967295"`
	Name  string   `json:"name" v:"required|length:1, 30"`
}

type UpdRes

type UpdRes struct {
}

Jump to

Keyboard shortcuts

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