2023-02-11 15:31:39 +03:00
|
|
|
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"`
|
2023-02-13 14:36:48 +03:00
|
|
|
Region string `json:"region"`
|
2023-02-11 15:31:39 +03:00
|
|
|
AccessKey string `json:"accessKey"`
|
|
|
|
SecretKey string `json:"secretKey"`
|
|
|
|
Bucket string `json:"bucket"`
|
2023-02-13 14:36:48 +03:00
|
|
|
URLPrefix string `json:"urlPrefix"`
|
2023-02-11 15:31:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type StorageCreate struct {
|
|
|
|
CreatorID int `json:"creatorId"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
EndPoint string `json:"endPoint"`
|
2023-02-13 14:36:48 +03:00
|
|
|
Region string `json:"region"`
|
2023-02-11 15:31:39 +03:00
|
|
|
AccessKey string `json:"accessKey"`
|
|
|
|
SecretKey string `json:"secretKey"`
|
|
|
|
Bucket string `json:"bucket"`
|
2023-02-13 14:36:48 +03:00
|
|
|
URLPrefix string `json:"urlPrefix"`
|
2023-02-11 15:31:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type StoragePatch struct {
|
|
|
|
ID int `json:"id"`
|
|
|
|
UpdatedTs *int64
|
|
|
|
Name *string `json:"name"`
|
|
|
|
EndPoint *string `json:"endPoint"`
|
2023-02-13 14:36:48 +03:00
|
|
|
Region *string `json:"region"`
|
2023-02-11 15:31:39 +03:00
|
|
|
AccessKey *string `json:"accessKey"`
|
|
|
|
SecretKey *string `json:"secretKey"`
|
|
|
|
Bucket *string `json:"bucket"`
|
2023-02-13 14:36:48 +03:00
|
|
|
URLPrefix *string `json:"urlPrefix"`
|
2023-02-11 15:31:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type StorageFind struct {
|
2023-02-13 14:36:48 +03:00
|
|
|
ID *int `json:"id"`
|
|
|
|
Name *string `json:"name"`
|
|
|
|
CreatorID *int `json:"creatorId"`
|
2023-02-11 15:31:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type StorageDelete struct {
|
|
|
|
ID int `json:"id"`
|
|
|
|
}
|