zima.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * @Author: LinkLeong link@icewhale.org
  3. * @Date: 2022-05-13 18:15:46
  4. * @LastEditors: LinkLeong
  5. * @LastEditTime: 2022-08-01 18:32:57
  6. * @FilePath: /CasaOS/model/zima.go
  7. * @Description:
  8. * @Website: https://www.casaos.io
  9. * Copyright (c) 2022 by icewhale, All Rights Reserved.
  10. */
  11. package model
  12. import "time"
  13. type Path struct {
  14. Name string `json:"name"` //File name or document name
  15. Path string `json:"path"` //Full path to file or folder
  16. IsDir bool `json:"is_dir"` //Is it a folder
  17. Date time.Time `json:"date"`
  18. Size int64 `json:"size"` //File Size
  19. Type string `json:"type,omitempty"`
  20. Label string `json:"label,omitempty"`
  21. Write bool `json:"write"`
  22. Extensions map[string]interface{} `json:"extensions"`
  23. }
  24. type DeviceInfo struct {
  25. LanIpv4 []string `json:"lan_ipv4"`
  26. Port int `json:"port"`
  27. DeviceName string `json:"device_name"`
  28. DeviceModel string `json:"device_model"`
  29. DeviceSN string `json:"device_sn"`
  30. Initialized bool `json:"initialized"`
  31. OS_Version string `json:"os_version"`
  32. Hash string `json:"hash"`
  33. }