✨ added the image backup API
This commit is contained in:
@@ -797,6 +797,14 @@ type (
|
||||
ImageBedUploadListResponse {
|
||||
Records []ImageBedUploadMeta `json:"records"`
|
||||
}
|
||||
BackupImageRequest {
|
||||
OriginProvider string `json:"origin_provider"`
|
||||
OriginBucket string `json:"origin_bucket"`
|
||||
OriginRegion string `json:"origin_region"`
|
||||
TargetProvider string `json:"target_provider"`
|
||||
TargetBucket string `json:"target_bucket"`
|
||||
TargetRegion string `json:"target_region"`
|
||||
}
|
||||
)
|
||||
|
||||
// 文件上传
|
||||
@@ -959,6 +967,10 @@ service auth {
|
||||
// 获取图床上传的图片列表
|
||||
@handler getImageBedUploadList
|
||||
post /image/bed/upload/list (ImageBedUploadListRequest) returns (ImageBedUploadListResponse)
|
||||
|
||||
// 备份图像数据
|
||||
@handler backupImage
|
||||
post /image/backup (BackupImageRequest) returns (string)
|
||||
}
|
||||
|
||||
type (
|
||||
@@ -1085,6 +1097,16 @@ type (
|
||||
bindGitee bool `json:"bind_gitee,default=false"`
|
||||
setPassword bool `json:"set_password,default=false"`
|
||||
}
|
||||
ModifyPersonalInfoRequest {
|
||||
Nickname string `json:"nickname,optional"`
|
||||
Avatar string `json:"avatar,optional"`
|
||||
Email string `json:"email,optional"`
|
||||
Gender int64 `json:"gender,optional"`
|
||||
Introduce string `json:"introduce,optional"`
|
||||
Blog string `json:"blog,optional"`
|
||||
Location string `json:"location,optional"`
|
||||
Company string `json:"company,optional"`
|
||||
}
|
||||
)
|
||||
|
||||
// 用户服务
|
||||
@@ -1107,6 +1129,14 @@ service auth {
|
||||
// 退出登录
|
||||
@handler logout
|
||||
post /logout returns (string)
|
||||
|
||||
// 获取个人信息
|
||||
@handler getPersonalInfo
|
||||
post /personal/info returns (UserMeta)
|
||||
|
||||
// 修改个人信息
|
||||
@handler modifyPersonalInfo
|
||||
post /personal/modify (ModifyPersonalInfoRequest) returns (string)
|
||||
}
|
||||
|
||||
type (
|
||||
|
Reference in New Issue
Block a user