hello.go 236 B

123456789101112
  1. package v1
  2. import (
  3. "github.com/gogf/gf/v2/frame/g"
  4. )
  5. type HelloReq struct {
  6. g.Meta `path:"/hello" tags:"Hello" method:"get" summary:"You first hello api"`
  7. }
  8. type HelloRes struct {
  9. g.Meta `mime:"application/json" example:"json"`
  10. }