Ejemplo n.º 1
0
        /// <summary>
        /// 通过上传方式创建文件
        /// </summary>
        public async Task <ApiResult <FileGetUploadUrlResponse> > FileGetUploadUrl(FileGetUploadUrlRequest request)
        {
            var result = await Http.PostAsync <
                FileGetUploadUrlResponse,
                FileGetUploadUrlRequest>(
                $"{Option.BaseUrl}/v1/files/getUploadUrl", request
                );

            return(result);
        }
        /// <summary>
        /// 通过上传方式创建模板
        /// </summary>
        public async Task <ApiResult <TemplatesUploadUrlResponse> > TemplatesCreateByUploadUrl(
            FileGetUploadUrlRequest request)
        {
            var result = await Http.PostAsync <
                TemplatesUploadUrlResponse,
                FileGetUploadUrlRequest>(
                $"{Option.BaseUrl}/v1/docTemplates/createByUploadUrl", request
                );

            return(result);
        }