阶段性提交

This commit is contained in:
GoEdgeLab
2020-09-16 09:09:31 +08:00
parent aa86446f4f
commit 1648192e73
24 changed files with 2156 additions and 317 deletions

View File

@@ -1,5 +1,7 @@
package shared
import "encoding/json"
type SizeCapacityUnit = string
const (
@@ -28,3 +30,7 @@ func (this *SizeCapacity) Bytes() int64 {
return this.Count
}
}
func (this *SizeCapacity) AsJSON() ([]byte, error) {
return json.Marshal(this)
}