2023-02-11 20:31:39 +08:00
|
|
|
package api
|
|
|
|
|
|
|
|
type Storage struct {
|
|
|
|
ID int `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
EndPoint string `json:"endPoint"`
|
2023-02-13 19:36:48 +08:00
|
|
|
Region string `json:"region"`
|
2023-02-11 20:31:39 +08:00
|
|
|
AccessKey string `json:"accessKey"`
|
|
|
|
SecretKey string `json:"secretKey"`
|
|
|
|
Bucket string `json:"bucket"`
|
2023-02-13 19:36:48 +08:00
|
|
|
URLPrefix string `json:"urlPrefix"`
|
2023-02-11 20:31:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type StorageCreate struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
EndPoint string `json:"endPoint"`
|
2023-02-13 19:36:48 +08:00
|
|
|
Region string `json:"region"`
|
2023-02-11 20:31:39 +08:00
|
|
|
AccessKey string `json:"accessKey"`
|
|
|
|
SecretKey string `json:"secretKey"`
|
|
|
|
Bucket string `json:"bucket"`
|
2023-02-13 19:36:48 +08:00
|
|
|
URLPrefix string `json:"urlPrefix"`
|
2023-02-11 20:31:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type StoragePatch struct {
|
2023-02-17 20:12:08 +08:00
|
|
|
ID int `json:"id"`
|
2023-02-11 20:31:39 +08:00
|
|
|
Name *string `json:"name"`
|
|
|
|
EndPoint *string `json:"endPoint"`
|
2023-02-13 19:36:48 +08:00
|
|
|
Region *string `json:"region"`
|
2023-02-11 20:31:39 +08:00
|
|
|
AccessKey *string `json:"accessKey"`
|
|
|
|
SecretKey *string `json:"secretKey"`
|
|
|
|
Bucket *string `json:"bucket"`
|
2023-02-13 19:36:48 +08:00
|
|
|
URLPrefix *string `json:"urlPrefix"`
|
2023-02-11 20:31:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type StorageFind struct {
|
2023-02-17 20:12:08 +08:00
|
|
|
ID *int `json:"id"`
|
|
|
|
Name *string `json:"name"`
|
2023-02-11 20:31:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type StorageDelete struct {
|
|
|
|
ID int `json:"id"`
|
|
|
|
}
|