mirror of
https://gitee.com/johng/gf
synced 2026-06-22 16:14:26 +08:00
add golangci feature to guarantee codes quality (#2229)
This commit is contained in:
@ -9,6 +9,7 @@ import (
|
||||
type Req struct {
|
||||
g.Meta `path:"/user" method:"get"`
|
||||
}
|
||||
|
||||
type Res []Item
|
||||
|
||||
type Item struct {
|
||||
|
||||
@ -12,6 +12,7 @@ type HelloReq struct {
|
||||
g.Meta `path:"/hello" method:"get" sort:"1"`
|
||||
Name string `v:"required" dc:"Your name"`
|
||||
}
|
||||
|
||||
type HelloRes struct {
|
||||
Reply string `dc:"Reply content"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user