{ "swagger": "2.0", "info": { "title": "disk.proto", "version": "version not set" }, "tags": [ { "name": "Disk" } ], "consumes": [ "application/json" ], "produces": [ "application/json" ], "paths": {}, "definitions": { "cloudDirTreeResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/cloudUserFile" }, "title": "只返回文件夹" } } }, "cloudEmpty": { "type": "object" }, "cloudFile": { "type": "object", "properties": { "identity": { "type": "string", "title": "唯一标识" }, "path": { "type": "string", "title": "文件路径" }, "size": { "type": "string", "format": "int64", "title": "文件大小,单位:B" } } }, "cloudListResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/cloudUserFile" } } } }, "cloudMakeResponse": { "type": "object", "properties": { "identity": { "type": "string" } } }, "cloudParseShareResponse": { "type": "object", "properties": { "list": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/cloudUserFile" } } } }, "cloudShareResponse": { "type": "object", "properties": { "key": { "type": "string", "title": "解析分享内容关键key" } } }, "cloudUserFile": { "type": "object", "properties": { "identity": { "type": "string", "title": "唯一标识" }, "name": { "type": "string", "title": "文件/文件夹名称" }, "ext": { "type": "string", "title": "后缀,文件夹时为空" }, "parent": { "type": "array", "items": { "type": "string" }, "title": "父级文件夹序列,按文件名称查询时候生效" }, "file": { "$ref": "#/definitions/cloudFile", "title": "文件信息" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "children": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/cloudUserFile" }, "title": "子文件夹" } } }, "protobufAny": { "type": "object", "properties": { "@type": { "type": "string" } }, "additionalProperties": {} }, "rpcStatus": { "type": "object", "properties": { "code": { "type": "integer", "format": "int32" }, "message": { "type": "string" }, "details": { "type": "array", "items": { "type": "object", "$ref": "#/definitions/protobufAny" } } } } } }