nodeconfig.go 773 B

123456789101112131415161718192021222324252627282930
  1. package v1
  2. import "github.com/gogf/gf/v2/frame/g"
  3. type NodeConfigReq struct {
  4. g.Meta `path:"/add" tags:"add" method:"get" summary:"添加节点SSH配置"`
  5. ServerId int `p:"serverid"`
  6. SshCom string `p:"sshcom"`
  7. SshPass string `p:"sshpass"`
  8. SshUser string `p:"sshuser"`
  9. }
  10. type NodeConfigRes struct {
  11. }
  12. type NodeConfigEditReq struct {
  13. g.Meta `path:"/edit" tags:"edit" method:"get" 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 NodeConfigEditRes struct {
  20. }
  21. type NodeConfigDeleteReq struct {
  22. g.Meta `path:"/delete" tags:"delete" method:"get" summary:"删除SSH配置"`
  23. ServerId int `p:"serverid"`
  24. }
  25. type NodeConfigDeleteRes struct {
  26. }