feat: support local storage (#1383)

* feat: support local storage

* update

* update

* update

* update
This commit is contained in:
Zeng1998
2023-03-19 19:37:57 +08:00
committed by GitHub
parent a21ff5c2e3
commit f3090b115d
10 changed files with 224 additions and 48 deletions

View File

@ -11,6 +11,7 @@ type Resource struct {
// Domain specific fields
Filename string `json:"filename"`
Blob []byte `json:"-"`
InternalPath string `json:"internalPath"`
ExternalLink string `json:"externalLink"`
Type string `json:"type"`
Size int64 `json:"size"`
@ -27,6 +28,7 @@ type ResourceCreate struct {
// Domain specific fields
Filename string `json:"filename"`
Blob []byte `json:"-"`
InternalPath string `json:"internalPath"`
ExternalLink string `json:"externalLink"`
Type string `json:"type"`
Size int64 `json:"-"`