api

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QuerySet

type QuerySet struct {
	Total int64       `json:"total"`
	Items []user.User `json:"items"`
}

QuerySet go-restful 的文档模式不支持泛型,所以这里额外进行定义

type UserRestfulApiHandler

type UserRestfulApiHandler struct {
	ioc.ObjectImpl
	// contains filtered or unexported fields
}

func (*UserRestfulApiHandler) CreateUser

func (h *UserRestfulApiHandler) CreateUser(r *restful.Request, w *restful.Response)

CreateUser 创建用户API

func (*UserRestfulApiHandler) Init

func (h *UserRestfulApiHandler) Init() error

func (*UserRestfulApiHandler) Name

func (h *UserRestfulApiHandler) Name() string

func (*UserRestfulApiHandler) QueryUser

func (h *UserRestfulApiHandler) QueryUser(r *restful.Request, w *restful.Response)

QueryUser 查询用户 api ?user_id=1&user_id=2&user_id=3

Jump to

Keyboard shortcuts

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