nodeconfig.go 974 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package v1
  2. import (
  3. "github.com/gogf/gf/v2/frame/g"
  4. "nodeMonitor/internal/model"
  5. )
  6. type NodeConfigAllReq struct {
  7. g.Meta `path:"/all" tags:"all" method:"get" summary:"获取全部"`
  8. }
  9. type NodeConfigAllRes struct {
  10. NodeConfigItem []*model.NodeConfigItem
  11. }
  12. type NodeConfigReq struct {
  13. g.Meta `path:"/add" tags:"add" method:"post" summary:"添加节点SSH配置"`
  14. ServerId int `p:"serverid"`
  15. SshCom string `p:"sshcom"`
  16. SshPass string `p:"sshpass"`
  17. SshUser string `p:"sshuser"`
  18. }
  19. type NodeConfigRes struct {
  20. }
  21. type NodeConfigEditReq struct {
  22. g.Meta `path:"/edit" tags:"edit" method:"post" summary:"编辑节点SSH配置"`
  23. ServerId int `p:"serverid"`
  24. SshCom string `p:"sshcom"`
  25. SshPass string `p:"sshpass"`
  26. SshUser string `p:"sshuser"`
  27. }
  28. type NodeConfigEditRes struct {
  29. }
  30. type NodeConfigDelReq struct {
  31. g.Meta `path:"/del" tags:"del" method:"post" summary:"删除SSH配置"`
  32. ServerId int `p:"serverid"`
  33. }
  34. type NodeConfigDelRes struct {
  35. }