29 lines
583 B
Go
29 lines
583 B
Go
package v1
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
type HelloReq struct {
|
|
g.Meta `path:"/hello" tags:"Hello" method:"get" summary:"You first hello api"`
|
|
}
|
|
type HelloRes struct {
|
|
g.Meta `mime:"text/html" example:"string"`
|
|
}
|
|
|
|
type PostReq struct {
|
|
g.Meta `path:"/post" tags:"Post" method:"post" summary:"You first post api"`
|
|
}
|
|
|
|
type PostRes struct {
|
|
g.Meta `mime:"application/json" example:"string"`
|
|
}
|
|
|
|
type GetReq struct {
|
|
g.Meta `path:"/get" tags:"Get" method:"get" summary:"You first get api"`
|
|
}
|
|
|
|
type GetRes struct {
|
|
g.Meta `mime:"application/json" example:"string"`
|
|
}
|