Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何在get请求的query中增加数组类型的参数 #1

Open
DyncKevin opened this issue Apr 3, 2019 · 0 comments
Open

如何在get请求的query中增加数组类型的参数 #1

DyncKevin opened this issue Apr 3, 2019 · 0 comments

Comments

@DyncKevin
Copy link

hi, 如题

一个get请求,参数类型为int数组,使用swag是,@param如何写
type ParamTypeIds struct {
TypeIds []int json:"typeIds"
}
这种类型的参数,如何写@param

我自己写的是

// @param default query controllers.ParamTypeIds true "get data type by id"

但是在页面上请求会报错.
我在swag的issue和swaggo的API Operation文档里也没找到例子该如何写

麻烦您给指点一下,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant