pingconfig.go 637 B

12345678910111213141516171819202122232425
  1. package v1
  2. import (
  3. "github.com/gogf/gf/v2/frame/g"
  4. "nodeMonitor/internal/model/entity"
  5. )
  6. type PingConfigGetReq struct {
  7. g.Meta `path:"/get" tags:"get" method:"get" summary:"编辑节点配置"`
  8. }
  9. type PingConfigGetRes struct {
  10. g.Meta `mime:"application/json"`
  11. PingConfig *entity.Pingconfig `json:"nodeList"`
  12. }
  13. type PingConfigEditReq struct {
  14. g.Meta `path:"/edit" tags:"edit" method:"post" summary:"编辑节点配置"`
  15. NodeDie int `p:"nodedie"`
  16. NodeCount int `p:"nodecount"`
  17. NodeLoos int `p:"nodeloos"`
  18. PingTime int `p:"pingtime"`
  19. PingName string `p:"pingname"`
  20. }
  21. type PingConfigEditRes struct {
  22. }