# bill-yz-office-agent **Repository Path**: litongjava_admin/bill-yz-office-agent ## Basic Information - **Project Name**: bill-yz-office-agent - **Description**: 访问永中office代理转换文档,并将转换后的文档保存到本地 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-01-03 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### bz-yz-office-agent #### 名字由来 bill 我的另个名字 yz 永中的缩写 agent代理 #### 演示视频 https://www.bilibili.com/video/bv14D4y1m7na #### 架构介绍 spring-boot+jpa #### 安装部署 step1:下载 https://gitee.com/litongjava_admin/bill-yz-office-agent/releases/ step2:创建创建数据库 ``` CREATE DATABASE bill_yz_office_agent DEFAULT CHARACTER SET utf8 ``` step3:修改配置文件application.properties的数据库地址 step4:启动项目,启动过程中自动建表 linux ```shell bill-yz-office-agent-1.0 start ``` windows ``` start.bat ``` ### 项目接口 #### 上传文件 地址:http://127.0.0.1:10009/bill-yz-office-agent/testUpload 请求头 ``` Content-Type:multipart/form-data; boundary= ``` 请求参数 ``` file:需要转换的文件 ``` 返回数据 ``` {"result":0,"data":"adefaf9e-0153-47b4-a2ac-2a74a93d9bd9/koala硬件资料.docx","message":"转换成功"} ``` ###转换文件 请求地址:http://127.0.0.1:10009/bill-yz-office-agent/convert 请求头 ```Content-Type:application/x-www-form-urlencoded Content-Type:application/x-www-form-urlencoded ``` 请求参数 ``` inputDir: testUpload返回的data数据,eg adefaf9e-0153-47b4-a2ac-2a74a93d9bd9/koala硬件资料.docx convertType:转换类型,设置为0 ``` 返回 ``` {"result":0,"data":["http://127.0.0.1:10009/bill-yz-office-agent/view/2020/08/31/MjAwODMxNTk4MjM1NzYx.html"],"message":"转换成功","type":0} ``` 访问返回中的地址,会下载远程文件保存到本地,下载可以直接预览本地文件