mirror of
https://github.com/usememos/memos.git
synced 2024-12-20 01:31:29 +03:00
1e4a81dea9
* feat: storage service backend * update go.mod * update the column name (urlPrefix -> url_prefix) * update * update
49 lines
1.2 KiB
Go
49 lines
1.2 KiB
Go
package api
|
|
|
|
type Storage struct {
|
|
ID int `json:"id"`
|
|
CreatorID int `json:"creatorId"`
|
|
CreatedTs int64 `json:"createdTs"`
|
|
UpdatedTs int64 `json:"updatedTs"`
|
|
Name string `json:"name"`
|
|
EndPoint string `json:"endPoint"`
|
|
Region string `json:"region"`
|
|
AccessKey string `json:"accessKey"`
|
|
SecretKey string `json:"secretKey"`
|
|
Bucket string `json:"bucket"`
|
|
URLPrefix string `json:"urlPrefix"`
|
|
}
|
|
|
|
type StorageCreate struct {
|
|
CreatorID int `json:"creatorId"`
|
|
Name string `json:"name"`
|
|
EndPoint string `json:"endPoint"`
|
|
Region string `json:"region"`
|
|
AccessKey string `json:"accessKey"`
|
|
SecretKey string `json:"secretKey"`
|
|
Bucket string `json:"bucket"`
|
|
URLPrefix string `json:"urlPrefix"`
|
|
}
|
|
|
|
type StoragePatch struct {
|
|
ID int `json:"id"`
|
|
UpdatedTs *int64
|
|
Name *string `json:"name"`
|
|
EndPoint *string `json:"endPoint"`
|
|
Region *string `json:"region"`
|
|
AccessKey *string `json:"accessKey"`
|
|
SecretKey *string `json:"secretKey"`
|
|
Bucket *string `json:"bucket"`
|
|
URLPrefix *string `json:"urlPrefix"`
|
|
}
|
|
|
|
type StorageFind struct {
|
|
ID *int `json:"id"`
|
|
Name *string `json:"name"`
|
|
CreatorID *int `json:"creatorId"`
|
|
}
|
|
|
|
type StorageDelete struct {
|
|
ID int `json:"id"`
|
|
}
|