hello.go 296 B

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