file.go 343 B

12345678910111213141516
  1. package models
  2. type FileReq struct {
  3. Path string `json:"path"`
  4. Key string `json:"key"`
  5. }
  6. type DeployReq struct {
  7. // 已上传的文件夹根目录
  8. Key string `json:"key"`
  9. NginxId int `json:"nginxId"`
  10. // 部署目录
  11. Dir string `json:"dir"`
  12. // 是否先清空文件夹,再部署
  13. Clear bool `json:"clear"`
  14. }