Skip to content

Commit

Permalink
feat: add
Browse files Browse the repository at this point in the history
  • Loading branch information
limes-cloud committed Jul 7, 2024
1 parent d00442d commit 02595e3
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 53 deletions.
33 changes: 33 additions & 0 deletions api/resource/file/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,39 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Status'
/resource/client/v1/file:
get:
tags:
- File
description: GetFile 获取指定的文件信息
operationId: File_GetFile
parameters:
- name: id
in: query
schema:
type: integer
format: uint32
- name: sha
in: query
schema:
type: string
- name: src
in: query
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/GetFileReply'
default:
description: Default error response
content:
application/json:
schema:
$ref: '#/components/schemas/Status'
/resource/client/v1/file/prepare_upload:
post:
tags:
Expand Down
3 changes: 3 additions & 0 deletions api/resource/file/resource_file_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ service File{
rpc GetFile (GetFileRequest) returns (GetFileReply) {
option (google.api.http) = {
get: "/resource/api/v1/file",
additional_bindings:{
get: "/resource/client/v1/file",
}
};
}

Expand Down
105 changes: 53 additions & 52 deletions api/resource/file/v1/resource_file_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion api/resource/file/v1/resource_file_service_http.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added static/2883cd7233815df71e5748b4bd0b8221.mp4
Binary file not shown.
Binary file removed static/a9f224627346905e258d771e4043f921.png
Binary file not shown.
Binary file added static/bcd0fc693cc6e5f6bbcd753e1932f18c.pdf
Binary file not shown.

0 comments on commit 02595e3

Please sign in to comment.