remote-msg/api/hello/v1/hello.go

30 lines
612 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"`
Data string `json:"data"`
}
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"`
}