mirror of
https://github.com/usememos/memos.git
synced 2024-12-20 01:31:29 +03:00
23 lines
538 B
Go
23 lines
538 B
Go
package api
|
|
|
|
type Resource struct {
|
|
ID int `json:"id"`
|
|
|
|
// Standard fields
|
|
CreatorID int `json:"creatorId"`
|
|
CreatedTs int64 `json:"createdTs"`
|
|
UpdatedTs int64 `json:"updatedTs"`
|
|
|
|
// Domain specific fields
|
|
Filename string `json:"filename"`
|
|
Blob []byte `json:"-"`
|
|
InternalPath string `json:"-"`
|
|
ExternalLink string `json:"externalLink"`
|
|
Type string `json:"type"`
|
|
Size int64 `json:"size"`
|
|
PublicID string `json:"publicId"`
|
|
|
|
// Related fields
|
|
LinkedMemoAmount int `json:"linkedMemoAmount"`
|
|
}
|