Skip to content

Instantly share code, notes, and snippets.

@realLiangshiwei
Created December 3, 2021 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save realLiangshiwei/f6ab2a224935e05314798e1ced170e6b to your computer and use it in GitHub Desktop.
Save realLiangshiwei/f6ab2a224935e05314798e1ced170e6b to your computer and use it in GitHub Desktop.
fileManagement-generate-proxy.json
{
"modules": {
"fileManagement": {
"rootPath": "fileManagement",
"remoteServiceName": "FileManagement",
"controllers": {
"Volo.FileManagement.Files.FileDescriptorController": {
"controllerName": "FileDescriptor",
"controllerGroupName": "FileDescriptors",
"type": "Volo.FileManagement.Files.FileDescriptorController",
"interfaces": [
{
"type": "Volo.FileManagement.Files.IFileDescriptorAppService"
}
],
"actions": {
"GetAsyncById": {
"uniqueName": "GetAsyncById",
"name": "GetAsync",
"httpMethod": "GET",
"url": "api/file-management/file-descriptor/{id}",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.FileManagement.Files.FileDescriptorDto",
"typeSimple": "Volo.FileManagement.Files.FileDescriptorDto"
},
"allowAnonymous": true,
"implementFrom": "Volo.FileManagement.Files.IFileDescriptorAppService"
},
"GetListAsyncByDirectoryId": {
"uniqueName": "GetListAsyncByDirectoryId",
"name": "GetListAsync",
"httpMethod": "GET",
"url": "api/file-management/file-descriptor",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "directoryId",
"typeAsString": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib",
"type": "System.Guid?",
"typeSimple": "string?",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "directoryId",
"name": "directoryId",
"jsonName": null,
"type": "System.Guid?",
"typeSimple": "string?",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.Abp.Application.Dtos.ListResultDto<Volo.FileManagement.Files.FileDescriptorDto>",
"typeSimple": "Volo.Abp.Application.Dtos.ListResultDto<Volo.FileManagement.Files.FileDescriptorDto>"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Files.IFileDescriptorAppService"
},
"CreateAsyncByDirectoryIdAndInputWithStream": {
"uniqueName": "CreateAsyncByDirectoryIdAndInputWithStream",
"name": "CreateAsync",
"httpMethod": "POST",
"url": "api/file-management/file-descriptor/upload",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "directoryId",
"typeAsString": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib",
"type": "System.Guid?",
"typeSimple": "string?",
"isOptional": false,
"defaultValue": null
},
{
"name": "inputWithStream",
"typeAsString": "Volo.FileManagement.Files.CreateFileInputWithStream, Volo.FileManagement.Application.Contracts",
"type": "Volo.FileManagement.Files.CreateFileInputWithStream",
"typeSimple": "Volo.FileManagement.Files.CreateFileInputWithStream",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "directoryId",
"name": "directoryId",
"jsonName": null,
"type": "System.Guid?",
"typeSimple": "string?",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
},
{
"nameOnMethod": "inputWithStream",
"name": "Name",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": "inputWithStream"
},
{
"nameOnMethod": "inputWithStream",
"name": "File",
"jsonName": null,
"type": "Volo.Abp.Content.IRemoteStreamContent",
"typeSimple": "Volo.Abp.Content.IRemoteStreamContent",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "FormFile",
"descriptorName": "inputWithStream"
}
],
"returnValue": {
"type": "Volo.FileManagement.Files.FileDescriptorDto",
"typeSimple": "Volo.FileManagement.Files.FileDescriptorDto"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Files.IFileDescriptorAppService"
},
"MoveAsyncByInput": {
"uniqueName": "MoveAsyncByInput",
"name": "MoveAsync",
"httpMethod": "POST",
"url": "api/file-management/file-descriptor/move",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "input",
"typeAsString": "Volo.FileManagement.Files.MoveFileInput, Volo.FileManagement.Application.Contracts",
"type": "Volo.FileManagement.Files.MoveFileInput",
"typeSimple": "Volo.FileManagement.Files.MoveFileInput",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Volo.FileManagement.Files.MoveFileInput",
"typeSimple": "Volo.FileManagement.Files.MoveFileInput",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.FileManagement.Files.FileDescriptorDto",
"typeSimple": "Volo.FileManagement.Files.FileDescriptorDto"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Files.IFileDescriptorAppService"
},
"GetPreInfoAsyncByInput": {
"uniqueName": "GetPreInfoAsyncByInput",
"name": "GetPreInfoAsync",
"httpMethod": "POST",
"url": "api/file-management/file-descriptor/pre-upload-info",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "input",
"typeAsString": "System.Collections.Generic.List`1[[Volo.FileManagement.Files.FileUploadPreInfoRequest, Volo.FileManagement.Application.Contracts, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib",
"type": "System.Collections.Generic.List<Volo.FileManagement.Files.FileUploadPreInfoRequest>",
"typeSimple": "[Volo.FileManagement.Files.FileUploadPreInfoRequest]",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "System.Collections.Generic.List<Volo.FileManagement.Files.FileUploadPreInfoRequest>",
"typeSimple": "[Volo.FileManagement.Files.FileUploadPreInfoRequest]",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "System.Collections.Generic.List<Volo.FileManagement.Files.FileUploadPreInfoDto>",
"typeSimple": "[Volo.FileManagement.Files.FileUploadPreInfoDto]"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Files.IFileDescriptorAppService"
},
"GetContentAsyncById": {
"uniqueName": "GetContentAsyncById",
"name": "GetContentAsync",
"httpMethod": "GET",
"url": "api/file-management/file-descriptor/content",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
}
],
"returnValue": {
"type": "System.Byte[]",
"typeSimple": "[number]"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Files.IFileDescriptorAppService"
},
"GetDownloadTokenAsyncById": {
"uniqueName": "GetDownloadTokenAsyncById",
"name": "GetDownloadTokenAsync",
"httpMethod": "GET",
"url": "api/file-management/file-descriptor/download/{id}/token",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.FileManagement.Files.DownloadTokenResultDto",
"typeSimple": "Volo.FileManagement.Files.DownloadTokenResultDto"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Files.IFileDescriptorAppService"
},
"RenameAsyncByIdAndInput": {
"uniqueName": "RenameAsyncByIdAndInput",
"name": "RenameAsync",
"httpMethod": "POST",
"url": "api/file-management/file-descriptor/{id}",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
},
{
"name": "input",
"typeAsString": "Volo.FileManagement.Files.RenameFileInput, Volo.FileManagement.Application.Contracts",
"type": "Volo.FileManagement.Files.RenameFileInput",
"typeSimple": "Volo.FileManagement.Files.RenameFileInput",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
},
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Volo.FileManagement.Files.RenameFileInput",
"typeSimple": "Volo.FileManagement.Files.RenameFileInput",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.FileManagement.Files.FileDescriptorDto",
"typeSimple": "Volo.FileManagement.Files.FileDescriptorDto"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Files.IFileDescriptorAppService"
},
"DeleteAsyncById": {
"uniqueName": "DeleteAsyncById",
"name": "DeleteAsync",
"httpMethod": "DELETE",
"url": "api/file-management/file-descriptor/{id}",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
}
],
"returnValue": {
"type": "System.Void",
"typeSimple": "System.Void"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Files.IFileDescriptorAppService"
},
"DownloadAsyncByIdAndToken": {
"uniqueName": "DownloadAsyncByIdAndToken",
"name": "DownloadAsync",
"httpMethod": "GET",
"url": "api/file-management/file-descriptor/download/{id}",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
},
{
"name": "token",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
},
{
"nameOnMethod": "token",
"name": "token",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.Abp.Content.IRemoteStreamContent",
"typeSimple": "Volo.Abp.Content.IRemoteStreamContent"
},
"allowAnonymous": true,
"implementFrom": "Volo.FileManagement.Files.IFileDescriptorAppService"
}
}
},
"Volo.FileManagement.Directories.DirectoryDescriptorController": {
"controllerName": "DirectoryDescriptor",
"controllerGroupName": "DirectoryDescriptors",
"type": "Volo.FileManagement.Directories.DirectoryDescriptorController",
"interfaces": [
{
"type": "Volo.FileManagement.Directories.IDirectoryDescriptorAppService"
}
],
"actions": {
"GetAsyncById": {
"uniqueName": "GetAsyncById",
"name": "GetAsync",
"httpMethod": "GET",
"url": "api/file-management/directory-descriptor/{id}",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.FileManagement.Directories.DirectoryDescriptorDto",
"typeSimple": "Volo.FileManagement.Directories.DirectoryDescriptorDto"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Directories.IDirectoryDescriptorAppService"
},
"GetListAsyncByParentId": {
"uniqueName": "GetListAsyncByParentId",
"name": "GetListAsync",
"httpMethod": "GET",
"url": "api/file-management/directory-descriptor/sub-directories",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "parentId",
"typeAsString": "System.Nullable`1[[System.Guid, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Private.CoreLib",
"type": "System.Guid?",
"typeSimple": "string?",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "parentId",
"name": "parentId",
"jsonName": null,
"type": "System.Guid?",
"typeSimple": "string?",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.Abp.Application.Dtos.ListResultDto<Volo.FileManagement.Directories.DirectoryDescriptorInfoDto>",
"typeSimple": "Volo.Abp.Application.Dtos.ListResultDto<Volo.FileManagement.Directories.DirectoryDescriptorInfoDto>"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Directories.IDirectoryDescriptorAppService"
},
"CreateAsyncByInput": {
"uniqueName": "CreateAsyncByInput",
"name": "CreateAsync",
"httpMethod": "POST",
"url": "api/file-management/directory-descriptor",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "input",
"typeAsString": "Volo.FileManagement.Directories.CreateDirectoryInput, Volo.FileManagement.Application.Contracts",
"type": "Volo.FileManagement.Directories.CreateDirectoryInput",
"typeSimple": "Volo.FileManagement.Directories.CreateDirectoryInput",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Volo.FileManagement.Directories.CreateDirectoryInput",
"typeSimple": "Volo.FileManagement.Directories.CreateDirectoryInput",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.FileManagement.Directories.DirectoryDescriptorDto",
"typeSimple": "Volo.FileManagement.Directories.DirectoryDescriptorDto"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Directories.IDirectoryDescriptorAppService"
},
"RenameAsyncByIdAndInput": {
"uniqueName": "RenameAsyncByIdAndInput",
"name": "RenameAsync",
"httpMethod": "POST",
"url": "api/file-management/directory-descriptor/{id}",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
},
{
"name": "input",
"typeAsString": "Volo.FileManagement.Directories.RenameDirectoryInput, Volo.FileManagement.Application.Contracts",
"type": "Volo.FileManagement.Directories.RenameDirectoryInput",
"typeSimple": "Volo.FileManagement.Directories.RenameDirectoryInput",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
},
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Volo.FileManagement.Directories.RenameDirectoryInput",
"typeSimple": "Volo.FileManagement.Directories.RenameDirectoryInput",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.FileManagement.Directories.DirectoryDescriptorDto",
"typeSimple": "Volo.FileManagement.Directories.DirectoryDescriptorDto"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Directories.IDirectoryDescriptorAppService"
},
"GetContentAsyncByInput": {
"uniqueName": "GetContentAsyncByInput",
"name": "GetContentAsync",
"httpMethod": "GET",
"url": "api/file-management/directory-descriptor",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "input",
"typeAsString": "Volo.FileManagement.Directories.DirectoryContentRequestInput, Volo.FileManagement.Application.Contracts",
"type": "Volo.FileManagement.Directories.DirectoryContentRequestInput",
"typeSimple": "Volo.FileManagement.Directories.DirectoryContentRequestInput",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "input",
"name": "Filter",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": "input"
},
{
"nameOnMethod": "input",
"name": "Sorting",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": "input"
},
{
"nameOnMethod": "input",
"name": "Id",
"jsonName": null,
"type": "System.Guid?",
"typeSimple": "string?",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": "input"
}
],
"returnValue": {
"type": "Volo.Abp.Application.Dtos.PagedResultDto<Volo.FileManagement.Directories.DirectoryContentDto>",
"typeSimple": "Volo.Abp.Application.Dtos.PagedResultDto<Volo.FileManagement.Directories.DirectoryContentDto>"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Directories.IDirectoryDescriptorAppService"
},
"DeleteAsyncById": {
"uniqueName": "DeleteAsyncById",
"name": "DeleteAsync",
"httpMethod": "DELETE",
"url": "api/file-management/directory-descriptor/{id}",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "id",
"name": "id",
"jsonName": null,
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": [],
"bindingSourceId": "Path",
"descriptorName": ""
}
],
"returnValue": {
"type": "System.Void",
"typeSimple": "System.Void"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Directories.IDirectoryDescriptorAppService"
},
"MoveAsyncByInput": {
"uniqueName": "MoveAsyncByInput",
"name": "MoveAsync",
"httpMethod": "POST",
"url": "api/file-management/directory-descriptor/move",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "input",
"typeAsString": "Volo.FileManagement.Directories.MoveDirectoryInput, Volo.FileManagement.Application.Contracts",
"type": "Volo.FileManagement.Directories.MoveDirectoryInput",
"typeSimple": "Volo.FileManagement.Directories.MoveDirectoryInput",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Volo.FileManagement.Directories.MoveDirectoryInput",
"typeSimple": "Volo.FileManagement.Directories.MoveDirectoryInput",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.FileManagement.Directories.DirectoryDescriptorDto",
"typeSimple": "Volo.FileManagement.Directories.DirectoryDescriptorDto"
},
"allowAnonymous": false,
"implementFrom": "Volo.FileManagement.Directories.IDirectoryDescriptorAppService"
}
}
}
}
}
},
"types": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment