mock

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MockSet = wire.NewSet(
	OrdinarySet,
)

MockSet 注入mock

View Source
var OrdinarySet = wire.NewSet(wire.Struct(new(Ordinary), "*"))

OrdinarySet 注入Ordinary

Functions

This section is empty.

Types

type Ordinary

type Ordinary struct {
}

Ordinary 普通克力金

func (*Ordinary) Grid

func (a *Ordinary) Grid(c *gin.Context)

Query 查询插值生成的网格数据 @Tags 普通克力金 @Summary 查询插值生成的网格数据 @Param body body schema.OrdinaryQueryGridParam true "请求参数" @Success 200 {object} schema.OrdinaryGridInfo "插值的网格数据" @Failure 400 {object} schema.ErrorResult "{error:{code:0,message:无效的请求参数}}" @Failure 500 {object} schema.ErrorResult "{error:{code:0,message:服务器错误}}" @Router /api/v1/ordinary/grid [post]

func (*Ordinary) GridPng

func (a *Ordinary) GridPng(c *gin.Context)

Get 查询插值生成的图片 @Tags 普通克力金 @Summary 查询插值生成图片 @Produce png @Param body body schema.OrdinaryQueryGridPngParam true "请求参数" @Success 200 "文件图片" @Failure 400 {object} schema.ErrorResult "{error:{code:0,message:无效的请求参数}}" @Failure 500 {object} schema.ErrorResult "{error:{code:0,message:服务器错误}}" @Router /api/v1/ordinary/grid-png [post]

Jump to

Keyboard shortcuts

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