feat: storage service backend (#1086)

* feat: storage service backend

* update go.mod

* update the column name (urlPrefix -> url_prefix)

* update

* update
This commit is contained in:
Zeng1998
2023-02-13 19:36:48 +08:00
committed by GitHub
parent cbc3373e8e
commit 1e4a81dea9
12 changed files with 387 additions and 23 deletions

View File

@@ -7,18 +7,22 @@ type Storage struct {
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 {
@@ -26,13 +30,17 @@ type StoragePatch struct {
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 {
CreatorID *int `json:"creatorId"`
ID *int `json:"id"`
Name *string `json:"name"`
CreatorID *int `json:"creatorId"`
}
type StorageDelete struct {