Browse Source

fix 新增下载接口的demo

DYH2020 2 years ago
parent
commit
f59c87c41a
100 changed files with 5900 additions and 4168 deletions
  1. 10 13
      config_fillters/filters-dev.properties
  2. 15 6
      config_fillters/filters-preproduct.properties
  3. 13 10
      config_fillters/filters-product.properties
  4. 9 6
      config_fillters/filters-test.properties
  5. 52 0
      grpc_def/file.proto
  6. 32 17
      pom.xml
  7. 115 0
      src/main/java/com/ywt/gapi/base/file/File.java
  8. 391 0
      src/main/java/com/ywt/gapi/base/file/FileService.java
  9. 401 0
      src/main/java/com/ywt/gapi/base/file/FileServiceGrpc.java
  10. 640 0
      src/main/java/com/ywt/gapi/base/file/ReadFileFromBucketRequest.java
  11. 29 0
      src/main/java/com/ywt/gapi/base/file/ReadFileFromBucketRequestOrBuilder.java
  12. 541 0
      src/main/java/com/ywt/gapi/base/file/ReadFileRequest.java
  13. 27 0
      src/main/java/com/ywt/gapi/base/file/ReadFileRequestOrBuilder.java
  14. 676 0
      src/main/java/com/ywt/gapi/base/file/ReadFileResponse.java
  15. 41 0
      src/main/java/com/ywt/gapi/base/file/ReadFileResponseOrBuilder.java
  16. 928 0
      src/main/java/com/ywt/gapi/base/file/UploadFileRequest.java
  17. 72 0
      src/main/java/com/ywt/gapi/base/file/UploadFileRequestOrBuilder.java
  18. 770 0
      src/main/java/com/ywt/gapi/base/file/UploadFileResponse.java
  19. 54 0
      src/main/java/com/ywt/gapi/base/file/UploadFileResponseOrBuilder.java
  20. 2 2
      src/main/java/com/ywt/mg/Application.java
  21. 7 2
      src/main/java/com/ywt/mg/configs/ServiceGrpcStubBeans.java
  22. 5 5
      src/main/java/com/ywt/mg/configs/jpa/YwtDrugConfig.java
  23. 1 0
      src/main/java/com/ywt/mg/core/utils/FormatUtil.java
  24. 349 0
      src/main/java/com/ywt/mg/domain/entities/DownloadRecord.java
  25. 12 0
      src/main/java/com/ywt/mg/domain/entities/DownloadRecordRepository.java
  26. 4 0
      src/main/java/com/ywt/mg/domain/models/ConstantDef.java
  27. 8 0
      src/main/java/com/ywt/mg/domain/models/pojo/ExcelCollectPojo.java
  28. 688 0
      src/main/java/com/ywt/mg/domain/ywtDrugEntities/Pharmacy.java
  29. 8 0
      src/main/java/com/ywt/mg/domain/ywtDrugEntities/PharmacyRepository.java
  30. 0 64
      src/main/java/com/ywt/mg/params/bill/pharmacy/request/ConfirmCheckMonthTotalRequest.java
  31. 0 69
      src/main/java/com/ywt/mg/params/bill/pharmacy/request/QueryBillThirdMergeRemarkRequest.java
  32. 0 93
      src/main/java/com/ywt/mg/params/bill/pharmacy/request/QueryMonthBillListRequest.java
  33. 0 52
      src/main/java/com/ywt/mg/params/bill/pharmacy/request/SaveBillThirdMergeRemarkRequest.java
  34. 0 72
      src/main/java/com/ywt/mg/params/bill/third/CheckRecordListRequest.java
  35. 0 94
      src/main/java/com/ywt/mg/params/bill/third/QueryCheckListRequest.java
  36. 0 71
      src/main/java/com/ywt/mg/params/bill/third/QueryTotalListRequest.java
  37. 0 38
      src/main/java/com/ywt/mg/params/bill/third/SettleCheckResultAccountsRequest.java
  38. 0 50
      src/main/java/com/ywt/mg/params/bill/third/request/ConfirmCheckTotalRequest.java
  39. 0 57
      src/main/java/com/ywt/mg/params/bill/third/request/CreateMonthBillRequest.java
  40. 0 27
      src/main/java/com/ywt/mg/params/bill/third/request/UploadPOSExcelRequest.java
  41. 0 29
      src/main/java/com/ywt/mg/params/checkListOrder/GetCheckOrderInfoRequest.java
  42. 0 54
      src/main/java/com/ywt/mg/params/checkListOrder/GetEquipmentListRequest.java
  43. 0 204
      src/main/java/com/ywt/mg/params/checkListOrder/QueryCheckListOrderListRequest.java
  44. 0 41
      src/main/java/com/ywt/mg/params/checkListOrder/SaveCheckOrderEquipmentInfoRequest.java
  45. 0 29
      src/main/java/com/ywt/mg/params/checkListOrder/SaveConfirmReceiveInfoRequest.java
  46. 0 48
      src/main/java/com/ywt/mg/params/checkResultOrder/request/CheckResultFeePojo.java
  47. 0 136
      src/main/java/com/ywt/mg/params/checkResultOrder/request/CheckResultOrderListRequest.java
  48. 0 38
      src/main/java/com/ywt/mg/params/checkResultOrder/request/RefundCheckResultOrderRequest.java
  49. 0 26
      src/main/java/com/ywt/mg/params/checkResultOrder/request/SaveCheckResultFeeRequest.java
  50. 0 138
      src/main/java/com/ywt/mg/params/checkUp/request/QueryCheckUpOrderListRequest.java
  51. 0 17
      src/main/java/com/ywt/mg/params/checkupBooking/CheckupBookingNoticeRequest.java
  52. 0 40
      src/main/java/com/ywt/mg/params/checkupBooking/CheckupBookingNoticeResponse.java
  53. 0 57
      src/main/java/com/ywt/mg/params/checkupBooking/CheckupBookingPackageVo.java
  54. 0 54
      src/main/java/com/ywt/mg/params/checkupBooking/SaveNoticeRequest.java
  55. 0 29
      src/main/java/com/ywt/mg/params/config/PowerAttonrnetRequest.java
  56. 0 39
      src/main/java/com/ywt/mg/params/config/PowerAttorneyVo.java
  57. 0 29
      src/main/java/com/ywt/mg/params/covid19Questionnaire/request/GetCovid19QuestionnaireDetailRequest.java
  58. 0 60
      src/main/java/com/ywt/mg/params/covid19Questionnaire/request/QueryCovid19QuestionnaireListRequest.java
  59. 0 263
      src/main/java/com/ywt/mg/params/deposit/DepositOrderInfo.java
  60. 0 117
      src/main/java/com/ywt/mg/params/deposit/QueryDepositListRequest.java
  61. 0 27
      src/main/java/com/ywt/mg/params/display/request/QueryCloudDisplayListRequest.java
  62. 0 41
      src/main/java/com/ywt/mg/params/display/request/SaveDisplayStatusRequest.java
  63. 0 60
      src/main/java/com/ywt/mg/params/doctorQrCodeUrl/GetOrCreateDoctorQrCodeUrlRequest.java
  64. 0 81
      src/main/java/com/ywt/mg/params/evaluate/request/ExcelSingleRowData.java
  65. 0 54
      src/main/java/com/ywt/mg/params/evaluate/request/ExcelSingleRowDataRequest.java
  66. 0 68
      src/main/java/com/ywt/mg/params/evaluate/request/ExcelSingleRowQuestion.java
  67. 0 28
      src/main/java/com/ywt/mg/params/evaluate/request/GetAllStaffListRequest.java
  68. 0 26
      src/main/java/com/ywt/mg/params/evaluate/request/GetQuestionInfoRequest.java
  69. 0 26
      src/main/java/com/ywt/mg/params/evaluate/request/GetQuestionListRequest.java
  70. 0 26
      src/main/java/com/ywt/mg/params/evaluate/request/GetQuestionnaireInfoRequest.java
  71. 0 26
      src/main/java/com/ywt/mg/params/evaluate/request/GetStaffInfoRequest.java
  72. 0 39
      src/main/java/com/ywt/mg/params/evaluate/request/OptionRequest.java
  73. 0 40
      src/main/java/com/ywt/mg/params/evaluate/request/QueryQuestionnaireListRequest.java
  74. 0 61
      src/main/java/com/ywt/mg/params/evaluate/request/QueryQuestionnaireSummaryDataRequest.java
  75. 0 73
      src/main/java/com/ywt/mg/params/evaluate/request/QueryQuestionnaireTextDataRequest.java
  76. 0 39
      src/main/java/com/ywt/mg/params/evaluate/request/QueryStaffListRequest.java
  77. 0 87
      src/main/java/com/ywt/mg/params/evaluate/request/SaveQuestionRequest.java
  78. 0 63
      src/main/java/com/ywt/mg/params/evaluate/request/SaveQuestionnaireRequest.java
  79. 0 63
      src/main/java/com/ywt/mg/params/evaluate/request/SaveStaffRequest.java
  80. 0 30
      src/main/java/com/ywt/mg/params/fixedPoint/request/DownloadFixedPointQrCodeRequest.java
  81. 0 41
      src/main/java/com/ywt/mg/params/fixedPoint/request/FixedPointInfo.java
  82. 0 29
      src/main/java/com/ywt/mg/params/fixedPoint/request/GetDoctorFixedPointInfoViewPoJoByPointIdRequest.java
  83. 0 26
      src/main/java/com/ywt/mg/params/fixedPoint/request/GetFixedPointListByDoctorIdRequest.java
  84. 0 83
      src/main/java/com/ywt/mg/params/fixedPoint/request/QueryDoctorFixedPointInfoListRequest.java
  85. 0 41
      src/main/java/com/ywt/mg/params/fixedPoint/request/SaveFixedPointInfoRequest.java
  86. 0 41
      src/main/java/com/ywt/mg/params/fixedPoint/request/SaveFixedPointStatusRequest.java
  87. 0 68
      src/main/java/com/ywt/mg/params/fixedPoint/response/GetFixedPointInfo.java
  88. 0 25
      src/main/java/com/ywt/mg/params/freeConsultSchedule/request/DeleteFreeConsultScheduleRequest.java
  89. 0 37
      src/main/java/com/ywt/mg/params/freeConsultSchedule/request/GetFreeConsultScheduleRequest.java
  90. 0 46
      src/main/java/com/ywt/mg/params/freeConsultSchedule/request/QueryFreeConsultScheduleListRequest.java
  91. 0 127
      src/main/java/com/ywt/mg/params/freeConsultSchedule/request/SaveFreeConsultScheduleRequest.java
  92. 0 61
      src/main/java/com/ywt/mg/params/freeConsultSchedule/request/SaveScheduleWeightInfoRequest.java
  93. 0 51
      src/main/java/com/ywt/mg/params/health/checkListOrder/SaveAuditResultRequest.java
  94. 0 40
      src/main/java/com/ywt/mg/params/health/checkListOrder/SaveCheckOrderHospitalRequest.java
  95. 0 28
      src/main/java/com/ywt/mg/params/health/checkProject/DelCheckProjectRequest.java
  96. 0 27
      src/main/java/com/ywt/mg/params/health/checkProject/GetCheckProjectInfoRequest.java
  97. 0 83
      src/main/java/com/ywt/mg/params/health/checkProject/QueryCheckProjectListRequest.java
  98. 0 106
      src/main/java/com/ywt/mg/params/health/checkProject/SaveCheckProjectInfoRequest.java
  99. 0 27
      src/main/java/com/ywt/mg/params/health/equipmentPersonnel/GetCheckProjectInfoRequest.java
  100. 0 27
      src/main/java/com/ywt/mg/params/health/equipmentPersonnel/GetEquipmentPersonnelInfoRequest.java

+ 10 - 13
config_fillters/filters-dev.properties

@@ -1,21 +1,18 @@
 db.ywtcenter.url=jdbc:mysql://rm-wz9a76b4u608w6f0efo.mysql.rds.aliyuncs.com:3306/ywt_center?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
-#db.ywtcenter.username=ywt_qa
-#db.ywtcenter.password=Ywtqa123456x*#
+db.ywtcenter.username=ywt_qa
+db.ywtcenter.password=Ywtqa123456x*#
+
+db.ywtdrug.url=jdbc:mysql://rm-wz9a76b4u608w6f0efo.mysql.rds.aliyuncs.com:3306/ywt_drug?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
 
 logging.level.root=INFO
 
-#redis
+# redis
 redis.address=172.18.82.224:6339
 
-#db.ywt.url=jdbc:mysql://192.168.3.202:3306/ywt_center?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
-#db.ywtcenter.username=root
-#db.ywtcenter.password=123456x
-db.nutrimeal.url=jdbc:mysql://rm-wz9a76b4u608w6f0efo.mysql.rds.aliyuncs.com:3306/nutrimeal?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
-db.ywtcenter.username=ywt_qa
-db.ywtcenter.password=Ywtqa123456x*#
-
-
-# ���Ի���
+# 环境
 ywt.env.test=true
 
-nutrimeal.orderPay.timeout.inMinutes=1
+# 测试数据
+test.doctor.ids=10178,112,10179,10470,7,10533
+test.admin.ids=1,7,10
+test.doctor.codes=169

+ 15 - 6
config_fillters/filters-preproduct.properties

@@ -1,9 +1,18 @@
-#数据库配置
-db.ywtcenter.url=jdbc:mysql://192.168.3.202:3306/YwtCenter?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true
-db.ywtcenter.username=root
-db.ywtcenter.password=123456x
+db.ywtcenter.url=jdbc:mysql://rm-wz9a76b4u608w6f0efo.mysql.rds.aliyuncs.com:3306/ywt_center?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
+db.ywtcenter.username=ywt_qa
+db.ywtcenter.password=Ywtqa123456x*#
+
+db.ywtdrug.url=jdbc:mysql://rm-wz9a76b4u608w6f0efo.mysql.rds.aliyuncs.com:3306/ywt_drug?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
 
 logging.level.root=DEBUG
 
-# 营养餐数据库url
-db.nutrimeal.url=jdbc:mysql://192.168.3.202:3306/nutrimeal?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
+# redis
+redis.address=172.18.82.224:6339
+
+# 环境
+ywt.env.test=true
+
+# 测试数据
+test.doctor.ids=10178,112,10179,10470,7,10533
+test.admin.ids=1,7,10
+test.doctor.codes=169

+ 13 - 10
config_fillters/filters-product.properties

@@ -1,15 +1,18 @@
-logging.level.root=INFO
+db.ywtcenter.url=jdbc:mysql://rm-wz9a76b4u608w6f0efo.mysql.rds.aliyuncs.com:3306/ywt_center?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
+db.ywtcenter.username=ywt_qa
+db.ywtcenter.password=Ywtqa123456x*#
 
-#redis
-redis.address=172.18.82.224:6339
+db.ywtdrug.url=jdbc:mysql://rm-wz9a76b4u608w6f0efo.mysql.rds.aliyuncs.com:3306/ywt_drug?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
 
-# 营养餐数据库url
-db.nutrimeal.url=jdbc:mysql://rm-wz9rdewzn495u8iwzo.mysql.rds.aliyuncs.com:3306/nutrimeal?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
-db.ywtcenter.username=ywt_pro
-db.ywtcenter.password=Ywtpro123456x*#
+logging.level.root=DEBUG
 
+# redis
+redis.address=172.18.82.224:6339
 
-# 测试环境
-ywt.env.test=false
+# 鐜��
+ywt.env.test=true
 
-nutrimeal.orderPay.timeout.inMinutes=15
+# 娴嬭瘯鏁版嵁
+test.doctor.ids=10178,112,10179,10470,7,10533
+test.admin.ids=1,7,10
+test.doctor.codes=169

+ 9 - 6
config_fillters/filters-test.properties

@@ -2,14 +2,17 @@ db.ywtcenter.url=jdbc:mysql://rm-wz9a76b4u608w6f0efo.mysql.rds.aliyuncs.com:3306
 db.ywtcenter.username=ywt_qa
 db.ywtcenter.password=Ywtqa123456x*#
 
+db.ywtdrug.url=jdbc:mysql://rm-wz9a76b4u608w6f0efo.mysql.rds.aliyuncs.com:3306/ywt_drug?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
 
-logging.level.root=INFO
+logging.level.root=DEBUG
 
-#redis
+# redis
 redis.address=172.18.82.224:6339
 
-# 营养餐数据库url
-db.nutrimeal.url=jdbc:mysql://rm-wz9a76b4u608w6f0efo.mysql.rds.aliyuncs.com:3306/nutrimeal?characterEncoding=utf8&useSSL=false&useOldAliasMetadataBehavior=true&autoReconnect=true
+# 鐜��
+ywt.env.test=true
 
-# 测试环境
-ywt.env.test=true
+# 娴嬭瘯鏁版嵁
+test.doctor.ids=10178,112,10179,10470,7,10533
+test.admin.ids=1,7,10
+test.doctor.codes=169

+ 52 - 0
grpc_def/file.proto

@@ -0,0 +1,52 @@
+/**
+阿里云OSS文件接口二次封装 grpc 服务
+Base Service 项目的基础服务,实现文件:src/provider/file.js
+项目地址:https://gogs.ywtinfo.com/ywt/base-service.git
+*/
+syntax = "proto3";
+
+package com.ywt.gapi.base.file;
+
+option java_generic_services = true;
+option java_multiple_files = true;
+option java_package = "com.ywt.gapi.base.file";
+
+//上传文件请求
+message UploadFileRequest {
+    string filename = 1;    //文件名
+    string vpath = 2;       //路径
+    bytes datas = 3;        //文件流
+    string bucket = 4;      //bucket,不传默认为 ywt-files
+}
+
+//上传文件响应
+message UploadFileResponse {
+    int32 code = 1;         //结果标识
+    string fileUrl = 2;     //文件链接
+    string msg = 3;         //提示信息
+}
+
+//读取文件请求
+message ReadFileRequest {
+    string fileUrl = 1; //文件地址
+}
+
+//读取文件响应
+message ReadFileResponse {
+    int32 code = 1;
+    bytes datas = 2;    //文件流
+    string msg = 3;     //提示信息
+}
+
+//根据bucket读取文件request
+message ReadFileFromBucketRequest {
+    string fileUrl = 1;
+    string bucket = 2;
+}
+// 对应 base-service 项目的 file.js 文件
+service FileService {
+    rpc uploadFile (UploadFileRequest) returns (UploadFileResponse);
+    rpc readFile (ReadFileRequest) returns (ReadFileResponse);
+    //根据bucket读取文件
+    rpc readFileFromBucket (ReadFileFromBucketRequest) returns (ReadFileResponse);
+}

+ 32 - 17
pom.xml

@@ -18,7 +18,7 @@
         <java.version>1.8</java.version>
     </properties>
 
-    <!--私服地址start-->
+    <!-- maven 私服  start -->
     <repositories>
         <repository>
             <id>nexus</id>
@@ -33,7 +33,7 @@
             <url>http://nexus.ywtinfo.com/repository/maven-public/</url>
         </pluginRepository>
     </pluginRepositories>
-    <!--私服地址end-->
+    <!-- end maven 私服  -->
 
     <dependencies>
         <dependency>
@@ -48,6 +48,7 @@
                     <groupId>org.slf4j</groupId>
                     <artifactId>jul-to-slf4j</artifactId>
                 </exclusion>
+
             </exclusions>
         </dependency>
         <dependency>
@@ -73,15 +74,18 @@
             <artifactId>spring-jdbc</artifactId>
         </dependency>
         <dependency>
-            <groupId>mysql</groupId>
-            <artifactId>mysql-connector-java</artifactId>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient</artifactId>
         </dependency>
         <dependency>
-            <groupId>org.springframework.boot</groupId>
-            <artifactId>spring-boot-starter-test</artifactId>
-            <scope>test</scope>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
+            <version>20.0</version>
+        </dependency>
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
         </dependency>
-        <!--grpc & rpc core start-->
         <dependency>
             <groupId>io.grpc</groupId>
             <artifactId>grpc-netty</artifactId>
@@ -97,12 +101,13 @@
             <artifactId>grpc-stub</artifactId>
             <version>1.7.0</version>
         </dependency>
+
+        <!-- add by daiyihua  url:https://mvnrepository.com/artifact/com.belerweb/pinyin4j -->
         <dependency>
-            <groupId>ywt</groupId>
-            <artifactId>ywt-rpc-core</artifactId>
-            <version>1.0-SNAPSHOT</version>
+            <groupId>com.belerweb</groupId>
+            <artifactId>pinyin4j</artifactId>
+            <version>2.5.1</version>
         </dependency>
-        <!--grpc & rpc core end-->
 
         <!-- excel 引用包 -->
         <dependency>
@@ -110,10 +115,11 @@
             <artifactId>jxl</artifactId>
             <version>2.6.12</version>
         </dependency>
+
         <dependency>
-            <groupId>org.apache.commons</groupId>
-            <artifactId>commons-csv</artifactId>
-            <version>1.6</version>
+            <groupId>ywt</groupId>
+            <artifactId>ywt-rpc-core</artifactId>
+            <version>1.0-SNAPSHOT</version>
         </dependency>
         <!--  引入swagger包 -->
         <dependency>
@@ -183,7 +189,6 @@
             <version>0.13.0</version>
         </dependency>
     </dependencies>
-
     <profiles>
         <profile>
             <id>dev</id>
@@ -213,7 +218,6 @@
             </properties>
         </profile>
     </profiles>
-
     <build>
         <filters>
             <filter>config_fillters/filters-${active.profile}.properties</filter>
@@ -226,10 +230,21 @@
         </resources>
         <plugins>
             <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>3.2</version>
+                <configuration>
+                    <source>1.8</source>
+                    <target>1.8</target>
+                    <encoding>utf-8</encoding>
+                </configuration>
+            </plugin>
+            <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
             </plugin>
         </plugins>
     </build>
 
+
 </project>

+ 115 - 0
src/main/java/com/ywt/gapi/base/file/File.java

@@ -0,0 +1,115 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+public final class File {
+  private File() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_com_ywt_gapi_base_file_UploadFileRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_com_ywt_gapi_base_file_UploadFileRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_com_ywt_gapi_base_file_UploadFileResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_com_ywt_gapi_base_file_UploadFileResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_com_ywt_gapi_base_file_ReadFileRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_com_ywt_gapi_base_file_ReadFileRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_com_ywt_gapi_base_file_ReadFileResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_com_ywt_gapi_base_file_ReadFileResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_com_ywt_gapi_base_file_ReadFileFromBucketRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_com_ywt_gapi_base_file_ReadFileFromBucketRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n\nfile.proto\022\026com.ywt.gapi.base.file\"S\n\021" +
+      "UploadFileRequest\022\020\n\010filename\030\001 \001(\t\022\r\n\005v" +
+      "path\030\002 \001(\t\022\r\n\005datas\030\003 \001(\014\022\016\n\006bucket\030\004 \001(" +
+      "\t\"@\n\022UploadFileResponse\022\014\n\004code\030\001 \001(\005\022\017\n" +
+      "\007fileUrl\030\002 \001(\t\022\013\n\003msg\030\003 \001(\t\"\"\n\017ReadFileR" +
+      "equest\022\017\n\007fileUrl\030\001 \001(\t\"<\n\020ReadFileRespo" +
+      "nse\022\014\n\004code\030\001 \001(\005\022\r\n\005datas\030\002 \001(\014\022\013\n\003msg\030" +
+      "\003 \001(\t\"<\n\031ReadFileFromBucketRequest\022\017\n\007fi" +
+      "leUrl\030\001 \001(\t\022\016\n\006bucket\030\002 \001(\t2\304\002\n\013FileServ" +
+      "ice\022c\n\nuploadFile\022).com.ywt.gapi.base.fi",
+      "le.UploadFileRequest\032*.com.ywt.gapi.base" +
+      ".file.UploadFileResponse\022]\n\010readFile\022\'.c" +
+      "om.ywt.gapi.base.file.ReadFileRequest\032(." +
+      "com.ywt.gapi.base.file.ReadFileResponse\022" +
+      "q\n\022readFileFromBucket\0221.com.ywt.gapi.bas" +
+      "e.file.ReadFileFromBucketRequest\032(.com.y" +
+      "wt.gapi.base.file.ReadFileResponseB\035\n\026co" +
+      "m.ywt.gapi.base.fileP\001\210\001\001b\006proto3"
+    };
+    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
+        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
+          public com.google.protobuf.ExtensionRegistry assignDescriptors(
+              com.google.protobuf.Descriptors.FileDescriptor root) {
+            descriptor = root;
+            return null;
+          }
+        };
+    com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+        }, assigner);
+    internal_static_com_ywt_gapi_base_file_UploadFileRequest_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_com_ywt_gapi_base_file_UploadFileRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_com_ywt_gapi_base_file_UploadFileRequest_descriptor,
+        new java.lang.String[] { "Filename", "Vpath", "Datas", "Bucket", });
+    internal_static_com_ywt_gapi_base_file_UploadFileResponse_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_com_ywt_gapi_base_file_UploadFileResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_com_ywt_gapi_base_file_UploadFileResponse_descriptor,
+        new java.lang.String[] { "Code", "FileUrl", "Msg", });
+    internal_static_com_ywt_gapi_base_file_ReadFileRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_com_ywt_gapi_base_file_ReadFileRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_com_ywt_gapi_base_file_ReadFileRequest_descriptor,
+        new java.lang.String[] { "FileUrl", });
+    internal_static_com_ywt_gapi_base_file_ReadFileResponse_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_com_ywt_gapi_base_file_ReadFileResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_com_ywt_gapi_base_file_ReadFileResponse_descriptor,
+        new java.lang.String[] { "Code", "Datas", "Msg", });
+    internal_static_com_ywt_gapi_base_file_ReadFileFromBucketRequest_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_com_ywt_gapi_base_file_ReadFileFromBucketRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_com_ywt_gapi_base_file_ReadFileFromBucketRequest_descriptor,
+        new java.lang.String[] { "FileUrl", "Bucket", });
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}

+ 391 - 0
src/main/java/com/ywt/gapi/base/file/FileService.java

@@ -0,0 +1,391 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+/**
+ * <pre>
+ * 对应 base-service 项目的 file.js 文件
+ * </pre>
+ *
+ * Protobuf service {@code com.ywt.gapi.base.file.FileService}
+ */
+public  abstract class FileService
+    implements com.google.protobuf.Service {
+  protected FileService() {}
+
+  public interface Interface {
+    /**
+     * <code>rpc uploadFile(.com.ywt.gapi.base.file.UploadFileRequest) returns (.com.ywt.gapi.base.file.UploadFileResponse);</code>
+     */
+    public abstract void uploadFile(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.UploadFileRequest request,
+        com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.UploadFileResponse> done);
+
+    /**
+     * <code>rpc readFile(.com.ywt.gapi.base.file.ReadFileRequest) returns (.com.ywt.gapi.base.file.ReadFileResponse);</code>
+     */
+    public abstract void readFile(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.ReadFileRequest request,
+        com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.ReadFileResponse> done);
+
+    /**
+     * <pre>
+     *根据bucket读取文件
+     * </pre>
+     *
+     * <code>rpc readFileFromBucket(.com.ywt.gapi.base.file.ReadFileFromBucketRequest) returns (.com.ywt.gapi.base.file.ReadFileResponse);</code>
+     */
+    public abstract void readFileFromBucket(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.ReadFileFromBucketRequest request,
+        com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.ReadFileResponse> done);
+
+  }
+
+  public static com.google.protobuf.Service newReflectiveService(
+      final Interface impl) {
+    return new FileService() {
+      @java.lang.Override
+      public  void uploadFile(
+          com.google.protobuf.RpcController controller,
+          com.ywt.gapi.base.file.UploadFileRequest request,
+          com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.UploadFileResponse> done) {
+        impl.uploadFile(controller, request, done);
+      }
+
+      @java.lang.Override
+      public  void readFile(
+          com.google.protobuf.RpcController controller,
+          com.ywt.gapi.base.file.ReadFileRequest request,
+          com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.ReadFileResponse> done) {
+        impl.readFile(controller, request, done);
+      }
+
+      @java.lang.Override
+      public  void readFileFromBucket(
+          com.google.protobuf.RpcController controller,
+          com.ywt.gapi.base.file.ReadFileFromBucketRequest request,
+          com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.ReadFileResponse> done) {
+        impl.readFileFromBucket(controller, request, done);
+      }
+
+    };
+  }
+
+  public static com.google.protobuf.BlockingService
+      newReflectiveBlockingService(final BlockingInterface impl) {
+    return new com.google.protobuf.BlockingService() {
+      public final com.google.protobuf.Descriptors.ServiceDescriptor
+          getDescriptorForType() {
+        return getDescriptor();
+      }
+
+      public final com.google.protobuf.Message callBlockingMethod(
+          com.google.protobuf.Descriptors.MethodDescriptor method,
+          com.google.protobuf.RpcController controller,
+          com.google.protobuf.Message request)
+          throws com.google.protobuf.ServiceException {
+        if (method.getService() != getDescriptor()) {
+          throw new java.lang.IllegalArgumentException(
+            "Service.callBlockingMethod() given method descriptor for " +
+            "wrong service type.");
+        }
+        switch(method.getIndex()) {
+          case 0:
+            return impl.uploadFile(controller, (com.ywt.gapi.base.file.UploadFileRequest)request);
+          case 1:
+            return impl.readFile(controller, (com.ywt.gapi.base.file.ReadFileRequest)request);
+          case 2:
+            return impl.readFileFromBucket(controller, (com.ywt.gapi.base.file.ReadFileFromBucketRequest)request);
+          default:
+            throw new java.lang.AssertionError("Can't get here.");
+        }
+      }
+
+      public final com.google.protobuf.Message
+          getRequestPrototype(
+          com.google.protobuf.Descriptors.MethodDescriptor method) {
+        if (method.getService() != getDescriptor()) {
+          throw new java.lang.IllegalArgumentException(
+            "Service.getRequestPrototype() given method " +
+            "descriptor for wrong service type.");
+        }
+        switch(method.getIndex()) {
+          case 0:
+            return com.ywt.gapi.base.file.UploadFileRequest.getDefaultInstance();
+          case 1:
+            return com.ywt.gapi.base.file.ReadFileRequest.getDefaultInstance();
+          case 2:
+            return com.ywt.gapi.base.file.ReadFileFromBucketRequest.getDefaultInstance();
+          default:
+            throw new java.lang.AssertionError("Can't get here.");
+        }
+      }
+
+      public final com.google.protobuf.Message
+          getResponsePrototype(
+          com.google.protobuf.Descriptors.MethodDescriptor method) {
+        if (method.getService() != getDescriptor()) {
+          throw new java.lang.IllegalArgumentException(
+            "Service.getResponsePrototype() given method " +
+            "descriptor for wrong service type.");
+        }
+        switch(method.getIndex()) {
+          case 0:
+            return com.ywt.gapi.base.file.UploadFileResponse.getDefaultInstance();
+          case 1:
+            return com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance();
+          case 2:
+            return com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance();
+          default:
+            throw new java.lang.AssertionError("Can't get here.");
+        }
+      }
+
+    };
+  }
+
+  /**
+   * <code>rpc uploadFile(.com.ywt.gapi.base.file.UploadFileRequest) returns (.com.ywt.gapi.base.file.UploadFileResponse);</code>
+   */
+  public abstract void uploadFile(
+      com.google.protobuf.RpcController controller,
+      com.ywt.gapi.base.file.UploadFileRequest request,
+      com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.UploadFileResponse> done);
+
+  /**
+   * <code>rpc readFile(.com.ywt.gapi.base.file.ReadFileRequest) returns (.com.ywt.gapi.base.file.ReadFileResponse);</code>
+   */
+  public abstract void readFile(
+      com.google.protobuf.RpcController controller,
+      com.ywt.gapi.base.file.ReadFileRequest request,
+      com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.ReadFileResponse> done);
+
+  /**
+   * <pre>
+   *根据bucket读取文件
+   * </pre>
+   *
+   * <code>rpc readFileFromBucket(.com.ywt.gapi.base.file.ReadFileFromBucketRequest) returns (.com.ywt.gapi.base.file.ReadFileResponse);</code>
+   */
+  public abstract void readFileFromBucket(
+      com.google.protobuf.RpcController controller,
+      com.ywt.gapi.base.file.ReadFileFromBucketRequest request,
+      com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.ReadFileResponse> done);
+
+  public static final
+      com.google.protobuf.Descriptors.ServiceDescriptor
+      getDescriptor() {
+    return com.ywt.gapi.base.file.File.getDescriptor().getServices().get(0);
+  }
+  public final com.google.protobuf.Descriptors.ServiceDescriptor
+      getDescriptorForType() {
+    return getDescriptor();
+  }
+
+  public final void callMethod(
+      com.google.protobuf.Descriptors.MethodDescriptor method,
+      com.google.protobuf.RpcController controller,
+      com.google.protobuf.Message request,
+      com.google.protobuf.RpcCallback<
+        com.google.protobuf.Message> done) {
+    if (method.getService() != getDescriptor()) {
+      throw new java.lang.IllegalArgumentException(
+        "Service.callMethod() given method descriptor for wrong " +
+        "service type.");
+    }
+    switch(method.getIndex()) {
+      case 0:
+        this.uploadFile(controller, (com.ywt.gapi.base.file.UploadFileRequest)request,
+          com.google.protobuf.RpcUtil.<com.ywt.gapi.base.file.UploadFileResponse>specializeCallback(
+            done));
+        return;
+      case 1:
+        this.readFile(controller, (com.ywt.gapi.base.file.ReadFileRequest)request,
+          com.google.protobuf.RpcUtil.<com.ywt.gapi.base.file.ReadFileResponse>specializeCallback(
+            done));
+        return;
+      case 2:
+        this.readFileFromBucket(controller, (com.ywt.gapi.base.file.ReadFileFromBucketRequest)request,
+          com.google.protobuf.RpcUtil.<com.ywt.gapi.base.file.ReadFileResponse>specializeCallback(
+            done));
+        return;
+      default:
+        throw new java.lang.AssertionError("Can't get here.");
+    }
+  }
+
+  public final com.google.protobuf.Message
+      getRequestPrototype(
+      com.google.protobuf.Descriptors.MethodDescriptor method) {
+    if (method.getService() != getDescriptor()) {
+      throw new java.lang.IllegalArgumentException(
+        "Service.getRequestPrototype() given method " +
+        "descriptor for wrong service type.");
+    }
+    switch(method.getIndex()) {
+      case 0:
+        return com.ywt.gapi.base.file.UploadFileRequest.getDefaultInstance();
+      case 1:
+        return com.ywt.gapi.base.file.ReadFileRequest.getDefaultInstance();
+      case 2:
+        return com.ywt.gapi.base.file.ReadFileFromBucketRequest.getDefaultInstance();
+      default:
+        throw new java.lang.AssertionError("Can't get here.");
+    }
+  }
+
+  public final com.google.protobuf.Message
+      getResponsePrototype(
+      com.google.protobuf.Descriptors.MethodDescriptor method) {
+    if (method.getService() != getDescriptor()) {
+      throw new java.lang.IllegalArgumentException(
+        "Service.getResponsePrototype() given method " +
+        "descriptor for wrong service type.");
+    }
+    switch(method.getIndex()) {
+      case 0:
+        return com.ywt.gapi.base.file.UploadFileResponse.getDefaultInstance();
+      case 1:
+        return com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance();
+      case 2:
+        return com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance();
+      default:
+        throw new java.lang.AssertionError("Can't get here.");
+    }
+  }
+
+  public static Stub newStub(
+      com.google.protobuf.RpcChannel channel) {
+    return new Stub(channel);
+  }
+
+  public static final class Stub extends com.ywt.gapi.base.file.FileService implements Interface {
+    private Stub(com.google.protobuf.RpcChannel channel) {
+      this.channel = channel;
+    }
+
+    private final com.google.protobuf.RpcChannel channel;
+
+    public com.google.protobuf.RpcChannel getChannel() {
+      return channel;
+    }
+
+    public  void uploadFile(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.UploadFileRequest request,
+        com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.UploadFileResponse> done) {
+      channel.callMethod(
+        getDescriptor().getMethods().get(0),
+        controller,
+        request,
+        com.ywt.gapi.base.file.UploadFileResponse.getDefaultInstance(),
+        com.google.protobuf.RpcUtil.generalizeCallback(
+          done,
+          com.ywt.gapi.base.file.UploadFileResponse.class,
+          com.ywt.gapi.base.file.UploadFileResponse.getDefaultInstance()));
+    }
+
+    public  void readFile(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.ReadFileRequest request,
+        com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.ReadFileResponse> done) {
+      channel.callMethod(
+        getDescriptor().getMethods().get(1),
+        controller,
+        request,
+        com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance(),
+        com.google.protobuf.RpcUtil.generalizeCallback(
+          done,
+          com.ywt.gapi.base.file.ReadFileResponse.class,
+          com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance()));
+    }
+
+    public  void readFileFromBucket(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.ReadFileFromBucketRequest request,
+        com.google.protobuf.RpcCallback<com.ywt.gapi.base.file.ReadFileResponse> done) {
+      channel.callMethod(
+        getDescriptor().getMethods().get(2),
+        controller,
+        request,
+        com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance(),
+        com.google.protobuf.RpcUtil.generalizeCallback(
+          done,
+          com.ywt.gapi.base.file.ReadFileResponse.class,
+          com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance()));
+    }
+  }
+
+  public static BlockingInterface newBlockingStub(
+      com.google.protobuf.BlockingRpcChannel channel) {
+    return new BlockingStub(channel);
+  }
+
+  public interface BlockingInterface {
+    public com.ywt.gapi.base.file.UploadFileResponse uploadFile(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.UploadFileRequest request)
+        throws com.google.protobuf.ServiceException;
+
+    public com.ywt.gapi.base.file.ReadFileResponse readFile(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.ReadFileRequest request)
+        throws com.google.protobuf.ServiceException;
+
+    public com.ywt.gapi.base.file.ReadFileResponse readFileFromBucket(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.ReadFileFromBucketRequest request)
+        throws com.google.protobuf.ServiceException;
+  }
+
+  private static final class BlockingStub implements BlockingInterface {
+    private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
+      this.channel = channel;
+    }
+
+    private final com.google.protobuf.BlockingRpcChannel channel;
+
+    public com.ywt.gapi.base.file.UploadFileResponse uploadFile(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.UploadFileRequest request)
+        throws com.google.protobuf.ServiceException {
+      return (com.ywt.gapi.base.file.UploadFileResponse) channel.callBlockingMethod(
+        getDescriptor().getMethods().get(0),
+        controller,
+        request,
+        com.ywt.gapi.base.file.UploadFileResponse.getDefaultInstance());
+    }
+
+
+    public com.ywt.gapi.base.file.ReadFileResponse readFile(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.ReadFileRequest request)
+        throws com.google.protobuf.ServiceException {
+      return (com.ywt.gapi.base.file.ReadFileResponse) channel.callBlockingMethod(
+        getDescriptor().getMethods().get(1),
+        controller,
+        request,
+        com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance());
+    }
+
+
+    public com.ywt.gapi.base.file.ReadFileResponse readFileFromBucket(
+        com.google.protobuf.RpcController controller,
+        com.ywt.gapi.base.file.ReadFileFromBucketRequest request)
+        throws com.google.protobuf.ServiceException {
+      return (com.ywt.gapi.base.file.ReadFileResponse) channel.callBlockingMethod(
+        getDescriptor().getMethods().get(2),
+        controller,
+        request,
+        com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance());
+    }
+
+  }
+
+  // @@protoc_insertion_point(class_scope:com.ywt.gapi.base.file.FileService)
+}
+

+ 401 - 0
src/main/java/com/ywt/gapi/base/file/FileServiceGrpc.java

@@ -0,0 +1,401 @@
+package com.ywt.gapi.base.file;
+
+import static io.grpc.stub.ClientCalls.asyncUnaryCall;
+import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
+import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
+import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
+import static io.grpc.stub.ClientCalls.blockingUnaryCall;
+import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
+import static io.grpc.stub.ClientCalls.futureUnaryCall;
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+import static io.grpc.stub.ServerCalls.asyncUnaryCall;
+import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
+import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
+import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
+import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
+import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
+
+/**
+ * <pre>
+ * 对应 base-service 项目的 file.js 文件
+ * </pre>
+ */
+@javax.annotation.Generated(
+    value = "by gRPC proto compiler (version 1.7.2-SNAPSHOT)",
+    comments = "Source: file.proto")
+public final class FileServiceGrpc {
+
+  private FileServiceGrpc() {}
+
+  public static final String SERVICE_NAME = "com.ywt.gapi.base.file.FileService";
+
+  // Static method descriptors that strictly reflect the proto.
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  public static final io.grpc.MethodDescriptor<com.ywt.gapi.base.file.UploadFileRequest,
+      com.ywt.gapi.base.file.UploadFileResponse> METHOD_UPLOAD_FILE =
+      io.grpc.MethodDescriptor.<com.ywt.gapi.base.file.UploadFileRequest, com.ywt.gapi.base.file.UploadFileResponse>newBuilder()
+          .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName(generateFullMethodName(
+              "com.ywt.gapi.base.file.FileService", "uploadFile"))
+          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+              com.ywt.gapi.base.file.UploadFileRequest.getDefaultInstance()))
+          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+              com.ywt.gapi.base.file.UploadFileResponse.getDefaultInstance()))
+          .setSchemaDescriptor(new FileServiceMethodDescriptorSupplier("uploadFile"))
+          .build();
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  public static final io.grpc.MethodDescriptor<com.ywt.gapi.base.file.ReadFileRequest,
+      com.ywt.gapi.base.file.ReadFileResponse> METHOD_READ_FILE =
+      io.grpc.MethodDescriptor.<com.ywt.gapi.base.file.ReadFileRequest, com.ywt.gapi.base.file.ReadFileResponse>newBuilder()
+          .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName(generateFullMethodName(
+              "com.ywt.gapi.base.file.FileService", "readFile"))
+          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+              com.ywt.gapi.base.file.ReadFileRequest.getDefaultInstance()))
+          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+              com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance()))
+          .setSchemaDescriptor(new FileServiceMethodDescriptorSupplier("readFile"))
+          .build();
+  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
+  public static final io.grpc.MethodDescriptor<com.ywt.gapi.base.file.ReadFileFromBucketRequest,
+      com.ywt.gapi.base.file.ReadFileResponse> METHOD_READ_FILE_FROM_BUCKET =
+      io.grpc.MethodDescriptor.<com.ywt.gapi.base.file.ReadFileFromBucketRequest, com.ywt.gapi.base.file.ReadFileResponse>newBuilder()
+          .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+          .setFullMethodName(generateFullMethodName(
+              "com.ywt.gapi.base.file.FileService", "readFileFromBucket"))
+          .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+              com.ywt.gapi.base.file.ReadFileFromBucketRequest.getDefaultInstance()))
+          .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+              com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance()))
+          .setSchemaDescriptor(new FileServiceMethodDescriptorSupplier("readFileFromBucket"))
+          .build();
+
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
+  public static FileServiceStub newStub(io.grpc.Channel channel) {
+    return new FileServiceStub(channel);
+  }
+
+  /**
+   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+   */
+  public static FileServiceBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
+    return new FileServiceBlockingStub(channel);
+  }
+
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static FileServiceFutureStub newFutureStub(
+      io.grpc.Channel channel) {
+    return new FileServiceFutureStub(channel);
+  }
+
+  /**
+   * <pre>
+   * 对应 base-service 项目的 file.js 文件
+   * </pre>
+   */
+  public static abstract class FileServiceImplBase implements io.grpc.BindableService {
+
+    /**
+     */
+    public void uploadFile(com.ywt.gapi.base.file.UploadFileRequest request,
+        io.grpc.stub.StreamObserver<com.ywt.gapi.base.file.UploadFileResponse> responseObserver) {
+      asyncUnimplementedUnaryCall(METHOD_UPLOAD_FILE, responseObserver);
+    }
+
+    /**
+     */
+    public void readFile(com.ywt.gapi.base.file.ReadFileRequest request,
+        io.grpc.stub.StreamObserver<com.ywt.gapi.base.file.ReadFileResponse> responseObserver) {
+      asyncUnimplementedUnaryCall(METHOD_READ_FILE, responseObserver);
+    }
+
+    /**
+     * <pre>
+     *根据bucket读取文件
+     * </pre>
+     */
+    public void readFileFromBucket(com.ywt.gapi.base.file.ReadFileFromBucketRequest request,
+        io.grpc.stub.StreamObserver<com.ywt.gapi.base.file.ReadFileResponse> responseObserver) {
+      asyncUnimplementedUnaryCall(METHOD_READ_FILE_FROM_BUCKET, responseObserver);
+    }
+
+    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
+      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
+          .addMethod(
+            METHOD_UPLOAD_FILE,
+            asyncUnaryCall(
+              new MethodHandlers<
+                com.ywt.gapi.base.file.UploadFileRequest,
+                com.ywt.gapi.base.file.UploadFileResponse>(
+                  this, METHODID_UPLOAD_FILE)))
+          .addMethod(
+            METHOD_READ_FILE,
+            asyncUnaryCall(
+              new MethodHandlers<
+                com.ywt.gapi.base.file.ReadFileRequest,
+                com.ywt.gapi.base.file.ReadFileResponse>(
+                  this, METHODID_READ_FILE)))
+          .addMethod(
+            METHOD_READ_FILE_FROM_BUCKET,
+            asyncUnaryCall(
+              new MethodHandlers<
+                com.ywt.gapi.base.file.ReadFileFromBucketRequest,
+                com.ywt.gapi.base.file.ReadFileResponse>(
+                  this, METHODID_READ_FILE_FROM_BUCKET)))
+          .build();
+    }
+  }
+
+  /**
+   * <pre>
+   * 对应 base-service 项目的 file.js 文件
+   * </pre>
+   */
+  public static final class FileServiceStub extends io.grpc.stub.AbstractStub<FileServiceStub> {
+    private FileServiceStub(io.grpc.Channel channel) {
+      super(channel);
+    }
+
+    private FileServiceStub(io.grpc.Channel channel,
+        io.grpc.CallOptions callOptions) {
+      super(channel, callOptions);
+    }
+
+    @java.lang.Override
+    protected FileServiceStub build(io.grpc.Channel channel,
+        io.grpc.CallOptions callOptions) {
+      return new FileServiceStub(channel, callOptions);
+    }
+
+    /**
+     */
+    public void uploadFile(com.ywt.gapi.base.file.UploadFileRequest request,
+        io.grpc.stub.StreamObserver<com.ywt.gapi.base.file.UploadFileResponse> responseObserver) {
+      asyncUnaryCall(
+          getChannel().newCall(METHOD_UPLOAD_FILE, getCallOptions()), request, responseObserver);
+    }
+
+    /**
+     */
+    public void readFile(com.ywt.gapi.base.file.ReadFileRequest request,
+        io.grpc.stub.StreamObserver<com.ywt.gapi.base.file.ReadFileResponse> responseObserver) {
+      asyncUnaryCall(
+          getChannel().newCall(METHOD_READ_FILE, getCallOptions()), request, responseObserver);
+    }
+
+    /**
+     * <pre>
+     *根据bucket读取文件
+     * </pre>
+     */
+    public void readFileFromBucket(com.ywt.gapi.base.file.ReadFileFromBucketRequest request,
+        io.grpc.stub.StreamObserver<com.ywt.gapi.base.file.ReadFileResponse> responseObserver) {
+      asyncUnaryCall(
+          getChannel().newCall(METHOD_READ_FILE_FROM_BUCKET, getCallOptions()), request, responseObserver);
+    }
+  }
+
+  /**
+   * <pre>
+   * 对应 base-service 项目的 file.js 文件
+   * </pre>
+   */
+  public static final class FileServiceBlockingStub extends io.grpc.stub.AbstractStub<FileServiceBlockingStub> {
+    private FileServiceBlockingStub(io.grpc.Channel channel) {
+      super(channel);
+    }
+
+    private FileServiceBlockingStub(io.grpc.Channel channel,
+        io.grpc.CallOptions callOptions) {
+      super(channel, callOptions);
+    }
+
+    @java.lang.Override
+    protected FileServiceBlockingStub build(io.grpc.Channel channel,
+        io.grpc.CallOptions callOptions) {
+      return new FileServiceBlockingStub(channel, callOptions);
+    }
+
+    /**
+     */
+    public com.ywt.gapi.base.file.UploadFileResponse uploadFile(com.ywt.gapi.base.file.UploadFileRequest request) {
+      return blockingUnaryCall(
+          getChannel(), METHOD_UPLOAD_FILE, getCallOptions(), request);
+    }
+
+    /**
+     */
+    public com.ywt.gapi.base.file.ReadFileResponse readFile(com.ywt.gapi.base.file.ReadFileRequest request) {
+      return blockingUnaryCall(
+          getChannel(), METHOD_READ_FILE, getCallOptions(), request);
+    }
+
+    /**
+     * <pre>
+     *根据bucket读取文件
+     * </pre>
+     */
+    public com.ywt.gapi.base.file.ReadFileResponse readFileFromBucket(com.ywt.gapi.base.file.ReadFileFromBucketRequest request) {
+      return blockingUnaryCall(
+          getChannel(), METHOD_READ_FILE_FROM_BUCKET, getCallOptions(), request);
+    }
+  }
+
+  /**
+   * <pre>
+   * 对应 base-service 项目的 file.js 文件
+   * </pre>
+   */
+  public static final class FileServiceFutureStub extends io.grpc.stub.AbstractStub<FileServiceFutureStub> {
+    private FileServiceFutureStub(io.grpc.Channel channel) {
+      super(channel);
+    }
+
+    private FileServiceFutureStub(io.grpc.Channel channel,
+        io.grpc.CallOptions callOptions) {
+      super(channel, callOptions);
+    }
+
+    @java.lang.Override
+    protected FileServiceFutureStub build(io.grpc.Channel channel,
+        io.grpc.CallOptions callOptions) {
+      return new FileServiceFutureStub(channel, callOptions);
+    }
+
+    /**
+     */
+    public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.base.file.UploadFileResponse> uploadFile(
+        com.ywt.gapi.base.file.UploadFileRequest request) {
+      return futureUnaryCall(
+          getChannel().newCall(METHOD_UPLOAD_FILE, getCallOptions()), request);
+    }
+
+    /**
+     */
+    public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.base.file.ReadFileResponse> readFile(
+        com.ywt.gapi.base.file.ReadFileRequest request) {
+      return futureUnaryCall(
+          getChannel().newCall(METHOD_READ_FILE, getCallOptions()), request);
+    }
+
+    /**
+     * <pre>
+     *根据bucket读取文件
+     * </pre>
+     */
+    public com.google.common.util.concurrent.ListenableFuture<com.ywt.gapi.base.file.ReadFileResponse> readFileFromBucket(
+        com.ywt.gapi.base.file.ReadFileFromBucketRequest request) {
+      return futureUnaryCall(
+          getChannel().newCall(METHOD_READ_FILE_FROM_BUCKET, getCallOptions()), request);
+    }
+  }
+
+  private static final int METHODID_UPLOAD_FILE = 0;
+  private static final int METHODID_READ_FILE = 1;
+  private static final int METHODID_READ_FILE_FROM_BUCKET = 2;
+
+  private static final class MethodHandlers<Req, Resp> implements
+      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
+      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
+      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
+      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
+    private final FileServiceImplBase serviceImpl;
+    private final int methodId;
+
+    MethodHandlers(FileServiceImplBase serviceImpl, int methodId) {
+      this.serviceImpl = serviceImpl;
+      this.methodId = methodId;
+    }
+
+    @java.lang.Override
+    @java.lang.SuppressWarnings("unchecked")
+    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
+      switch (methodId) {
+        case METHODID_UPLOAD_FILE:
+          serviceImpl.uploadFile((com.ywt.gapi.base.file.UploadFileRequest) request,
+              (io.grpc.stub.StreamObserver<com.ywt.gapi.base.file.UploadFileResponse>) responseObserver);
+          break;
+        case METHODID_READ_FILE:
+          serviceImpl.readFile((com.ywt.gapi.base.file.ReadFileRequest) request,
+              (io.grpc.stub.StreamObserver<com.ywt.gapi.base.file.ReadFileResponse>) responseObserver);
+          break;
+        case METHODID_READ_FILE_FROM_BUCKET:
+          serviceImpl.readFileFromBucket((com.ywt.gapi.base.file.ReadFileFromBucketRequest) request,
+              (io.grpc.stub.StreamObserver<com.ywt.gapi.base.file.ReadFileResponse>) responseObserver);
+          break;
+        default:
+          throw new AssertionError();
+      }
+    }
+
+    @java.lang.Override
+    @java.lang.SuppressWarnings("unchecked")
+    public io.grpc.stub.StreamObserver<Req> invoke(
+        io.grpc.stub.StreamObserver<Resp> responseObserver) {
+      switch (methodId) {
+        default:
+          throw new AssertionError();
+      }
+    }
+  }
+
+  private static abstract class FileServiceBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
+    FileServiceBaseDescriptorSupplier() {}
+
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
+      return com.ywt.gapi.base.file.File.getDescriptor();
+    }
+
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
+      return getFileDescriptor().findServiceByName("FileService");
+    }
+  }
+
+  private static final class FileServiceFileDescriptorSupplier
+      extends FileServiceBaseDescriptorSupplier {
+    FileServiceFileDescriptorSupplier() {}
+  }
+
+  private static final class FileServiceMethodDescriptorSupplier
+      extends FileServiceBaseDescriptorSupplier
+      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
+    private final String methodName;
+
+    FileServiceMethodDescriptorSupplier(String methodName) {
+      this.methodName = methodName;
+    }
+
+    @java.lang.Override
+    public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
+      return getServiceDescriptor().findMethodByName(methodName);
+    }
+  }
+
+  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
+
+  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
+    io.grpc.ServiceDescriptor result = serviceDescriptor;
+    if (result == null) {
+      synchronized (FileServiceGrpc.class) {
+        result = serviceDescriptor;
+        if (result == null) {
+          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
+              .setSchemaDescriptor(new FileServiceFileDescriptorSupplier())
+              .addMethod(METHOD_UPLOAD_FILE)
+              .addMethod(METHOD_READ_FILE)
+              .addMethod(METHOD_READ_FILE_FROM_BUCKET)
+              .build();
+        }
+      }
+    }
+    return result;
+  }
+}

+ 640 - 0
src/main/java/com/ywt/gapi/base/file/ReadFileFromBucketRequest.java

@@ -0,0 +1,640 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+/**
+ * <pre>
+ *根据bucket读取文件request
+ * </pre>
+ *
+ * Protobuf type {@code com.ywt.gapi.base.file.ReadFileFromBucketRequest}
+ */
+public  final class ReadFileFromBucketRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:com.ywt.gapi.base.file.ReadFileFromBucketRequest)
+    ReadFileFromBucketRequestOrBuilder {
+  // Use ReadFileFromBucketRequest.newBuilder() to construct.
+  private ReadFileFromBucketRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+    super(builder);
+  }
+  private ReadFileFromBucketRequest() {
+    fileUrl_ = "";
+    bucket_ = "";
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+  }
+  private ReadFileFromBucketRequest(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    this();
+    int mutable_bitField0_ = 0;
+    try {
+      boolean done = false;
+      while (!done) {
+        int tag = input.readTag();
+        switch (tag) {
+          case 0:
+            done = true;
+            break;
+          default: {
+            if (!input.skipField(tag)) {
+              done = true;
+            }
+            break;
+          }
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            fileUrl_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            bucket_ = s;
+            break;
+          }
+        }
+      }
+    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+      throw e.setUnfinishedMessage(this);
+    } catch (java.io.IOException e) {
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
+    } finally {
+      makeExtensionsImmutable();
+    }
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileFromBucketRequest_descriptor;
+  }
+
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileFromBucketRequest_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            com.ywt.gapi.base.file.ReadFileFromBucketRequest.class, com.ywt.gapi.base.file.ReadFileFromBucketRequest.Builder.class);
+  }
+
+  public static final int FILEURL_FIELD_NUMBER = 1;
+  private volatile java.lang.Object fileUrl_;
+  /**
+   * <code>string fileUrl = 1;</code>
+   */
+  public java.lang.String getFileUrl() {
+    java.lang.Object ref = fileUrl_;
+    if (ref instanceof java.lang.String) {
+      return (java.lang.String) ref;
+    } else {
+      com.google.protobuf.ByteString bs = 
+          (com.google.protobuf.ByteString) ref;
+      java.lang.String s = bs.toStringUtf8();
+      fileUrl_ = s;
+      return s;
+    }
+  }
+  /**
+   * <code>string fileUrl = 1;</code>
+   */
+  public com.google.protobuf.ByteString
+      getFileUrlBytes() {
+    java.lang.Object ref = fileUrl_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      fileUrl_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  public static final int BUCKET_FIELD_NUMBER = 2;
+  private volatile java.lang.Object bucket_;
+  /**
+   * <code>string bucket = 2;</code>
+   */
+  public java.lang.String getBucket() {
+    java.lang.Object ref = bucket_;
+    if (ref instanceof java.lang.String) {
+      return (java.lang.String) ref;
+    } else {
+      com.google.protobuf.ByteString bs = 
+          (com.google.protobuf.ByteString) ref;
+      java.lang.String s = bs.toStringUtf8();
+      bucket_ = s;
+      return s;
+    }
+  }
+  /**
+   * <code>string bucket = 2;</code>
+   */
+  public com.google.protobuf.ByteString
+      getBucketBytes() {
+    java.lang.Object ref = bucket_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      bucket_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  private byte memoizedIsInitialized = -1;
+  public final boolean isInitialized() {
+    byte isInitialized = memoizedIsInitialized;
+    if (isInitialized == 1) return true;
+    if (isInitialized == 0) return false;
+
+    memoizedIsInitialized = 1;
+    return true;
+  }
+
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (!getFileUrlBytes().isEmpty()) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileUrl_);
+    }
+    if (!getBucketBytes().isEmpty()) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bucket_);
+    }
+  }
+
+  public int getSerializedSize() {
+    int size = memoizedSize;
+    if (size != -1) return size;
+
+    size = 0;
+    if (!getFileUrlBytes().isEmpty()) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileUrl_);
+    }
+    if (!getBucketBytes().isEmpty()) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bucket_);
+    }
+    memoizedSize = size;
+    return size;
+  }
+
+  private static final long serialVersionUID = 0L;
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
+    if (obj == this) {
+     return true;
+    }
+    if (!(obj instanceof com.ywt.gapi.base.file.ReadFileFromBucketRequest)) {
+      return super.equals(obj);
+    }
+    com.ywt.gapi.base.file.ReadFileFromBucketRequest other = (com.ywt.gapi.base.file.ReadFileFromBucketRequest) obj;
+
+    boolean result = true;
+    result = result && getFileUrl()
+        .equals(other.getFileUrl());
+    result = result && getBucket()
+        .equals(other.getBucket());
+    return result;
+  }
+
+  @java.lang.Override
+  public int hashCode() {
+    if (memoizedHashCode != 0) {
+      return memoizedHashCode;
+    }
+    int hash = 41;
+    hash = (19 * hash) + getDescriptor().hashCode();
+    hash = (37 * hash) + FILEURL_FIELD_NUMBER;
+    hash = (53 * hash) + getFileUrl().hashCode();
+    hash = (37 * hash) + BUCKET_FIELD_NUMBER;
+    hash = (53 * hash) + getBucket().hashCode();
+    hash = (29 * hash) + unknownFields.hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest parseFrom(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
+  }
+
+  public Builder newBuilderForType() { return newBuilder(); }
+  public static Builder newBuilder() {
+    return DEFAULT_INSTANCE.toBuilder();
+  }
+  public static Builder newBuilder(com.ywt.gapi.base.file.ReadFileFromBucketRequest prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * <pre>
+   *根据bucket读取文件request
+   * </pre>
+   *
+   * Protobuf type {@code com.ywt.gapi.base.file.ReadFileFromBucketRequest}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.base.file.ReadFileFromBucketRequest)
+      com.ywt.gapi.base.file.ReadFileFromBucketRequestOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileFromBucketRequest_descriptor;
+    }
+
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileFromBucketRequest_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              com.ywt.gapi.base.file.ReadFileFromBucketRequest.class, com.ywt.gapi.base.file.ReadFileFromBucketRequest.Builder.class);
+    }
+
+    // Construct using com.ywt.gapi.base.file.ReadFileFromBucketRequest.newBuilder()
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
+    }
+    public Builder clear() {
+      super.clear();
+      fileUrl_ = "";
+
+      bucket_ = "";
+
+      return this;
+    }
+
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileFromBucketRequest_descriptor;
+    }
+
+    public com.ywt.gapi.base.file.ReadFileFromBucketRequest getDefaultInstanceForType() {
+      return com.ywt.gapi.base.file.ReadFileFromBucketRequest.getDefaultInstance();
+    }
+
+    public com.ywt.gapi.base.file.ReadFileFromBucketRequest build() {
+      com.ywt.gapi.base.file.ReadFileFromBucketRequest result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    public com.ywt.gapi.base.file.ReadFileFromBucketRequest buildPartial() {
+      com.ywt.gapi.base.file.ReadFileFromBucketRequest result = new com.ywt.gapi.base.file.ReadFileFromBucketRequest(this);
+      result.fileUrl_ = fileUrl_;
+      result.bucket_ = bucket_;
+      onBuilt();
+      return result;
+    }
+
+    public Builder clone() {
+      return (Builder) super.clone();
+    }
+    public Builder setField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        Object value) {
+      return (Builder) super.setField(field, value);
+    }
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
+      return (Builder) super.clearField(field);
+    }
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      return (Builder) super.clearOneof(oneof);
+    }
+    public Builder setRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, Object value) {
+      return (Builder) super.setRepeatedField(field, index, value);
+    }
+    public Builder addRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        Object value) {
+      return (Builder) super.addRepeatedField(field, value);
+    }
+    public Builder mergeFrom(com.google.protobuf.Message other) {
+      if (other instanceof com.ywt.gapi.base.file.ReadFileFromBucketRequest) {
+        return mergeFrom((com.ywt.gapi.base.file.ReadFileFromBucketRequest)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(com.ywt.gapi.base.file.ReadFileFromBucketRequest other) {
+      if (other == com.ywt.gapi.base.file.ReadFileFromBucketRequest.getDefaultInstance()) return this;
+      if (!other.getFileUrl().isEmpty()) {
+        fileUrl_ = other.fileUrl_;
+        onChanged();
+      }
+      if (!other.getBucket().isEmpty()) {
+        bucket_ = other.bucket_;
+        onChanged();
+      }
+      onChanged();
+      return this;
+    }
+
+    public final boolean isInitialized() {
+      return true;
+    }
+
+    public Builder mergeFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      com.ywt.gapi.base.file.ReadFileFromBucketRequest parsedMessage = null;
+      try {
+        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        parsedMessage = (com.ywt.gapi.base.file.ReadFileFromBucketRequest) e.getUnfinishedMessage();
+        throw e.unwrapIOException();
+      } finally {
+        if (parsedMessage != null) {
+          mergeFrom(parsedMessage);
+        }
+      }
+      return this;
+    }
+
+    private java.lang.Object fileUrl_ = "";
+    /**
+     * <code>string fileUrl = 1;</code>
+     */
+    public java.lang.String getFileUrl() {
+      java.lang.Object ref = fileUrl_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        fileUrl_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * <code>string fileUrl = 1;</code>
+     */
+    public com.google.protobuf.ByteString
+        getFileUrlBytes() {
+      java.lang.Object ref = fileUrl_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        fileUrl_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * <code>string fileUrl = 1;</code>
+     */
+    public Builder setFileUrl(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      fileUrl_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <code>string fileUrl = 1;</code>
+     */
+    public Builder clearFileUrl() {
+      
+      fileUrl_ = getDefaultInstance().getFileUrl();
+      onChanged();
+      return this;
+    }
+    /**
+     * <code>string fileUrl = 1;</code>
+     */
+    public Builder setFileUrlBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      fileUrl_ = value;
+      onChanged();
+      return this;
+    }
+
+    private java.lang.Object bucket_ = "";
+    /**
+     * <code>string bucket = 2;</code>
+     */
+    public java.lang.String getBucket() {
+      java.lang.Object ref = bucket_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        bucket_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * <code>string bucket = 2;</code>
+     */
+    public com.google.protobuf.ByteString
+        getBucketBytes() {
+      java.lang.Object ref = bucket_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        bucket_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * <code>string bucket = 2;</code>
+     */
+    public Builder setBucket(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      bucket_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <code>string bucket = 2;</code>
+     */
+    public Builder clearBucket() {
+      
+      bucket_ = getDefaultInstance().getBucket();
+      onChanged();
+      return this;
+    }
+    /**
+     * <code>string bucket = 2;</code>
+     */
+    public Builder setBucketBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      bucket_ = value;
+      onChanged();
+      return this;
+    }
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return this;
+    }
+
+    public final Builder mergeUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return this;
+    }
+
+
+    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.base.file.ReadFileFromBucketRequest)
+  }
+
+  // @@protoc_insertion_point(class_scope:com.ywt.gapi.base.file.ReadFileFromBucketRequest)
+  private static final com.ywt.gapi.base.file.ReadFileFromBucketRequest DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new com.ywt.gapi.base.file.ReadFileFromBucketRequest();
+  }
+
+  public static com.ywt.gapi.base.file.ReadFileFromBucketRequest getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser<ReadFileFromBucketRequest>
+      PARSER = new com.google.protobuf.AbstractParser<ReadFileFromBucketRequest>() {
+    public ReadFileFromBucketRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+        return new ReadFileFromBucketRequest(input, extensionRegistry);
+    }
+  };
+
+  public static com.google.protobuf.Parser<ReadFileFromBucketRequest> parser() {
+    return PARSER;
+  }
+
+  @java.lang.Override
+  public com.google.protobuf.Parser<ReadFileFromBucketRequest> getParserForType() {
+    return PARSER;
+  }
+
+  public com.ywt.gapi.base.file.ReadFileFromBucketRequest getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+

+ 29 - 0
src/main/java/com/ywt/gapi/base/file/ReadFileFromBucketRequestOrBuilder.java

@@ -0,0 +1,29 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+public interface ReadFileFromBucketRequestOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:com.ywt.gapi.base.file.ReadFileFromBucketRequest)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * <code>string fileUrl = 1;</code>
+   */
+  java.lang.String getFileUrl();
+  /**
+   * <code>string fileUrl = 1;</code>
+   */
+  com.google.protobuf.ByteString
+      getFileUrlBytes();
+
+  /**
+   * <code>string bucket = 2;</code>
+   */
+  java.lang.String getBucket();
+  /**
+   * <code>string bucket = 2;</code>
+   */
+  com.google.protobuf.ByteString
+      getBucketBytes();
+}

+ 541 - 0
src/main/java/com/ywt/gapi/base/file/ReadFileRequest.java

@@ -0,0 +1,541 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+/**
+ * <pre>
+ *读取文件请求
+ * </pre>
+ *
+ * Protobuf type {@code com.ywt.gapi.base.file.ReadFileRequest}
+ */
+public  final class ReadFileRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:com.ywt.gapi.base.file.ReadFileRequest)
+    ReadFileRequestOrBuilder {
+  // Use ReadFileRequest.newBuilder() to construct.
+  private ReadFileRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+    super(builder);
+  }
+  private ReadFileRequest() {
+    fileUrl_ = "";
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+  }
+  private ReadFileRequest(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    this();
+    int mutable_bitField0_ = 0;
+    try {
+      boolean done = false;
+      while (!done) {
+        int tag = input.readTag();
+        switch (tag) {
+          case 0:
+            done = true;
+            break;
+          default: {
+            if (!input.skipField(tag)) {
+              done = true;
+            }
+            break;
+          }
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            fileUrl_ = s;
+            break;
+          }
+        }
+      }
+    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+      throw e.setUnfinishedMessage(this);
+    } catch (java.io.IOException e) {
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
+    } finally {
+      makeExtensionsImmutable();
+    }
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileRequest_descriptor;
+  }
+
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileRequest_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            com.ywt.gapi.base.file.ReadFileRequest.class, com.ywt.gapi.base.file.ReadFileRequest.Builder.class);
+  }
+
+  public static final int FILEURL_FIELD_NUMBER = 1;
+  private volatile java.lang.Object fileUrl_;
+  /**
+   * <pre>
+   *文件地址
+   * </pre>
+   *
+   * <code>string fileUrl = 1;</code>
+   */
+  public java.lang.String getFileUrl() {
+    java.lang.Object ref = fileUrl_;
+    if (ref instanceof java.lang.String) {
+      return (java.lang.String) ref;
+    } else {
+      com.google.protobuf.ByteString bs = 
+          (com.google.protobuf.ByteString) ref;
+      java.lang.String s = bs.toStringUtf8();
+      fileUrl_ = s;
+      return s;
+    }
+  }
+  /**
+   * <pre>
+   *文件地址
+   * </pre>
+   *
+   * <code>string fileUrl = 1;</code>
+   */
+  public com.google.protobuf.ByteString
+      getFileUrlBytes() {
+    java.lang.Object ref = fileUrl_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      fileUrl_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  private byte memoizedIsInitialized = -1;
+  public final boolean isInitialized() {
+    byte isInitialized = memoizedIsInitialized;
+    if (isInitialized == 1) return true;
+    if (isInitialized == 0) return false;
+
+    memoizedIsInitialized = 1;
+    return true;
+  }
+
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (!getFileUrlBytes().isEmpty()) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fileUrl_);
+    }
+  }
+
+  public int getSerializedSize() {
+    int size = memoizedSize;
+    if (size != -1) return size;
+
+    size = 0;
+    if (!getFileUrlBytes().isEmpty()) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fileUrl_);
+    }
+    memoizedSize = size;
+    return size;
+  }
+
+  private static final long serialVersionUID = 0L;
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
+    if (obj == this) {
+     return true;
+    }
+    if (!(obj instanceof com.ywt.gapi.base.file.ReadFileRequest)) {
+      return super.equals(obj);
+    }
+    com.ywt.gapi.base.file.ReadFileRequest other = (com.ywt.gapi.base.file.ReadFileRequest) obj;
+
+    boolean result = true;
+    result = result && getFileUrl()
+        .equals(other.getFileUrl());
+    return result;
+  }
+
+  @java.lang.Override
+  public int hashCode() {
+    if (memoizedHashCode != 0) {
+      return memoizedHashCode;
+    }
+    int hash = 41;
+    hash = (19 * hash) + getDescriptor().hashCode();
+    hash = (37 * hash) + FILEURL_FIELD_NUMBER;
+    hash = (53 * hash) + getFileUrl().hashCode();
+    hash = (29 * hash) + unknownFields.hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static com.ywt.gapi.base.file.ReadFileRequest parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.ReadFileRequest parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileRequest parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.ReadFileRequest parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.ReadFileRequest parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.ReadFileRequest parseFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.ReadFileRequest parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileRequest parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.ReadFileRequest parseFrom(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
+  }
+
+  public Builder newBuilderForType() { return newBuilder(); }
+  public static Builder newBuilder() {
+    return DEFAULT_INSTANCE.toBuilder();
+  }
+  public static Builder newBuilder(com.ywt.gapi.base.file.ReadFileRequest prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * <pre>
+   *读取文件请求
+   * </pre>
+   *
+   * Protobuf type {@code com.ywt.gapi.base.file.ReadFileRequest}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.base.file.ReadFileRequest)
+      com.ywt.gapi.base.file.ReadFileRequestOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileRequest_descriptor;
+    }
+
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileRequest_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              com.ywt.gapi.base.file.ReadFileRequest.class, com.ywt.gapi.base.file.ReadFileRequest.Builder.class);
+    }
+
+    // Construct using com.ywt.gapi.base.file.ReadFileRequest.newBuilder()
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
+    }
+    public Builder clear() {
+      super.clear();
+      fileUrl_ = "";
+
+      return this;
+    }
+
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileRequest_descriptor;
+    }
+
+    public com.ywt.gapi.base.file.ReadFileRequest getDefaultInstanceForType() {
+      return com.ywt.gapi.base.file.ReadFileRequest.getDefaultInstance();
+    }
+
+    public com.ywt.gapi.base.file.ReadFileRequest build() {
+      com.ywt.gapi.base.file.ReadFileRequest result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    public com.ywt.gapi.base.file.ReadFileRequest buildPartial() {
+      com.ywt.gapi.base.file.ReadFileRequest result = new com.ywt.gapi.base.file.ReadFileRequest(this);
+      result.fileUrl_ = fileUrl_;
+      onBuilt();
+      return result;
+    }
+
+    public Builder clone() {
+      return (Builder) super.clone();
+    }
+    public Builder setField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        Object value) {
+      return (Builder) super.setField(field, value);
+    }
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
+      return (Builder) super.clearField(field);
+    }
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      return (Builder) super.clearOneof(oneof);
+    }
+    public Builder setRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, Object value) {
+      return (Builder) super.setRepeatedField(field, index, value);
+    }
+    public Builder addRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        Object value) {
+      return (Builder) super.addRepeatedField(field, value);
+    }
+    public Builder mergeFrom(com.google.protobuf.Message other) {
+      if (other instanceof com.ywt.gapi.base.file.ReadFileRequest) {
+        return mergeFrom((com.ywt.gapi.base.file.ReadFileRequest)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(com.ywt.gapi.base.file.ReadFileRequest other) {
+      if (other == com.ywt.gapi.base.file.ReadFileRequest.getDefaultInstance()) return this;
+      if (!other.getFileUrl().isEmpty()) {
+        fileUrl_ = other.fileUrl_;
+        onChanged();
+      }
+      onChanged();
+      return this;
+    }
+
+    public final boolean isInitialized() {
+      return true;
+    }
+
+    public Builder mergeFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      com.ywt.gapi.base.file.ReadFileRequest parsedMessage = null;
+      try {
+        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        parsedMessage = (com.ywt.gapi.base.file.ReadFileRequest) e.getUnfinishedMessage();
+        throw e.unwrapIOException();
+      } finally {
+        if (parsedMessage != null) {
+          mergeFrom(parsedMessage);
+        }
+      }
+      return this;
+    }
+
+    private java.lang.Object fileUrl_ = "";
+    /**
+     * <pre>
+     *文件地址
+     * </pre>
+     *
+     * <code>string fileUrl = 1;</code>
+     */
+    public java.lang.String getFileUrl() {
+      java.lang.Object ref = fileUrl_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        fileUrl_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * <pre>
+     *文件地址
+     * </pre>
+     *
+     * <code>string fileUrl = 1;</code>
+     */
+    public com.google.protobuf.ByteString
+        getFileUrlBytes() {
+      java.lang.Object ref = fileUrl_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        fileUrl_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * <pre>
+     *文件地址
+     * </pre>
+     *
+     * <code>string fileUrl = 1;</code>
+     */
+    public Builder setFileUrl(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      fileUrl_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *文件地址
+     * </pre>
+     *
+     * <code>string fileUrl = 1;</code>
+     */
+    public Builder clearFileUrl() {
+      
+      fileUrl_ = getDefaultInstance().getFileUrl();
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *文件地址
+     * </pre>
+     *
+     * <code>string fileUrl = 1;</code>
+     */
+    public Builder setFileUrlBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      fileUrl_ = value;
+      onChanged();
+      return this;
+    }
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return this;
+    }
+
+    public final Builder mergeUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return this;
+    }
+
+
+    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.base.file.ReadFileRequest)
+  }
+
+  // @@protoc_insertion_point(class_scope:com.ywt.gapi.base.file.ReadFileRequest)
+  private static final com.ywt.gapi.base.file.ReadFileRequest DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new com.ywt.gapi.base.file.ReadFileRequest();
+  }
+
+  public static com.ywt.gapi.base.file.ReadFileRequest getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser<ReadFileRequest>
+      PARSER = new com.google.protobuf.AbstractParser<ReadFileRequest>() {
+    public ReadFileRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+        return new ReadFileRequest(input, extensionRegistry);
+    }
+  };
+
+  public static com.google.protobuf.Parser<ReadFileRequest> parser() {
+    return PARSER;
+  }
+
+  @java.lang.Override
+  public com.google.protobuf.Parser<ReadFileRequest> getParserForType() {
+    return PARSER;
+  }
+
+  public com.ywt.gapi.base.file.ReadFileRequest getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+

+ 27 - 0
src/main/java/com/ywt/gapi/base/file/ReadFileRequestOrBuilder.java

@@ -0,0 +1,27 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+public interface ReadFileRequestOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:com.ywt.gapi.base.file.ReadFileRequest)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * <pre>
+   *文件地址
+   * </pre>
+   *
+   * <code>string fileUrl = 1;</code>
+   */
+  java.lang.String getFileUrl();
+  /**
+   * <pre>
+   *文件地址
+   * </pre>
+   *
+   * <code>string fileUrl = 1;</code>
+   */
+  com.google.protobuf.ByteString
+      getFileUrlBytes();
+}

+ 676 - 0
src/main/java/com/ywt/gapi/base/file/ReadFileResponse.java

@@ -0,0 +1,676 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+/**
+ * <pre>
+ *读取文件响应
+ * </pre>
+ *
+ * Protobuf type {@code com.ywt.gapi.base.file.ReadFileResponse}
+ */
+public  final class ReadFileResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:com.ywt.gapi.base.file.ReadFileResponse)
+    ReadFileResponseOrBuilder {
+  // Use ReadFileResponse.newBuilder() to construct.
+  private ReadFileResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+    super(builder);
+  }
+  private ReadFileResponse() {
+    code_ = 0;
+    datas_ = com.google.protobuf.ByteString.EMPTY;
+    msg_ = "";
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+  }
+  private ReadFileResponse(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    this();
+    int mutable_bitField0_ = 0;
+    try {
+      boolean done = false;
+      while (!done) {
+        int tag = input.readTag();
+        switch (tag) {
+          case 0:
+            done = true;
+            break;
+          default: {
+            if (!input.skipField(tag)) {
+              done = true;
+            }
+            break;
+          }
+          case 8: {
+
+            code_ = input.readInt32();
+            break;
+          }
+          case 18: {
+
+            datas_ = input.readBytes();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            msg_ = s;
+            break;
+          }
+        }
+      }
+    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+      throw e.setUnfinishedMessage(this);
+    } catch (java.io.IOException e) {
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
+    } finally {
+      makeExtensionsImmutable();
+    }
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileResponse_descriptor;
+  }
+
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileResponse_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            com.ywt.gapi.base.file.ReadFileResponse.class, com.ywt.gapi.base.file.ReadFileResponse.Builder.class);
+  }
+
+  public static final int CODE_FIELD_NUMBER = 1;
+  private int code_;
+  /**
+   * <code>int32 code = 1;</code>
+   */
+  public int getCode() {
+    return code_;
+  }
+
+  public static final int DATAS_FIELD_NUMBER = 2;
+  private com.google.protobuf.ByteString datas_;
+  /**
+   * <pre>
+   *文件流
+   * </pre>
+   *
+   * <code>bytes datas = 2;</code>
+   */
+  public com.google.protobuf.ByteString getDatas() {
+    return datas_;
+  }
+
+  public static final int MSG_FIELD_NUMBER = 3;
+  private volatile java.lang.Object msg_;
+  /**
+   * <pre>
+   *提示信息
+   * </pre>
+   *
+   * <code>string msg = 3;</code>
+   */
+  public java.lang.String getMsg() {
+    java.lang.Object ref = msg_;
+    if (ref instanceof java.lang.String) {
+      return (java.lang.String) ref;
+    } else {
+      com.google.protobuf.ByteString bs = 
+          (com.google.protobuf.ByteString) ref;
+      java.lang.String s = bs.toStringUtf8();
+      msg_ = s;
+      return s;
+    }
+  }
+  /**
+   * <pre>
+   *提示信息
+   * </pre>
+   *
+   * <code>string msg = 3;</code>
+   */
+  public com.google.protobuf.ByteString
+      getMsgBytes() {
+    java.lang.Object ref = msg_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      msg_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  private byte memoizedIsInitialized = -1;
+  public final boolean isInitialized() {
+    byte isInitialized = memoizedIsInitialized;
+    if (isInitialized == 1) return true;
+    if (isInitialized == 0) return false;
+
+    memoizedIsInitialized = 1;
+    return true;
+  }
+
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (code_ != 0) {
+      output.writeInt32(1, code_);
+    }
+    if (!datas_.isEmpty()) {
+      output.writeBytes(2, datas_);
+    }
+    if (!getMsgBytes().isEmpty()) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, msg_);
+    }
+  }
+
+  public int getSerializedSize() {
+    int size = memoizedSize;
+    if (size != -1) return size;
+
+    size = 0;
+    if (code_ != 0) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(1, code_);
+    }
+    if (!datas_.isEmpty()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(2, datas_);
+    }
+    if (!getMsgBytes().isEmpty()) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, msg_);
+    }
+    memoizedSize = size;
+    return size;
+  }
+
+  private static final long serialVersionUID = 0L;
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
+    if (obj == this) {
+     return true;
+    }
+    if (!(obj instanceof com.ywt.gapi.base.file.ReadFileResponse)) {
+      return super.equals(obj);
+    }
+    com.ywt.gapi.base.file.ReadFileResponse other = (com.ywt.gapi.base.file.ReadFileResponse) obj;
+
+    boolean result = true;
+    result = result && (getCode()
+        == other.getCode());
+    result = result && getDatas()
+        .equals(other.getDatas());
+    result = result && getMsg()
+        .equals(other.getMsg());
+    return result;
+  }
+
+  @java.lang.Override
+  public int hashCode() {
+    if (memoizedHashCode != 0) {
+      return memoizedHashCode;
+    }
+    int hash = 41;
+    hash = (19 * hash) + getDescriptor().hashCode();
+    hash = (37 * hash) + CODE_FIELD_NUMBER;
+    hash = (53 * hash) + getCode();
+    hash = (37 * hash) + DATAS_FIELD_NUMBER;
+    hash = (53 * hash) + getDatas().hashCode();
+    hash = (37 * hash) + MSG_FIELD_NUMBER;
+    hash = (53 * hash) + getMsg().hashCode();
+    hash = (29 * hash) + unknownFields.hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static com.ywt.gapi.base.file.ReadFileResponse parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.ReadFileResponse parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileResponse parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.ReadFileResponse parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.ReadFileResponse parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.ReadFileResponse parseFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.ReadFileResponse parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.ReadFileResponse parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.ReadFileResponse parseFrom(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
+  }
+
+  public Builder newBuilderForType() { return newBuilder(); }
+  public static Builder newBuilder() {
+    return DEFAULT_INSTANCE.toBuilder();
+  }
+  public static Builder newBuilder(com.ywt.gapi.base.file.ReadFileResponse prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * <pre>
+   *读取文件响应
+   * </pre>
+   *
+   * Protobuf type {@code com.ywt.gapi.base.file.ReadFileResponse}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.base.file.ReadFileResponse)
+      com.ywt.gapi.base.file.ReadFileResponseOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileResponse_descriptor;
+    }
+
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileResponse_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              com.ywt.gapi.base.file.ReadFileResponse.class, com.ywt.gapi.base.file.ReadFileResponse.Builder.class);
+    }
+
+    // Construct using com.ywt.gapi.base.file.ReadFileResponse.newBuilder()
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
+    }
+    public Builder clear() {
+      super.clear();
+      code_ = 0;
+
+      datas_ = com.google.protobuf.ByteString.EMPTY;
+
+      msg_ = "";
+
+      return this;
+    }
+
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_ReadFileResponse_descriptor;
+    }
+
+    public com.ywt.gapi.base.file.ReadFileResponse getDefaultInstanceForType() {
+      return com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance();
+    }
+
+    public com.ywt.gapi.base.file.ReadFileResponse build() {
+      com.ywt.gapi.base.file.ReadFileResponse result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    public com.ywt.gapi.base.file.ReadFileResponse buildPartial() {
+      com.ywt.gapi.base.file.ReadFileResponse result = new com.ywt.gapi.base.file.ReadFileResponse(this);
+      result.code_ = code_;
+      result.datas_ = datas_;
+      result.msg_ = msg_;
+      onBuilt();
+      return result;
+    }
+
+    public Builder clone() {
+      return (Builder) super.clone();
+    }
+    public Builder setField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        Object value) {
+      return (Builder) super.setField(field, value);
+    }
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
+      return (Builder) super.clearField(field);
+    }
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      return (Builder) super.clearOneof(oneof);
+    }
+    public Builder setRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, Object value) {
+      return (Builder) super.setRepeatedField(field, index, value);
+    }
+    public Builder addRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        Object value) {
+      return (Builder) super.addRepeatedField(field, value);
+    }
+    public Builder mergeFrom(com.google.protobuf.Message other) {
+      if (other instanceof com.ywt.gapi.base.file.ReadFileResponse) {
+        return mergeFrom((com.ywt.gapi.base.file.ReadFileResponse)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(com.ywt.gapi.base.file.ReadFileResponse other) {
+      if (other == com.ywt.gapi.base.file.ReadFileResponse.getDefaultInstance()) return this;
+      if (other.getCode() != 0) {
+        setCode(other.getCode());
+      }
+      if (other.getDatas() != com.google.protobuf.ByteString.EMPTY) {
+        setDatas(other.getDatas());
+      }
+      if (!other.getMsg().isEmpty()) {
+        msg_ = other.msg_;
+        onChanged();
+      }
+      onChanged();
+      return this;
+    }
+
+    public final boolean isInitialized() {
+      return true;
+    }
+
+    public Builder mergeFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      com.ywt.gapi.base.file.ReadFileResponse parsedMessage = null;
+      try {
+        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        parsedMessage = (com.ywt.gapi.base.file.ReadFileResponse) e.getUnfinishedMessage();
+        throw e.unwrapIOException();
+      } finally {
+        if (parsedMessage != null) {
+          mergeFrom(parsedMessage);
+        }
+      }
+      return this;
+    }
+
+    private int code_ ;
+    /**
+     * <code>int32 code = 1;</code>
+     */
+    public int getCode() {
+      return code_;
+    }
+    /**
+     * <code>int32 code = 1;</code>
+     */
+    public Builder setCode(int value) {
+      
+      code_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <code>int32 code = 1;</code>
+     */
+    public Builder clearCode() {
+      
+      code_ = 0;
+      onChanged();
+      return this;
+    }
+
+    private com.google.protobuf.ByteString datas_ = com.google.protobuf.ByteString.EMPTY;
+    /**
+     * <pre>
+     *文件流
+     * </pre>
+     *
+     * <code>bytes datas = 2;</code>
+     */
+    public com.google.protobuf.ByteString getDatas() {
+      return datas_;
+    }
+    /**
+     * <pre>
+     *文件流
+     * </pre>
+     *
+     * <code>bytes datas = 2;</code>
+     */
+    public Builder setDatas(com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      datas_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *文件流
+     * </pre>
+     *
+     * <code>bytes datas = 2;</code>
+     */
+    public Builder clearDatas() {
+      
+      datas_ = getDefaultInstance().getDatas();
+      onChanged();
+      return this;
+    }
+
+    private java.lang.Object msg_ = "";
+    /**
+     * <pre>
+     *提示信息
+     * </pre>
+     *
+     * <code>string msg = 3;</code>
+     */
+    public java.lang.String getMsg() {
+      java.lang.Object ref = msg_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        msg_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * <pre>
+     *提示信息
+     * </pre>
+     *
+     * <code>string msg = 3;</code>
+     */
+    public com.google.protobuf.ByteString
+        getMsgBytes() {
+      java.lang.Object ref = msg_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        msg_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * <pre>
+     *提示信息
+     * </pre>
+     *
+     * <code>string msg = 3;</code>
+     */
+    public Builder setMsg(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      msg_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *提示信息
+     * </pre>
+     *
+     * <code>string msg = 3;</code>
+     */
+    public Builder clearMsg() {
+      
+      msg_ = getDefaultInstance().getMsg();
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *提示信息
+     * </pre>
+     *
+     * <code>string msg = 3;</code>
+     */
+    public Builder setMsgBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      msg_ = value;
+      onChanged();
+      return this;
+    }
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return this;
+    }
+
+    public final Builder mergeUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return this;
+    }
+
+
+    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.base.file.ReadFileResponse)
+  }
+
+  // @@protoc_insertion_point(class_scope:com.ywt.gapi.base.file.ReadFileResponse)
+  private static final com.ywt.gapi.base.file.ReadFileResponse DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new com.ywt.gapi.base.file.ReadFileResponse();
+  }
+
+  public static com.ywt.gapi.base.file.ReadFileResponse getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser<ReadFileResponse>
+      PARSER = new com.google.protobuf.AbstractParser<ReadFileResponse>() {
+    public ReadFileResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+        return new ReadFileResponse(input, extensionRegistry);
+    }
+  };
+
+  public static com.google.protobuf.Parser<ReadFileResponse> parser() {
+    return PARSER;
+  }
+
+  @java.lang.Override
+  public com.google.protobuf.Parser<ReadFileResponse> getParserForType() {
+    return PARSER;
+  }
+
+  public com.ywt.gapi.base.file.ReadFileResponse getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+

+ 41 - 0
src/main/java/com/ywt/gapi/base/file/ReadFileResponseOrBuilder.java

@@ -0,0 +1,41 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+public interface ReadFileResponseOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:com.ywt.gapi.base.file.ReadFileResponse)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * <code>int32 code = 1;</code>
+   */
+  int getCode();
+
+  /**
+   * <pre>
+   *文件流
+   * </pre>
+   *
+   * <code>bytes datas = 2;</code>
+   */
+  com.google.protobuf.ByteString getDatas();
+
+  /**
+   * <pre>
+   *提示信息
+   * </pre>
+   *
+   * <code>string msg = 3;</code>
+   */
+  java.lang.String getMsg();
+  /**
+   * <pre>
+   *提示信息
+   * </pre>
+   *
+   * <code>string msg = 3;</code>
+   */
+  com.google.protobuf.ByteString
+      getMsgBytes();
+}

+ 928 - 0
src/main/java/com/ywt/gapi/base/file/UploadFileRequest.java

@@ -0,0 +1,928 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+/**
+ * <pre>
+ *上传文件请求
+ * </pre>
+ *
+ * Protobuf type {@code com.ywt.gapi.base.file.UploadFileRequest}
+ */
+public  final class UploadFileRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:com.ywt.gapi.base.file.UploadFileRequest)
+    UploadFileRequestOrBuilder {
+  // Use UploadFileRequest.newBuilder() to construct.
+  private UploadFileRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+    super(builder);
+  }
+  private UploadFileRequest() {
+    filename_ = "";
+    vpath_ = "";
+    datas_ = com.google.protobuf.ByteString.EMPTY;
+    bucket_ = "";
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+  }
+  private UploadFileRequest(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    this();
+    int mutable_bitField0_ = 0;
+    try {
+      boolean done = false;
+      while (!done) {
+        int tag = input.readTag();
+        switch (tag) {
+          case 0:
+            done = true;
+            break;
+          default: {
+            if (!input.skipField(tag)) {
+              done = true;
+            }
+            break;
+          }
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            filename_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            vpath_ = s;
+            break;
+          }
+          case 26: {
+
+            datas_ = input.readBytes();
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            bucket_ = s;
+            break;
+          }
+        }
+      }
+    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+      throw e.setUnfinishedMessage(this);
+    } catch (java.io.IOException e) {
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
+    } finally {
+      makeExtensionsImmutable();
+    }
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_UploadFileRequest_descriptor;
+  }
+
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_UploadFileRequest_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            com.ywt.gapi.base.file.UploadFileRequest.class, com.ywt.gapi.base.file.UploadFileRequest.Builder.class);
+  }
+
+  public static final int FILENAME_FIELD_NUMBER = 1;
+  private volatile java.lang.Object filename_;
+  /**
+   * <pre>
+   *文件名
+   * </pre>
+   *
+   * <code>string filename = 1;</code>
+   */
+  public java.lang.String getFilename() {
+    java.lang.Object ref = filename_;
+    if (ref instanceof java.lang.String) {
+      return (java.lang.String) ref;
+    } else {
+      com.google.protobuf.ByteString bs = 
+          (com.google.protobuf.ByteString) ref;
+      java.lang.String s = bs.toStringUtf8();
+      filename_ = s;
+      return s;
+    }
+  }
+  /**
+   * <pre>
+   *文件名
+   * </pre>
+   *
+   * <code>string filename = 1;</code>
+   */
+  public com.google.protobuf.ByteString
+      getFilenameBytes() {
+    java.lang.Object ref = filename_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      filename_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  public static final int VPATH_FIELD_NUMBER = 2;
+  private volatile java.lang.Object vpath_;
+  /**
+   * <pre>
+   *路径
+   * </pre>
+   *
+   * <code>string vpath = 2;</code>
+   */
+  public java.lang.String getVpath() {
+    java.lang.Object ref = vpath_;
+    if (ref instanceof java.lang.String) {
+      return (java.lang.String) ref;
+    } else {
+      com.google.protobuf.ByteString bs = 
+          (com.google.protobuf.ByteString) ref;
+      java.lang.String s = bs.toStringUtf8();
+      vpath_ = s;
+      return s;
+    }
+  }
+  /**
+   * <pre>
+   *路径
+   * </pre>
+   *
+   * <code>string vpath = 2;</code>
+   */
+  public com.google.protobuf.ByteString
+      getVpathBytes() {
+    java.lang.Object ref = vpath_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      vpath_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  public static final int DATAS_FIELD_NUMBER = 3;
+  private com.google.protobuf.ByteString datas_;
+  /**
+   * <pre>
+   *文件流
+   * </pre>
+   *
+   * <code>bytes datas = 3;</code>
+   */
+  public com.google.protobuf.ByteString getDatas() {
+    return datas_;
+  }
+
+  public static final int BUCKET_FIELD_NUMBER = 4;
+  private volatile java.lang.Object bucket_;
+  /**
+   * <pre>
+   *bucket,不传默认为 ywt-files
+   * </pre>
+   *
+   * <code>string bucket = 4;</code>
+   */
+  public java.lang.String getBucket() {
+    java.lang.Object ref = bucket_;
+    if (ref instanceof java.lang.String) {
+      return (java.lang.String) ref;
+    } else {
+      com.google.protobuf.ByteString bs = 
+          (com.google.protobuf.ByteString) ref;
+      java.lang.String s = bs.toStringUtf8();
+      bucket_ = s;
+      return s;
+    }
+  }
+  /**
+   * <pre>
+   *bucket,不传默认为 ywt-files
+   * </pre>
+   *
+   * <code>string bucket = 4;</code>
+   */
+  public com.google.protobuf.ByteString
+      getBucketBytes() {
+    java.lang.Object ref = bucket_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      bucket_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  private byte memoizedIsInitialized = -1;
+  public final boolean isInitialized() {
+    byte isInitialized = memoizedIsInitialized;
+    if (isInitialized == 1) return true;
+    if (isInitialized == 0) return false;
+
+    memoizedIsInitialized = 1;
+    return true;
+  }
+
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (!getFilenameBytes().isEmpty()) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filename_);
+    }
+    if (!getVpathBytes().isEmpty()) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vpath_);
+    }
+    if (!datas_.isEmpty()) {
+      output.writeBytes(3, datas_);
+    }
+    if (!getBucketBytes().isEmpty()) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bucket_);
+    }
+  }
+
+  public int getSerializedSize() {
+    int size = memoizedSize;
+    if (size != -1) return size;
+
+    size = 0;
+    if (!getFilenameBytes().isEmpty()) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filename_);
+    }
+    if (!getVpathBytes().isEmpty()) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vpath_);
+    }
+    if (!datas_.isEmpty()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(3, datas_);
+    }
+    if (!getBucketBytes().isEmpty()) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, bucket_);
+    }
+    memoizedSize = size;
+    return size;
+  }
+
+  private static final long serialVersionUID = 0L;
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
+    if (obj == this) {
+     return true;
+    }
+    if (!(obj instanceof com.ywt.gapi.base.file.UploadFileRequest)) {
+      return super.equals(obj);
+    }
+    com.ywt.gapi.base.file.UploadFileRequest other = (com.ywt.gapi.base.file.UploadFileRequest) obj;
+
+    boolean result = true;
+    result = result && getFilename()
+        .equals(other.getFilename());
+    result = result && getVpath()
+        .equals(other.getVpath());
+    result = result && getDatas()
+        .equals(other.getDatas());
+    result = result && getBucket()
+        .equals(other.getBucket());
+    return result;
+  }
+
+  @java.lang.Override
+  public int hashCode() {
+    if (memoizedHashCode != 0) {
+      return memoizedHashCode;
+    }
+    int hash = 41;
+    hash = (19 * hash) + getDescriptor().hashCode();
+    hash = (37 * hash) + FILENAME_FIELD_NUMBER;
+    hash = (53 * hash) + getFilename().hashCode();
+    hash = (37 * hash) + VPATH_FIELD_NUMBER;
+    hash = (53 * hash) + getVpath().hashCode();
+    hash = (37 * hash) + DATAS_FIELD_NUMBER;
+    hash = (53 * hash) + getDatas().hashCode();
+    hash = (37 * hash) + BUCKET_FIELD_NUMBER;
+    hash = (53 * hash) + getBucket().hashCode();
+    hash = (29 * hash) + unknownFields.hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static com.ywt.gapi.base.file.UploadFileRequest parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.UploadFileRequest parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.UploadFileRequest parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.UploadFileRequest parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.UploadFileRequest parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.UploadFileRequest parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.UploadFileRequest parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.UploadFileRequest parseFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.UploadFileRequest parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.UploadFileRequest parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.UploadFileRequest parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.UploadFileRequest parseFrom(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
+  }
+
+  public Builder newBuilderForType() { return newBuilder(); }
+  public static Builder newBuilder() {
+    return DEFAULT_INSTANCE.toBuilder();
+  }
+  public static Builder newBuilder(com.ywt.gapi.base.file.UploadFileRequest prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * <pre>
+   *上传文件请求
+   * </pre>
+   *
+   * Protobuf type {@code com.ywt.gapi.base.file.UploadFileRequest}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.base.file.UploadFileRequest)
+      com.ywt.gapi.base.file.UploadFileRequestOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_UploadFileRequest_descriptor;
+    }
+
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_UploadFileRequest_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              com.ywt.gapi.base.file.UploadFileRequest.class, com.ywt.gapi.base.file.UploadFileRequest.Builder.class);
+    }
+
+    // Construct using com.ywt.gapi.base.file.UploadFileRequest.newBuilder()
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
+    }
+    public Builder clear() {
+      super.clear();
+      filename_ = "";
+
+      vpath_ = "";
+
+      datas_ = com.google.protobuf.ByteString.EMPTY;
+
+      bucket_ = "";
+
+      return this;
+    }
+
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_UploadFileRequest_descriptor;
+    }
+
+    public com.ywt.gapi.base.file.UploadFileRequest getDefaultInstanceForType() {
+      return com.ywt.gapi.base.file.UploadFileRequest.getDefaultInstance();
+    }
+
+    public com.ywt.gapi.base.file.UploadFileRequest build() {
+      com.ywt.gapi.base.file.UploadFileRequest result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    public com.ywt.gapi.base.file.UploadFileRequest buildPartial() {
+      com.ywt.gapi.base.file.UploadFileRequest result = new com.ywt.gapi.base.file.UploadFileRequest(this);
+      result.filename_ = filename_;
+      result.vpath_ = vpath_;
+      result.datas_ = datas_;
+      result.bucket_ = bucket_;
+      onBuilt();
+      return result;
+    }
+
+    public Builder clone() {
+      return (Builder) super.clone();
+    }
+    public Builder setField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        Object value) {
+      return (Builder) super.setField(field, value);
+    }
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
+      return (Builder) super.clearField(field);
+    }
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      return (Builder) super.clearOneof(oneof);
+    }
+    public Builder setRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, Object value) {
+      return (Builder) super.setRepeatedField(field, index, value);
+    }
+    public Builder addRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        Object value) {
+      return (Builder) super.addRepeatedField(field, value);
+    }
+    public Builder mergeFrom(com.google.protobuf.Message other) {
+      if (other instanceof com.ywt.gapi.base.file.UploadFileRequest) {
+        return mergeFrom((com.ywt.gapi.base.file.UploadFileRequest)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(com.ywt.gapi.base.file.UploadFileRequest other) {
+      if (other == com.ywt.gapi.base.file.UploadFileRequest.getDefaultInstance()) return this;
+      if (!other.getFilename().isEmpty()) {
+        filename_ = other.filename_;
+        onChanged();
+      }
+      if (!other.getVpath().isEmpty()) {
+        vpath_ = other.vpath_;
+        onChanged();
+      }
+      if (other.getDatas() != com.google.protobuf.ByteString.EMPTY) {
+        setDatas(other.getDatas());
+      }
+      if (!other.getBucket().isEmpty()) {
+        bucket_ = other.bucket_;
+        onChanged();
+      }
+      onChanged();
+      return this;
+    }
+
+    public final boolean isInitialized() {
+      return true;
+    }
+
+    public Builder mergeFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      com.ywt.gapi.base.file.UploadFileRequest parsedMessage = null;
+      try {
+        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        parsedMessage = (com.ywt.gapi.base.file.UploadFileRequest) e.getUnfinishedMessage();
+        throw e.unwrapIOException();
+      } finally {
+        if (parsedMessage != null) {
+          mergeFrom(parsedMessage);
+        }
+      }
+      return this;
+    }
+
+    private java.lang.Object filename_ = "";
+    /**
+     * <pre>
+     *文件名
+     * </pre>
+     *
+     * <code>string filename = 1;</code>
+     */
+    public java.lang.String getFilename() {
+      java.lang.Object ref = filename_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        filename_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * <pre>
+     *文件名
+     * </pre>
+     *
+     * <code>string filename = 1;</code>
+     */
+    public com.google.protobuf.ByteString
+        getFilenameBytes() {
+      java.lang.Object ref = filename_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        filename_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * <pre>
+     *文件名
+     * </pre>
+     *
+     * <code>string filename = 1;</code>
+     */
+    public Builder setFilename(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      filename_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *文件名
+     * </pre>
+     *
+     * <code>string filename = 1;</code>
+     */
+    public Builder clearFilename() {
+      
+      filename_ = getDefaultInstance().getFilename();
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *文件名
+     * </pre>
+     *
+     * <code>string filename = 1;</code>
+     */
+    public Builder setFilenameBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      filename_ = value;
+      onChanged();
+      return this;
+    }
+
+    private java.lang.Object vpath_ = "";
+    /**
+     * <pre>
+     *路径
+     * </pre>
+     *
+     * <code>string vpath = 2;</code>
+     */
+    public java.lang.String getVpath() {
+      java.lang.Object ref = vpath_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        vpath_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * <pre>
+     *路径
+     * </pre>
+     *
+     * <code>string vpath = 2;</code>
+     */
+    public com.google.protobuf.ByteString
+        getVpathBytes() {
+      java.lang.Object ref = vpath_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        vpath_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * <pre>
+     *路径
+     * </pre>
+     *
+     * <code>string vpath = 2;</code>
+     */
+    public Builder setVpath(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      vpath_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *路径
+     * </pre>
+     *
+     * <code>string vpath = 2;</code>
+     */
+    public Builder clearVpath() {
+      
+      vpath_ = getDefaultInstance().getVpath();
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *路径
+     * </pre>
+     *
+     * <code>string vpath = 2;</code>
+     */
+    public Builder setVpathBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      vpath_ = value;
+      onChanged();
+      return this;
+    }
+
+    private com.google.protobuf.ByteString datas_ = com.google.protobuf.ByteString.EMPTY;
+    /**
+     * <pre>
+     *文件流
+     * </pre>
+     *
+     * <code>bytes datas = 3;</code>
+     */
+    public com.google.protobuf.ByteString getDatas() {
+      return datas_;
+    }
+    /**
+     * <pre>
+     *文件流
+     * </pre>
+     *
+     * <code>bytes datas = 3;</code>
+     */
+    public Builder setDatas(com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      datas_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *文件流
+     * </pre>
+     *
+     * <code>bytes datas = 3;</code>
+     */
+    public Builder clearDatas() {
+      
+      datas_ = getDefaultInstance().getDatas();
+      onChanged();
+      return this;
+    }
+
+    private java.lang.Object bucket_ = "";
+    /**
+     * <pre>
+     *bucket,不传默认为 ywt-files
+     * </pre>
+     *
+     * <code>string bucket = 4;</code>
+     */
+    public java.lang.String getBucket() {
+      java.lang.Object ref = bucket_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        bucket_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * <pre>
+     *bucket,不传默认为 ywt-files
+     * </pre>
+     *
+     * <code>string bucket = 4;</code>
+     */
+    public com.google.protobuf.ByteString
+        getBucketBytes() {
+      java.lang.Object ref = bucket_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        bucket_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * <pre>
+     *bucket,不传默认为 ywt-files
+     * </pre>
+     *
+     * <code>string bucket = 4;</code>
+     */
+    public Builder setBucket(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      bucket_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *bucket,不传默认为 ywt-files
+     * </pre>
+     *
+     * <code>string bucket = 4;</code>
+     */
+    public Builder clearBucket() {
+      
+      bucket_ = getDefaultInstance().getBucket();
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *bucket,不传默认为 ywt-files
+     * </pre>
+     *
+     * <code>string bucket = 4;</code>
+     */
+    public Builder setBucketBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      bucket_ = value;
+      onChanged();
+      return this;
+    }
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return this;
+    }
+
+    public final Builder mergeUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return this;
+    }
+
+
+    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.base.file.UploadFileRequest)
+  }
+
+  // @@protoc_insertion_point(class_scope:com.ywt.gapi.base.file.UploadFileRequest)
+  private static final com.ywt.gapi.base.file.UploadFileRequest DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new com.ywt.gapi.base.file.UploadFileRequest();
+  }
+
+  public static com.ywt.gapi.base.file.UploadFileRequest getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser<UploadFileRequest>
+      PARSER = new com.google.protobuf.AbstractParser<UploadFileRequest>() {
+    public UploadFileRequest parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+        return new UploadFileRequest(input, extensionRegistry);
+    }
+  };
+
+  public static com.google.protobuf.Parser<UploadFileRequest> parser() {
+    return PARSER;
+  }
+
+  @java.lang.Override
+  public com.google.protobuf.Parser<UploadFileRequest> getParserForType() {
+    return PARSER;
+  }
+
+  public com.ywt.gapi.base.file.UploadFileRequest getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+

+ 72 - 0
src/main/java/com/ywt/gapi/base/file/UploadFileRequestOrBuilder.java

@@ -0,0 +1,72 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+public interface UploadFileRequestOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:com.ywt.gapi.base.file.UploadFileRequest)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * <pre>
+   *文件名
+   * </pre>
+   *
+   * <code>string filename = 1;</code>
+   */
+  java.lang.String getFilename();
+  /**
+   * <pre>
+   *文件名
+   * </pre>
+   *
+   * <code>string filename = 1;</code>
+   */
+  com.google.protobuf.ByteString
+      getFilenameBytes();
+
+  /**
+   * <pre>
+   *路径
+   * </pre>
+   *
+   * <code>string vpath = 2;</code>
+   */
+  java.lang.String getVpath();
+  /**
+   * <pre>
+   *路径
+   * </pre>
+   *
+   * <code>string vpath = 2;</code>
+   */
+  com.google.protobuf.ByteString
+      getVpathBytes();
+
+  /**
+   * <pre>
+   *文件流
+   * </pre>
+   *
+   * <code>bytes datas = 3;</code>
+   */
+  com.google.protobuf.ByteString getDatas();
+
+  /**
+   * <pre>
+   *bucket,不传默认为 ywt-files
+   * </pre>
+   *
+   * <code>string bucket = 4;</code>
+   */
+  java.lang.String getBucket();
+  /**
+   * <pre>
+   *bucket,不传默认为 ywt-files
+   * </pre>
+   *
+   * <code>string bucket = 4;</code>
+   */
+  com.google.protobuf.ByteString
+      getBucketBytes();
+}

+ 770 - 0
src/main/java/com/ywt/gapi/base/file/UploadFileResponse.java

@@ -0,0 +1,770 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+/**
+ * <pre>
+ *上传文件响应
+ * </pre>
+ *
+ * Protobuf type {@code com.ywt.gapi.base.file.UploadFileResponse}
+ */
+public  final class UploadFileResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
+    // @@protoc_insertion_point(message_implements:com.ywt.gapi.base.file.UploadFileResponse)
+    UploadFileResponseOrBuilder {
+  // Use UploadFileResponse.newBuilder() to construct.
+  private UploadFileResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
+    super(builder);
+  }
+  private UploadFileResponse() {
+    code_ = 0;
+    fileUrl_ = "";
+    msg_ = "";
+  }
+
+  @java.lang.Override
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
+    return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
+  }
+  private UploadFileResponse(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    this();
+    int mutable_bitField0_ = 0;
+    try {
+      boolean done = false;
+      while (!done) {
+        int tag = input.readTag();
+        switch (tag) {
+          case 0:
+            done = true;
+            break;
+          default: {
+            if (!input.skipField(tag)) {
+              done = true;
+            }
+            break;
+          }
+          case 8: {
+
+            code_ = input.readInt32();
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            fileUrl_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            msg_ = s;
+            break;
+          }
+        }
+      }
+    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+      throw e.setUnfinishedMessage(this);
+    } catch (java.io.IOException e) {
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
+    } finally {
+      makeExtensionsImmutable();
+    }
+  }
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_UploadFileResponse_descriptor;
+  }
+
+  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internalGetFieldAccessorTable() {
+    return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_UploadFileResponse_fieldAccessorTable
+        .ensureFieldAccessorsInitialized(
+            com.ywt.gapi.base.file.UploadFileResponse.class, com.ywt.gapi.base.file.UploadFileResponse.Builder.class);
+  }
+
+  public static final int CODE_FIELD_NUMBER = 1;
+  private int code_;
+  /**
+   * <pre>
+   *结果标识
+   * </pre>
+   *
+   * <code>int32 code = 1;</code>
+   */
+  public int getCode() {
+    return code_;
+  }
+
+  public static final int FILEURL_FIELD_NUMBER = 2;
+  private volatile java.lang.Object fileUrl_;
+  /**
+   * <pre>
+   *文件链接
+   * </pre>
+   *
+   * <code>string fileUrl = 2;</code>
+   */
+  public java.lang.String getFileUrl() {
+    java.lang.Object ref = fileUrl_;
+    if (ref instanceof java.lang.String) {
+      return (java.lang.String) ref;
+    } else {
+      com.google.protobuf.ByteString bs = 
+          (com.google.protobuf.ByteString) ref;
+      java.lang.String s = bs.toStringUtf8();
+      fileUrl_ = s;
+      return s;
+    }
+  }
+  /**
+   * <pre>
+   *文件链接
+   * </pre>
+   *
+   * <code>string fileUrl = 2;</code>
+   */
+  public com.google.protobuf.ByteString
+      getFileUrlBytes() {
+    java.lang.Object ref = fileUrl_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      fileUrl_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  public static final int MSG_FIELD_NUMBER = 3;
+  private volatile java.lang.Object msg_;
+  /**
+   * <pre>
+   *提示信息
+   * </pre>
+   *
+   * <code>string msg = 3;</code>
+   */
+  public java.lang.String getMsg() {
+    java.lang.Object ref = msg_;
+    if (ref instanceof java.lang.String) {
+      return (java.lang.String) ref;
+    } else {
+      com.google.protobuf.ByteString bs = 
+          (com.google.protobuf.ByteString) ref;
+      java.lang.String s = bs.toStringUtf8();
+      msg_ = s;
+      return s;
+    }
+  }
+  /**
+   * <pre>
+   *提示信息
+   * </pre>
+   *
+   * <code>string msg = 3;</code>
+   */
+  public com.google.protobuf.ByteString
+      getMsgBytes() {
+    java.lang.Object ref = msg_;
+    if (ref instanceof java.lang.String) {
+      com.google.protobuf.ByteString b = 
+          com.google.protobuf.ByteString.copyFromUtf8(
+              (java.lang.String) ref);
+      msg_ = b;
+      return b;
+    } else {
+      return (com.google.protobuf.ByteString) ref;
+    }
+  }
+
+  private byte memoizedIsInitialized = -1;
+  public final boolean isInitialized() {
+    byte isInitialized = memoizedIsInitialized;
+    if (isInitialized == 1) return true;
+    if (isInitialized == 0) return false;
+
+    memoizedIsInitialized = 1;
+    return true;
+  }
+
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    if (code_ != 0) {
+      output.writeInt32(1, code_);
+    }
+    if (!getFileUrlBytes().isEmpty()) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fileUrl_);
+    }
+    if (!getMsgBytes().isEmpty()) {
+      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, msg_);
+    }
+  }
+
+  public int getSerializedSize() {
+    int size = memoizedSize;
+    if (size != -1) return size;
+
+    size = 0;
+    if (code_ != 0) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeInt32Size(1, code_);
+    }
+    if (!getFileUrlBytes().isEmpty()) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fileUrl_);
+    }
+    if (!getMsgBytes().isEmpty()) {
+      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, msg_);
+    }
+    memoizedSize = size;
+    return size;
+  }
+
+  private static final long serialVersionUID = 0L;
+  @java.lang.Override
+  public boolean equals(final java.lang.Object obj) {
+    if (obj == this) {
+     return true;
+    }
+    if (!(obj instanceof com.ywt.gapi.base.file.UploadFileResponse)) {
+      return super.equals(obj);
+    }
+    com.ywt.gapi.base.file.UploadFileResponse other = (com.ywt.gapi.base.file.UploadFileResponse) obj;
+
+    boolean result = true;
+    result = result && (getCode()
+        == other.getCode());
+    result = result && getFileUrl()
+        .equals(other.getFileUrl());
+    result = result && getMsg()
+        .equals(other.getMsg());
+    return result;
+  }
+
+  @java.lang.Override
+  public int hashCode() {
+    if (memoizedHashCode != 0) {
+      return memoizedHashCode;
+    }
+    int hash = 41;
+    hash = (19 * hash) + getDescriptor().hashCode();
+    hash = (37 * hash) + CODE_FIELD_NUMBER;
+    hash = (53 * hash) + getCode();
+    hash = (37 * hash) + FILEURL_FIELD_NUMBER;
+    hash = (53 * hash) + getFileUrl().hashCode();
+    hash = (37 * hash) + MSG_FIELD_NUMBER;
+    hash = (53 * hash) + getMsg().hashCode();
+    hash = (29 * hash) + unknownFields.hashCode();
+    memoizedHashCode = hash;
+    return hash;
+  }
+
+  public static com.ywt.gapi.base.file.UploadFileResponse parseFrom(
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.UploadFileResponse parseFrom(
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.UploadFileResponse parseFrom(
+      com.google.protobuf.ByteString data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.UploadFileResponse parseFrom(
+      com.google.protobuf.ByteString data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.UploadFileResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data);
+  }
+  public static com.ywt.gapi.base.file.UploadFileResponse parseFrom(
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws com.google.protobuf.InvalidProtocolBufferException {
+    return PARSER.parseFrom(data, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.UploadFileResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.UploadFileResponse parseFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.UploadFileResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.UploadFileResponse parseDelimitedFrom(
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+  }
+  public static com.ywt.gapi.base.file.UploadFileResponse parseFrom(
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
+  }
+  public static com.ywt.gapi.base.file.UploadFileResponse parseFrom(
+      com.google.protobuf.CodedInputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
+  }
+
+  public Builder newBuilderForType() { return newBuilder(); }
+  public static Builder newBuilder() {
+    return DEFAULT_INSTANCE.toBuilder();
+  }
+  public static Builder newBuilder(com.ywt.gapi.base.file.UploadFileResponse prototype) {
+    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+  }
+  public Builder toBuilder() {
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
+  }
+
+  @java.lang.Override
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    Builder builder = new Builder(parent);
+    return builder;
+  }
+  /**
+   * <pre>
+   *上传文件响应
+   * </pre>
+   *
+   * Protobuf type {@code com.ywt.gapi.base.file.UploadFileResponse}
+   */
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
+      // @@protoc_insertion_point(builder_implements:com.ywt.gapi.base.file.UploadFileResponse)
+      com.ywt.gapi.base.file.UploadFileResponseOrBuilder {
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_UploadFileResponse_descriptor;
+    }
+
+    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+        internalGetFieldAccessorTable() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_UploadFileResponse_fieldAccessorTable
+          .ensureFieldAccessorsInitialized(
+              com.ywt.gapi.base.file.UploadFileResponse.class, com.ywt.gapi.base.file.UploadFileResponse.Builder.class);
+    }
+
+    // Construct using com.ywt.gapi.base.file.UploadFileResponse.newBuilder()
+    private Builder() {
+      maybeForceBuilderInitialization();
+    }
+
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+      maybeForceBuilderInitialization();
+    }
+    private void maybeForceBuilderInitialization() {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
+    }
+    public Builder clear() {
+      super.clear();
+      code_ = 0;
+
+      fileUrl_ = "";
+
+      msg_ = "";
+
+      return this;
+    }
+
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.ywt.gapi.base.file.File.internal_static_com_ywt_gapi_base_file_UploadFileResponse_descriptor;
+    }
+
+    public com.ywt.gapi.base.file.UploadFileResponse getDefaultInstanceForType() {
+      return com.ywt.gapi.base.file.UploadFileResponse.getDefaultInstance();
+    }
+
+    public com.ywt.gapi.base.file.UploadFileResponse build() {
+      com.ywt.gapi.base.file.UploadFileResponse result = buildPartial();
+      if (!result.isInitialized()) {
+        throw newUninitializedMessageException(result);
+      }
+      return result;
+    }
+
+    public com.ywt.gapi.base.file.UploadFileResponse buildPartial() {
+      com.ywt.gapi.base.file.UploadFileResponse result = new com.ywt.gapi.base.file.UploadFileResponse(this);
+      result.code_ = code_;
+      result.fileUrl_ = fileUrl_;
+      result.msg_ = msg_;
+      onBuilt();
+      return result;
+    }
+
+    public Builder clone() {
+      return (Builder) super.clone();
+    }
+    public Builder setField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        Object value) {
+      return (Builder) super.setField(field, value);
+    }
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
+      return (Builder) super.clearField(field);
+    }
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      return (Builder) super.clearOneof(oneof);
+    }
+    public Builder setRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, Object value) {
+      return (Builder) super.setRepeatedField(field, index, value);
+    }
+    public Builder addRepeatedField(
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        Object value) {
+      return (Builder) super.addRepeatedField(field, value);
+    }
+    public Builder mergeFrom(com.google.protobuf.Message other) {
+      if (other instanceof com.ywt.gapi.base.file.UploadFileResponse) {
+        return mergeFrom((com.ywt.gapi.base.file.UploadFileResponse)other);
+      } else {
+        super.mergeFrom(other);
+        return this;
+      }
+    }
+
+    public Builder mergeFrom(com.ywt.gapi.base.file.UploadFileResponse other) {
+      if (other == com.ywt.gapi.base.file.UploadFileResponse.getDefaultInstance()) return this;
+      if (other.getCode() != 0) {
+        setCode(other.getCode());
+      }
+      if (!other.getFileUrl().isEmpty()) {
+        fileUrl_ = other.fileUrl_;
+        onChanged();
+      }
+      if (!other.getMsg().isEmpty()) {
+        msg_ = other.msg_;
+        onChanged();
+      }
+      onChanged();
+      return this;
+    }
+
+    public final boolean isInitialized() {
+      return true;
+    }
+
+    public Builder mergeFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      com.ywt.gapi.base.file.UploadFileResponse parsedMessage = null;
+      try {
+        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        parsedMessage = (com.ywt.gapi.base.file.UploadFileResponse) e.getUnfinishedMessage();
+        throw e.unwrapIOException();
+      } finally {
+        if (parsedMessage != null) {
+          mergeFrom(parsedMessage);
+        }
+      }
+      return this;
+    }
+
+    private int code_ ;
+    /**
+     * <pre>
+     *结果标识
+     * </pre>
+     *
+     * <code>int32 code = 1;</code>
+     */
+    public int getCode() {
+      return code_;
+    }
+    /**
+     * <pre>
+     *结果标识
+     * </pre>
+     *
+     * <code>int32 code = 1;</code>
+     */
+    public Builder setCode(int value) {
+      
+      code_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *结果标识
+     * </pre>
+     *
+     * <code>int32 code = 1;</code>
+     */
+    public Builder clearCode() {
+      
+      code_ = 0;
+      onChanged();
+      return this;
+    }
+
+    private java.lang.Object fileUrl_ = "";
+    /**
+     * <pre>
+     *文件链接
+     * </pre>
+     *
+     * <code>string fileUrl = 2;</code>
+     */
+    public java.lang.String getFileUrl() {
+      java.lang.Object ref = fileUrl_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        fileUrl_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * <pre>
+     *文件链接
+     * </pre>
+     *
+     * <code>string fileUrl = 2;</code>
+     */
+    public com.google.protobuf.ByteString
+        getFileUrlBytes() {
+      java.lang.Object ref = fileUrl_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        fileUrl_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * <pre>
+     *文件链接
+     * </pre>
+     *
+     * <code>string fileUrl = 2;</code>
+     */
+    public Builder setFileUrl(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      fileUrl_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *文件链接
+     * </pre>
+     *
+     * <code>string fileUrl = 2;</code>
+     */
+    public Builder clearFileUrl() {
+      
+      fileUrl_ = getDefaultInstance().getFileUrl();
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *文件链接
+     * </pre>
+     *
+     * <code>string fileUrl = 2;</code>
+     */
+    public Builder setFileUrlBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      fileUrl_ = value;
+      onChanged();
+      return this;
+    }
+
+    private java.lang.Object msg_ = "";
+    /**
+     * <pre>
+     *提示信息
+     * </pre>
+     *
+     * <code>string msg = 3;</code>
+     */
+    public java.lang.String getMsg() {
+      java.lang.Object ref = msg_;
+      if (!(ref instanceof java.lang.String)) {
+        com.google.protobuf.ByteString bs =
+            (com.google.protobuf.ByteString) ref;
+        java.lang.String s = bs.toStringUtf8();
+        msg_ = s;
+        return s;
+      } else {
+        return (java.lang.String) ref;
+      }
+    }
+    /**
+     * <pre>
+     *提示信息
+     * </pre>
+     *
+     * <code>string msg = 3;</code>
+     */
+    public com.google.protobuf.ByteString
+        getMsgBytes() {
+      java.lang.Object ref = msg_;
+      if (ref instanceof String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        msg_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
+    }
+    /**
+     * <pre>
+     *提示信息
+     * </pre>
+     *
+     * <code>string msg = 3;</code>
+     */
+    public Builder setMsg(
+        java.lang.String value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  
+      msg_ = value;
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *提示信息
+     * </pre>
+     *
+     * <code>string msg = 3;</code>
+     */
+    public Builder clearMsg() {
+      
+      msg_ = getDefaultInstance().getMsg();
+      onChanged();
+      return this;
+    }
+    /**
+     * <pre>
+     *提示信息
+     * </pre>
+     *
+     * <code>string msg = 3;</code>
+     */
+    public Builder setMsgBytes(
+        com.google.protobuf.ByteString value) {
+      if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+      
+      msg_ = value;
+      onChanged();
+      return this;
+    }
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return this;
+    }
+
+    public final Builder mergeUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
+      return this;
+    }
+
+
+    // @@protoc_insertion_point(builder_scope:com.ywt.gapi.base.file.UploadFileResponse)
+  }
+
+  // @@protoc_insertion_point(class_scope:com.ywt.gapi.base.file.UploadFileResponse)
+  private static final com.ywt.gapi.base.file.UploadFileResponse DEFAULT_INSTANCE;
+  static {
+    DEFAULT_INSTANCE = new com.ywt.gapi.base.file.UploadFileResponse();
+  }
+
+  public static com.ywt.gapi.base.file.UploadFileResponse getDefaultInstance() {
+    return DEFAULT_INSTANCE;
+  }
+
+  private static final com.google.protobuf.Parser<UploadFileResponse>
+      PARSER = new com.google.protobuf.AbstractParser<UploadFileResponse>() {
+    public UploadFileResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+        return new UploadFileResponse(input, extensionRegistry);
+    }
+  };
+
+  public static com.google.protobuf.Parser<UploadFileResponse> parser() {
+    return PARSER;
+  }
+
+  @java.lang.Override
+  public com.google.protobuf.Parser<UploadFileResponse> getParserForType() {
+    return PARSER;
+  }
+
+  public com.ywt.gapi.base.file.UploadFileResponse getDefaultInstanceForType() {
+    return DEFAULT_INSTANCE;
+  }
+
+}
+

+ 54 - 0
src/main/java/com/ywt/gapi/base/file/UploadFileResponseOrBuilder.java

@@ -0,0 +1,54 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: file.proto
+
+package com.ywt.gapi.base.file;
+
+public interface UploadFileResponseOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:com.ywt.gapi.base.file.UploadFileResponse)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * <pre>
+   *结果标识
+   * </pre>
+   *
+   * <code>int32 code = 1;</code>
+   */
+  int getCode();
+
+  /**
+   * <pre>
+   *文件链接
+   * </pre>
+   *
+   * <code>string fileUrl = 2;</code>
+   */
+  java.lang.String getFileUrl();
+  /**
+   * <pre>
+   *文件链接
+   * </pre>
+   *
+   * <code>string fileUrl = 2;</code>
+   */
+  com.google.protobuf.ByteString
+      getFileUrlBytes();
+
+  /**
+   * <pre>
+   *提示信息
+   * </pre>
+   *
+   * <code>string msg = 3;</code>
+   */
+  java.lang.String getMsg();
+  /**
+   * <pre>
+   *提示信息
+   * </pre>
+   *
+   * <code>string msg = 3;</code>
+   */
+  com.google.protobuf.ByteString
+      getMsgBytes();
+}

+ 2 - 2
src/main/java/com/ywt/mg/Application.java

@@ -4,12 +4,12 @@ import com.ywt.rpc.core.RestServerStarter;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 
-@SpringBootApplication(scanBasePackages = "com.ywt.download")
+@SpringBootApplication(scanBasePackages = "com.ywt.mg")
 public class Application {
 
     public static void main(String[] args) {
         SpringApplication.run(Application.class, args);
-        System.out.println("Register rest service...");
+        System.out.println("Register DownloadServiceApiService rest service...");
         RestServerStarter.build(null).registry("com.ywt.DownloadServiceApiService", null, "");
 
     }

+ 7 - 2
src/main/java/com/ywt/mg/configs/ServiceGrpcStubBeans.java

@@ -1,5 +1,6 @@
 package com.ywt.mg.configs;
 
+import com.ywt.gapi.base.file.FileServiceGrpc;
 import com.ywt.gapi.user.DoctorServiceGrpc;
 import io.grpc.Channel;
 import org.springframework.context.annotation.Bean;
@@ -15,8 +16,12 @@ public class ServiceGrpcStubBeans {
 
     @Bean(name = "doctorServiceBlockingStub")
     public DoctorServiceGrpc.DoctorServiceBlockingStub getDoctorServiceBlockingStub() {
-        DoctorServiceGrpc.DoctorServiceBlockingStub stub = DoctorServiceGrpc.newBlockingStub(agentChannel);
-        return stub;
+        return DoctorServiceGrpc.newBlockingStub(agentChannel);
+    }
+
+    @Bean(name = "fileServiceBlockingStub")
+    public FileServiceGrpc.FileServiceBlockingStub getFileServiceBlockingStub() {
+        return FileServiceGrpc.newBlockingStub(agentChannel);
     }
 
 }

+ 5 - 5
src/main/java/com/ywt/mg/configs/jpa/YwtDrugConfig.java

@@ -23,8 +23,8 @@ import java.util.Map;
 @Configuration
 @EnableTransactionManagement
 @EnableJpaRepositories(
-        entityManagerFactoryRef = "entityManagerFactoryLog",
-        transactionManagerRef = "transactionManagerLog",
+        entityManagerFactoryRef = "entityManagerFactoryDrug",
+        transactionManagerRef = "transactionManagerDrug",
         basePackages = {"com.ywt.mg.domain.ywtDrugEntities"}
 )
 public class YwtDrugConfig {
@@ -32,12 +32,12 @@ public class YwtDrugConfig {
     @Qualifier("ywtDrugDataSource")
     private DataSource ywtDrugDataSource;
 
-    @Bean(name = "entityManagerLog")
+    @Bean(name = "entityManagerDrug")
     public EntityManager entityManager(EntityManagerFactoryBuilder builder) {
         return entityManagerFactory(builder).getObject().createEntityManager();
     }
 
-    @Bean(name = "entityManagerFactoryLog")
+    @Bean(name = "entityManagerFactoryDrug")
     public LocalContainerEntityManagerFactoryBean entityManagerFactory(EntityManagerFactoryBuilder builder) {
         return builder
                 .dataSource(ywtDrugDataSource)
@@ -54,7 +54,7 @@ public class YwtDrugConfig {
         return jpaProperties.getHibernateProperties(dataSource);
     }
 
-    @Bean(name = "transactionManagerLog")
+    @Bean(name = "transactionManagerDrug")
     public PlatformTransactionManager transactionManager(EntityManagerFactoryBuilder builder) {
         return new JpaTransactionManager(entityManagerFactory(builder).getObject());
     }

+ 1 - 0
src/main/java/com/ywt/mg/core/utils/FormatUtil.java

@@ -18,6 +18,7 @@ public class FormatUtil {
     public static final String FORMAT_DATE_MINUTE = "yyyy-MM-dd HH:mm";
     public static final String FORMAT_DATE_CYMDHM = "yyyy年M月d日 HH:mm";
     public static final String FORMAT_DATE_SECOND = "yyyy-MM-dd HH:mm:ss";
+    public static final String FORMAT_DATE_SECOND_NUMBER = "yyyyMMddHHmmss";
 
     public static final String DAY_TIME_START = " 00:00:00";
     public static final String DAY_TIME_END = " 23:59:59";

+ 349 - 0
src/main/java/com/ywt/mg/domain/entities/DownloadRecord.java

@@ -0,0 +1,349 @@
+package com.ywt.mg.domain.entities;
+
+import java.io.Serializable;
+import java.util.Date;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+@Table(name = "download_record")
+@Entity
+public class DownloadRecord implements Serializable {
+  private static final long serialVersionUID = 1L;
+
+  @Id
+  @GeneratedValue(strategy = GenerationType.IDENTITY)
+  @Column(name = "id", insertable = false, nullable = false)
+  private Integer id;
+
+  /**
+   * 下载的文件名称
+   */
+  @Column(name = "name")
+  private String name;
+
+  /**
+   * 药房id
+   */
+  @Column(name = "pharmacy_id")
+  private Integer pharmacyId = 0;
+
+  /**
+   * 药房名称
+   */
+  @Column(name = "pharmacy_name")
+  private String pharmacyName;
+
+  /**
+   * 医药id
+   */
+  @Column(name = "hospital_id")
+  private Integer hospitalId = 0;
+
+  /**
+   * 医药名称
+   */
+  @Column(name = "hospital_name")
+  private String hospitalName;
+
+  /**
+   * 对应ywt_center库的mg_admin表ID
+   */
+  @Column(name = "admin_id")
+  private Integer adminId = 0;
+
+  /**
+   * 对应ywt_center库的mg_admin表account
+   */
+  @Column(name = "admin_name")
+  private String adminName = "";
+
+  /**
+   * 对应oss地址,加密
+   */
+  @Column(name = "url")
+  private String url;
+
+  /**
+   * 创建时间
+   */
+  @Column(name = "create_time")
+  private Date createTime;
+
+  /**
+   * 文件生成时间
+   */
+  @Column(name = "finish_time")
+  private Date finishTime;
+
+  /**
+   * 接口响应时间
+   */
+  @Column(name = "difftime")
+  private Integer difftime;
+
+  /**
+   * 所有参数的md5,防止短时间内的重复点击
+   */
+  @Column(name = "param_md5")
+  private String paramMd5;
+
+  /**
+   * 接口地址(带域名)
+   */
+  @Column(name = "param_url")
+  private String paramUrl;
+
+  /**
+   * 0-下载中,1-下载成功,2-下载失败
+   */
+  @Column(name = "status")
+  private Integer status = 0;
+
+  /**
+   * 更新时间
+   */
+  @Column(name = "update_time")
+  private Date updateTime;
+
+  public Integer getId() {
+    return id;
+  }
+
+  public void setId(Integer id) {
+    this.id = id;
+  }
+
+  /**
+   * 下载的文件名称
+   */
+  public String getName() {
+    return name;
+  }
+
+  /**
+   * 下载的文件名称
+   */
+  public void setName(String name) {
+    this.name = name;
+  }
+
+  /**
+   * 药房id
+   */
+  public Integer getPharmacyId() {
+    return pharmacyId;
+  }
+
+  /**
+   * 药房id
+   */
+  public void setPharmacyId(Integer pharmacyId) {
+    this.pharmacyId = pharmacyId;
+  }
+
+  /**
+   * 药房名称
+   */
+  public String getPharmacyName() {
+    return pharmacyName;
+  }
+
+  /**
+   * 药房名称
+   */
+  public void setPharmacyName(String pharmacyName) {
+    this.pharmacyName = pharmacyName;
+  }
+
+  /**
+   * 医药id
+   */
+  public Integer getHospitalId() {
+    return hospitalId;
+  }
+
+  /**
+   * 医药id
+   */
+  public void setHospitalId(Integer hospitalId) {
+    this.hospitalId = hospitalId;
+  }
+
+  /**
+   * 医药名称
+   */
+  public String getHospitalName() {
+    return hospitalName;
+  }
+
+  /**
+   * 医药名称
+   */
+  public void setHospitalName(String hospitalName) {
+    this.hospitalName = hospitalName;
+  }
+
+  /**
+   * 对应ywt_center库的mg_admin表ID
+   */
+  public Integer getAdminId() {
+    return adminId;
+  }
+
+  /**
+   * 对应ywt_center库的mg_admin表ID
+   */
+  public void setAdminId(Integer adminId) {
+    this.adminId = adminId;
+  }
+
+  /**
+   * 对应ywt_center库的mg_admin表account
+   */
+  public String getAdminName() {
+    return adminName;
+  }
+
+  /**
+   * 对应ywt_center库的mg_admin表account
+   */
+  public void setAdminName(String adminName) {
+    this.adminName = adminName;
+  }
+
+  /**
+   * 对应oss地址,加密
+   */
+  public String getUrl() {
+    return url;
+  }
+
+  /**
+   * 对应oss地址,加密
+   */
+  public void setUrl(String url) {
+    this.url = url;
+  }
+
+  /**
+   * 创建时间
+   */
+  public Date getCreateTime() {
+    return createTime;
+  }
+
+  /**
+   * 创建时间
+   */
+  public void setCreateTime(Date createTime) {
+    this.createTime = createTime;
+  }
+
+  /**
+   * 文件生成时间
+   */
+  public Date getFinishTime() {
+    return finishTime;
+  }
+
+  /**
+   * 文件生成时间
+   */
+  public void setFinishTime(Date finishTime) {
+    this.finishTime = finishTime;
+  }
+
+  /**
+   * 接口响应时间
+   */
+  public Integer getDifftime() {
+    return difftime;
+  }
+
+  /**
+   * 接口响应时间
+   */
+  public void setDifftime(Integer difftime) {
+    this.difftime = difftime;
+  }
+
+  /**
+   * 所有参数的md5,防止短时间内的重复点击
+   */
+  public String getParamMd5() {
+    return paramMd5;
+  }
+
+  /**
+   * 所有参数的md5,防止短时间内的重复点击
+   */
+  public void setParamMd5(String paramMd5) {
+    this.paramMd5 = paramMd5;
+  }
+
+  /**
+   * 接口地址(带域名)
+   */
+  public String getParamUrl() {
+    return paramUrl;
+  }
+
+  /**
+   * 接口地址(带域名)
+   */
+  public void setParamUrl(String paramUrl) {
+    this.paramUrl = paramUrl;
+  }
+
+  /**
+   * 0-下载中,1-下载成功,2-下载失败
+   */
+  public Integer getStatus() {
+    return status;
+  }
+
+  /**
+   * 0-下载中,1-下载成功,2-下载失败
+   */
+  public void setStatus(Integer status) {
+    this.status = status;
+  }
+
+  /**
+   * 更新时间
+   */
+  public Date getUpdateTime() {
+    return updateTime;
+  }
+
+  /**
+   * 更新时间
+   */
+  public void setUpdateTime(Date updateTime) {
+    this.updateTime = updateTime;
+  }
+
+  public String toString() {
+    return "DownloadRecord{id=" + id + 
+      ", name=" + name + 
+      ", pharmacyId=" + pharmacyId + 
+      ", pharmacyName=" + pharmacyName + 
+      ", hospitalId=" + hospitalId + 
+      ", hospitalName=" + hospitalName + 
+      ", adminId=" + adminId + 
+      ", adminName=" + adminName + 
+      ", url=" + url + 
+      ", createTime=" + createTime + 
+      ", finishTime=" + finishTime + 
+      ", difftime=" + difftime + 
+      ", paramMd5=" + paramMd5 + 
+      ", paramUrl=" + paramUrl + 
+      ", status=" + status + 
+      ", updateTime=" + updateTime + 
+      "}";
+  }
+}

+ 12 - 0
src/main/java/com/ywt/mg/domain/entities/DownloadRecordRepository.java

@@ -0,0 +1,12 @@
+package com.ywt.mg.domain.entities;
+
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import com.ywt.mg.domain.entities.DownloadRecord;
+import org.springframework.data.jpa.repository.Query;
+
+public interface DownloadRecordRepository extends JpaRepository<DownloadRecord, Integer>, JpaSpecificationExecutor<DownloadRecord> {
+
+    @Query(value = "select * from download_record where admin_id = ? and param_md5 = ? and param_url = ? and status = 0 order by id desc limit 1;",nativeQuery = true)
+    DownloadRecord findCreatingLeastOne(int currentAdminId, String paramMd5, String paramUrl);
+}

+ 4 - 0
src/main/java/com/ywt/mg/domain/models/ConstantDef.java

@@ -81,6 +81,10 @@ public class ConstantDef {
     public static final String BILL_PAYMENT_STR = "交易";
     public static final String BILL_REFUND_STR = "退款";
 
+    /**
+     * excel下载存放地址
+     */
+    public static final String BIG_DATA_EXCEL_FILE_PATH = "big_data_file/excel";
 
 
 

+ 8 - 0
src/main/java/com/ywt/mg/domain/models/pojo/ExcelCollectPojo.java

@@ -19,6 +19,14 @@ public class ExcelCollectPojo implements Serializable {
     // 汇总数据
     private String[] dataArr;
 
+
+    public ExcelCollectPojo(int col, int row, String[] dataArr) {
+        this.col = col;
+        this.row = row;
+        this.dataArr = dataArr;
+    }
+
+
     public int getRow() {
         return row;
     }

+ 688 - 0
src/main/java/com/ywt/mg/domain/ywtDrugEntities/Pharmacy.java

@@ -0,0 +1,688 @@
+package com.ywt.mg.domain.ywtDrugEntities;
+
+import java.io.Serializable;
+import java.util.Date;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Table;
+
+/**
+ * 药房表
+ */
+@Entity
+@Table(name = "pharmacy")
+public class Pharmacy implements Serializable {
+  private static final long serialVersionUID = 1L;
+
+  @Id
+  @GeneratedValue(strategy = GenerationType.IDENTITY)
+  @Column(name = "id", insertable = false, nullable = false)
+  private Integer id;
+
+  /**
+   * 药房名称
+   */
+  @Column(name = "name", nullable = false)
+  private String name = "";
+
+  /**
+   * 权重
+   */
+  @Column(name = "weight", nullable = false)
+  private Integer weight;
+
+  /**
+   * 医院Id
+   */
+  @Column(name = "hospital_id", nullable = false)
+  private Integer hospitalId;
+
+  /**
+   * 医院名称
+   */
+  @Column(name = "hospital_name", nullable = false)
+  private String hospitalName = "";
+
+  /**
+   * 是否删除
+   */
+  @Column(name = "deleted", nullable = false)
+  private Integer deleted;
+
+  /**
+   * 创建时间
+   */
+  @Column(name = "create_time", nullable = false)
+  private Date createTime;
+
+  /**
+   * 药房地址
+   */
+  @Column(name = "address")
+  private String address;
+
+  /**
+   * 是否支持医保,0-不支持,1-支持
+   */
+  @Column(name = "insurance")
+  private Integer insurance;
+
+  /**
+   * 省名称
+   */
+  @Column(name = "province", nullable = false)
+  private String province;
+
+  /**
+   * 市名称
+   */
+  @Column(name = "city", nullable = false)
+  private String city;
+
+  /**
+   * 区、县名称
+   */
+  @Column(name = "area", nullable = false)
+  private String area;
+
+  /**
+   * 状态,0-正常,1-禁用
+   */
+  @Column(name = "status")
+  private Integer status = 0;
+
+  /**
+   * 药房电话
+   */
+  @Column(name = "tel")
+  private String tel = "";
+
+  /**
+   * 1-可用于开处方
+   */
+  @Column(name = "type", nullable = false)
+  private Integer type = 0;
+
+  /**
+   * 父级id
+   */
+  @Column(name = "parent_id")
+  private Integer parentId = 0;
+
+  /**
+   * 树编码(eg. 210|33|112)
+   */
+  @Column(name = "tree_code", nullable = false)
+  private String treeCode;
+
+  /**
+   * 扩展状态:1-前端不显示;2-支持快递,4-不能开针剂或者肽类药品
+   */
+  @Column(name = "ext_status")
+  private Integer extStatus = 0;
+
+  /**
+   * 药房管理人员,店长
+   */
+  @Column(name = "manager")
+  private String manager = "";
+
+  /**
+   * 开放处方进入的渠道,对应PrescriptionInfoSourceEnum
+   */
+  @Column(name = "open_source_ids")
+  private String openSourceIds = "";
+
+  /**
+   * 药房别名
+   */
+  @Column(name = "other_name")
+  private String otherName = "";
+
+  /**
+   * 经度
+   */
+  @Column(name = "longitude", nullable = false)
+  private Double longitude = 0.000000D;
+
+  /**
+   * 纬度
+   */
+  @Column(name = "latitude", nullable = false)
+  private Double latitude = 0.000000D;
+
+  /**
+   * 是否显示,0-显示,1-不显示
+   */
+  @Column(name = "display")
+  private Integer display = 0;
+
+  /**
+   * 时间格式:18:00,表示当月未开发票的患者,在当月最后一天18:00后将不能线上提交开票申请
+   */
+  @Column(name = "invoice_end_time")
+  private String invoiceEndTime;
+
+  /**
+   * 发票状态,0-关闭,1-开启
+   */
+  @Column(name = "invoice_status")
+  private Integer invoiceStatus = 0;
+
+  /**
+   * 对账只能看到这个时间之后的数据
+   */
+  @Column(name = "filter_time")
+  private String filterTime;
+
+  /**
+   * 不良反应反馈来源
+   */
+  @Column(name = "feedback_source")
+  private Integer feedbackSource;
+
+  /**
+   * 处方权限,对应sys_dict_type_item表中type_code为prescription_right_doctor_class字段的记录中的value字段
+   */
+  @Column(name = "prescription_right_ids")
+  private String prescriptionRightIds = "";
+
+  /**
+   * 无库存提示, 1: 开, 0: 关
+   */
+  @Column(name = "remind", nullable = false)
+  private Integer remind = 1;
+
+  /**
+   * 是否是领队,0-不是,1-是,v4.3.6,用于多个药房之间的药房状态区分
+   */
+  @Column(name = "leader", nullable = false)
+  private Integer leader = 0;
+
+  /**
+   * 商户外部系统编号,对应icbc_vendor表的out_vendor_id字段
+   */
+  @Column(name = "out_vendor_id")
+  private String outVendorId = "";
+
+  public Integer getId() {
+    return id;
+  }
+
+  public void setId(Integer id) {
+    this.id = id;
+  }
+
+  /**
+   * 药房名称
+   */
+  public String getName() {
+    return name;
+  }
+
+  /**
+   * 药房名称
+   */
+  public void setName(String name) {
+    this.name = name;
+  }
+
+  /**
+   * 权重
+   */
+  public Integer getWeight() {
+    return weight;
+  }
+
+  /**
+   * 权重
+   */
+  public void setWeight(Integer weight) {
+    this.weight = weight;
+  }
+
+  /**
+   * 医院Id
+   */
+  public Integer getHospitalId() {
+    return hospitalId;
+  }
+
+  /**
+   * 医院Id
+   */
+  public void setHospitalId(Integer hospitalId) {
+    this.hospitalId = hospitalId;
+  }
+
+  /**
+   * 医院名称
+   */
+  public String getHospitalName() {
+    return hospitalName;
+  }
+
+  /**
+   * 医院名称
+   */
+  public void setHospitalName(String hospitalName) {
+    this.hospitalName = hospitalName;
+  }
+
+  /**
+   * 是否删除
+   */
+  public Integer getDeleted() {
+    return deleted;
+  }
+
+  /**
+   * 是否删除
+   */
+  public void setDeleted(Integer deleted) {
+    this.deleted = deleted;
+  }
+
+  /**
+   * 创建时间
+   */
+  public Date getCreateTime() {
+    return createTime;
+  }
+
+  /**
+   * 创建时间
+   */
+  public void setCreateTime(Date createTime) {
+    this.createTime = createTime;
+  }
+
+  /**
+   * 药房地址
+   */
+  public String getAddress() {
+    return address;
+  }
+
+  /**
+   * 药房地址
+   */
+  public void setAddress(String address) {
+    this.address = address;
+  }
+
+  /**
+   * 是否支持医保,0-不支持,1-支持
+   */
+  public Integer getInsurance() {
+    return insurance;
+  }
+
+  /**
+   * 是否支持医保,0-不支持,1-支持
+   */
+  public void setInsurance(Integer insurance) {
+    this.insurance = insurance;
+  }
+
+  /**
+   * 省名称
+   */
+  public String getProvince() {
+    return province;
+  }
+
+  /**
+   * 省名称
+   */
+  public void setProvince(String province) {
+    this.province = province;
+  }
+
+  /**
+   * 市名称
+   */
+  public String getCity() {
+    return city;
+  }
+
+  /**
+   * 市名称
+   */
+  public void setCity(String city) {
+    this.city = city;
+  }
+
+  /**
+   * 区、县名称
+   */
+  public String getArea() {
+    return area;
+  }
+
+  /**
+   * 区、县名称
+   */
+  public void setArea(String area) {
+    this.area = area;
+  }
+
+  /**
+   * 状态,0-正常,1-禁用
+   */
+  public Integer getStatus() {
+    return status;
+  }
+
+  /**
+   * 状态,0-正常,1-禁用
+   */
+  public void setStatus(Integer status) {
+    this.status = status;
+  }
+
+  /**
+   * 药房电话
+   */
+  public String getTel() {
+    return tel;
+  }
+
+  /**
+   * 药房电话
+   */
+  public void setTel(String tel) {
+    this.tel = tel;
+  }
+
+  /**
+   * 1-可用于开处方
+   */
+  public Integer getType() {
+    return type;
+  }
+
+  /**
+   * 1-可用于开处方
+   */
+  public void setType(Integer type) {
+    this.type = type;
+  }
+
+  /**
+   * 父级id
+   */
+  public Integer getParentId() {
+    return parentId;
+  }
+
+  /**
+   * 父级id
+   */
+  public void setParentId(Integer parentId) {
+    this.parentId = parentId;
+  }
+
+  /**
+   * 树编码(eg. 210|33|112)
+   */
+  public String getTreeCode() {
+    return treeCode;
+  }
+
+  /**
+   * 树编码(eg. 210|33|112)
+   */
+  public void setTreeCode(String treeCode) {
+    this.treeCode = treeCode;
+  }
+
+  /**
+   * 扩展状态:1-前端不显示;2-支持快递,4-不能开针剂或者肽类药品
+   */
+  public Integer getExtStatus() {
+    return extStatus;
+  }
+
+  /**
+   * 扩展状态:1-前端不显示;2-支持快递,4-不能开针剂或者肽类药品
+   */
+  public void setExtStatus(Integer extStatus) {
+    this.extStatus = extStatus;
+  }
+
+  /**
+   * 药房管理人员,店长
+   */
+  public String getManager() {
+    return manager;
+  }
+
+  /**
+   * 药房管理人员,店长
+   */
+  public void setManager(String manager) {
+    this.manager = manager;
+  }
+
+  /**
+   * 开放处方进入的渠道,对应PrescriptionInfoSourceEnum
+   */
+  public String getOpenSourceIds() {
+    return openSourceIds;
+  }
+
+  /**
+   * 开放处方进入的渠道,对应PrescriptionInfoSourceEnum
+   */
+  public void setOpenSourceIds(String openSourceIds) {
+    this.openSourceIds = openSourceIds;
+  }
+
+  /**
+   * 药房别名
+   */
+  public String getOtherName() {
+    return otherName;
+  }
+
+  /**
+   * 药房别名
+   */
+  public void setOtherName(String otherName) {
+    this.otherName = otherName;
+  }
+
+  /**
+   * 经度
+   */
+  public Double getLongitude() {
+    return longitude;
+  }
+
+  /**
+   * 经度
+   */
+  public void setLongitude(Double longitude) {
+    this.longitude = longitude;
+  }
+
+  /**
+   * 纬度
+   */
+  public Double getLatitude() {
+    return latitude;
+  }
+
+  /**
+   * 纬度
+   */
+  public void setLatitude(Double latitude) {
+    this.latitude = latitude;
+  }
+
+  /**
+   * 是否显示,0-显示,1-不显示
+   */
+  public Integer getDisplay() {
+    return display;
+  }
+
+  /**
+   * 是否显示,0-显示,1-不显示
+   */
+  public void setDisplay(Integer display) {
+    this.display = display;
+  }
+
+  /**
+   * 时间格式:18:00,表示当月未开发票的患者,在当月最后一天18:00后将不能线上提交开票申请
+   */
+  public String getInvoiceEndTime() {
+    return invoiceEndTime;
+  }
+
+  /**
+   * 时间格式:18:00,表示当月未开发票的患者,在当月最后一天18:00后将不能线上提交开票申请
+   */
+  public void setInvoiceEndTime(String invoiceEndTime) {
+    this.invoiceEndTime = invoiceEndTime;
+  }
+
+  /**
+   * 发票状态,0-关闭,1-开启
+   */
+  public Integer getInvoiceStatus() {
+    return invoiceStatus;
+  }
+
+  /**
+   * 发票状态,0-关闭,1-开启
+   */
+  public void setInvoiceStatus(Integer invoiceStatus) {
+    this.invoiceStatus = invoiceStatus;
+  }
+
+  /**
+   * 对账只能看到这个时间之后的数据
+   */
+  public String getFilterTime() {
+    return filterTime;
+  }
+
+  /**
+   * 对账只能看到这个时间之后的数据
+   */
+  public void setFilterTime(String filterTime) {
+    this.filterTime = filterTime;
+  }
+
+  /**
+   * 不良反应反馈来源
+   */
+  public Integer getFeedbackSource() {
+    return feedbackSource;
+  }
+
+  /**
+   * 不良反应反馈来源
+   */
+  public void setFeedbackSource(Integer feedbackSource) {
+    this.feedbackSource = feedbackSource;
+  }
+
+  /**
+   * 处方权限,对应sys_dict_type_item表中type_code为prescription_right_doctor_class字段的记录中的value字段
+   */
+  public String getPrescriptionRightIds() {
+    return prescriptionRightIds;
+  }
+
+  /**
+   * 处方权限,对应sys_dict_type_item表中type_code为prescription_right_doctor_class字段的记录中的value字段
+   */
+  public void setPrescriptionRightIds(String prescriptionRightIds) {
+    this.prescriptionRightIds = prescriptionRightIds;
+  }
+
+  /**
+   * 无库存提示, 1: 开, 0: 关
+   */
+  public Integer getRemind() {
+    return remind;
+  }
+
+  /**
+   * 无库存提示, 1: 开, 0: 关
+   */
+  public void setRemind(Integer remind) {
+    this.remind = remind;
+  }
+
+  /**
+   * 是否是领队,0-不是,1-是,v4.3.6,用于多个药房之间的药房状态区分
+   */
+  public Integer getLeader() {
+    return leader;
+  }
+
+  /**
+   * 是否是领队,0-不是,1-是,v4.3.6,用于多个药房之间的药房状态区分
+   */
+  public void setLeader(Integer leader) {
+    this.leader = leader;
+  }
+
+  /**
+   * 商户外部系统编号,对应icbc_vendor表的out_vendor_id字段
+   */
+  public String getOutVendorId() {
+    return outVendorId;
+  }
+
+  /**
+   * 商户外部系统编号,对应icbc_vendor表的out_vendor_id字段
+   */
+  public void setOutVendorId(String outVendorId) {
+    this.outVendorId = outVendorId;
+  }
+
+  public String toString() {
+    return "Pharmacy{id=" + id + 
+      ", name=" + name + 
+      ", weight=" + weight + 
+      ", hospitalId=" + hospitalId + 
+      ", hospitalName=" + hospitalName + 
+      ", deleted=" + deleted + 
+      ", createTime=" + createTime + 
+      ", address=" + address + 
+      ", insurance=" + insurance + 
+      ", province=" + province + 
+      ", city=" + city + 
+      ", area=" + area + 
+      ", status=" + status + 
+      ", tel=" + tel + 
+      ", type=" + type + 
+      ", parentId=" + parentId + 
+      ", treeCode=" + treeCode + 
+      ", extStatus=" + extStatus + 
+      ", manager=" + manager + 
+      ", openSourceIds=" + openSourceIds + 
+      ", otherName=" + otherName + 
+      ", longitude=" + longitude + 
+      ", latitude=" + latitude + 
+      ", display=" + display + 
+      ", invoiceEndTime=" + invoiceEndTime + 
+      ", invoiceStatus=" + invoiceStatus + 
+      ", filterTime=" + filterTime + 
+      ", feedbackSource=" + feedbackSource + 
+      ", prescriptionRightIds=" + prescriptionRightIds + 
+      ", remind=" + remind + 
+      ", leader=" + leader + 
+      ", outVendorId=" + outVendorId + 
+      "}";
+  }
+}

+ 8 - 0
src/main/java/com/ywt/mg/domain/ywtDrugEntities/PharmacyRepository.java

@@ -0,0 +1,8 @@
+package com.ywt.mg.domain.ywtDrugEntities;
+
+import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+
+public interface PharmacyRepository extends JpaRepository<Pharmacy, Integer>, JpaSpecificationExecutor<Pharmacy> {
+
+}

+ 0 - 64
src/main/java/com/ywt/mg/params/bill/pharmacy/request/ConfirmCheckMonthTotalRequest.java

@@ -1,64 +0,0 @@
-package com.ywt.mg.params.bill.pharmacy.request;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * ConfirmCheckMonthTotalRequest Class
- *
- * @author daiyihua
- * @date 2019/11/15
- */
-@ApiModel(value = "账单回签核对Request")
-public class ConfirmCheckMonthTotalRequest implements Serializable {
-
-    @Min(value = 1, message = "请输入正确的账单回签ID")
-    @ApiModelProperty(value = "账单回签ID", required = true)
-    private int checkTotalId;
-
-    @Min(value = 1, message = "请输入正确的核对状态")
-    @ApiModelProperty(value = "核对状态: 0-未核对,1-核对匹配,2-核对不匹配", required = true)
-    private int checkStatus;
-
-    @ApiModelProperty(value = "核对备注")
-    private String checkRemark;
-
-    @Min(value = 0, message = "请输入正确的用户ID")
-    @ApiModelProperty(value = "用户ID", required = true)
-    private int adminId;
-
-    public int getCheckTotalId() {
-        return checkTotalId;
-    }
-
-    public void setCheckTotalId(int checkTotalId) {
-        this.checkTotalId = checkTotalId;
-    }
-
-    public int getCheckStatus() {
-        return checkStatus;
-    }
-
-    public void setCheckStatus(int checkStatus) {
-        this.checkStatus = checkStatus;
-    }
-
-    public String getCheckRemark() {
-        return checkRemark;
-    }
-
-    public void setCheckRemark(String checkRemark) {
-        this.checkRemark = checkRemark;
-    }
-
-    public int getAdminId() {
-        return adminId;
-    }
-
-    public void setAdminId(int adminId) {
-        this.adminId = adminId;
-    }
-}

+ 0 - 69
src/main/java/com/ywt/mg/params/bill/pharmacy/request/QueryBillThirdMergeRemarkRequest.java

@@ -1,69 +0,0 @@
-package com.ywt.mg.params.bill.pharmacy.request;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModelProperty;
-
-/**
- * @author daiyihua
- * @create 2020-11-30 16:35
- * @program ywt_mg
- * @description 查询月度核对表合计备注的操作记录
- **/
-public class QueryBillThirdMergeRemarkRequest extends PageRequest {
-
-    @ApiModelProperty(value = "查询时间开始时间")
-    private String queryDateStart;
-
-    @ApiModelProperty(value = "查询时间截止时间")
-    private String queryDateEnd;
-
-
-    @ApiModelProperty(value = "查询创建时间开始时间")
-    private String createTimeStart;
-
-    @ApiModelProperty(value = "查询创建时间截止时间")
-    private String createTimeEnd;
-
-    @ApiModelProperty(value = "药房ID")
-    private int pharmacyId;
-
-    public String getQueryDateStart() {
-        return queryDateStart;
-    }
-
-    public void setQueryDateStart(String queryDateStart) {
-        this.queryDateStart = queryDateStart;
-    }
-
-    public String getQueryDateEnd() {
-        return queryDateEnd;
-    }
-
-    public void setQueryDateEnd(String queryDateEnd) {
-        this.queryDateEnd = queryDateEnd;
-    }
-
-    public String getCreateTimeStart() {
-        return createTimeStart;
-    }
-
-    public void setCreateTimeStart(String createTimeStart) {
-        this.createTimeStart = createTimeStart;
-    }
-
-    public String getCreateTimeEnd() {
-        return createTimeEnd;
-    }
-
-    public void setCreateTimeEnd(String createTimeEnd) {
-        this.createTimeEnd = createTimeEnd;
-    }
-
-    public int getPharmacyId() {
-        return pharmacyId;
-    }
-
-    public void setPharmacyId(int pharmacyId) {
-        this.pharmacyId = pharmacyId;
-    }
-}

+ 0 - 93
src/main/java/com/ywt/mg/params/bill/pharmacy/request/QueryMonthBillListRequest.java

@@ -1,93 +0,0 @@
-package com.ywt.mg.params.bill.pharmacy.request;
-
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-/**
- * QueryMonthBillListRequest Class
- *
- * @author daiyihua
- * @date 2019/11/15
- */
-@ApiModel(value = "账单回签列表查询、下载Request")
-public class QueryMonthBillListRequest extends PageRequest {
-
-    @ApiModelProperty(value = "查询时间开始月份,格式:yyyy-MM")
-    private String startDate;
-
-    @ApiModelProperty(value = "查询时间截止月份,格式:yyyy-MM")
-    private String endDate;
-
-    @ApiModelProperty(value = "药房ID,不需要页面传入")
-    private int pharmacyId;
-
-    @ApiModelProperty(value = "过滤时间,只能看到这个日期之后的数据,不需要页面传入")
-    private String filterTime;
-
-    @ApiModelProperty(value = "对账服务类型:0-默认,1-营养餐(订餐服务)")
-    private int tos = 0;
-
-    @ApiModelProperty(value = "医院ID")
-    private int hospitalId;
-
-    @ApiModelProperty(value = "药房Id")
-    private String selectPharmacyId;
-
-    public String getStartDate() {
-        return startDate;
-    }
-
-    public void setStartDate(String startDate) {
-        this.startDate = startDate;
-    }
-
-    public String getEndDate() {
-        return endDate;
-    }
-
-    public void setEndDate(String endDate) {
-        this.endDate = endDate;
-    }
-
-    public int getPharmacyId() {
-        return pharmacyId;
-    }
-
-    public void setPharmacyId(int pharmacyId) {
-        this.pharmacyId = pharmacyId;
-    }
-
-    public String getFilterTime() {
-        return filterTime;
-    }
-
-    public void setFilterTime(String filterTime) {
-        this.filterTime = filterTime;
-    }
-
-    public int getTos() {
-        return tos;
-    }
-
-    public void setTos(int tos) {
-        this.tos = tos;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getSelectPharmacyId() {
-        return selectPharmacyId;
-    }
-
-    public void setSelectPharmacyId(String selectPharmacyId) {
-        this.selectPharmacyId = selectPharmacyId;
-    }
-}

+ 0 - 52
src/main/java/com/ywt/mg/params/bill/pharmacy/request/SaveBillThirdMergeRemarkRequest.java

@@ -1,52 +0,0 @@
-package com.ywt.mg.params.bill.pharmacy.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import javax.validation.constraints.NotNull;
-
-/**
- * @author daiyihua
- * @create 2020-11-30 15:59
- * @program ywt_mg
- * @description 保存于都核对表合计备注
- **/
-public class SaveBillThirdMergeRemarkRequest {
-
-    @NotNull(message = "请选择开始时间")
-    @ApiModelProperty(value = "开始时间", required = true)
-    private String date;
-
-
-    @Min(value = 1, message = "请输入正确的药房ID")
-    @ApiModelProperty(value = "药房ID", required = true)
-    private int pharmacyId;
-
-    @NotNull(message = "备注不能为空")
-    @ApiModelProperty(value = "备注")
-    private String remark;
-
-    public String getDate() {
-        return date;
-    }
-
-    public void setDate(String date) {
-        this.date = date;
-    }
-
-    public int getPharmacyId() {
-        return pharmacyId;
-    }
-
-    public void setPharmacyId(int pharmacyId) {
-        this.pharmacyId = pharmacyId;
-    }
-
-    public String getRemark() {
-        return remark;
-    }
-
-    public void setRemark(String remark) {
-        this.remark = remark;
-    }
-}

+ 0 - 72
src/main/java/com/ywt/mg/params/bill/third/CheckRecordListRequest.java

@@ -1,72 +0,0 @@
-package com.ywt.mg.params.bill.third;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-03-24 13:48
- * @program ywt_mg
- * @description 外部账单核对记录Request
- **/
-@ApiModel(value = "外部账单核对记录Request")
-public class CheckRecordListRequest extends PageRequest implements Serializable {
-
-    @ApiModelProperty(value = "创建时间查询开始时间")
-    private String createStartTime;
-
-    @ApiModelProperty(value = "创建时间查询截止时间")
-    private String createEndTime;
-
-    @ApiModelProperty(value = "药房ID")
-    private int pharmacyId = 0;
-
-    @ApiModelProperty(value = "当 tos = 0 时,查找的外部账单;当 tos = 1 时,查找的是 订餐服务账单核对;当 tos = 2 时,查找的是 影像报告账单核对")
-    private int tos = 0;
-
-    @ApiModelProperty(value = "医院ID")
-    private int hospitalId = 0;
-
-    public String getCreateStartTime() {
-        return createStartTime;
-    }
-
-    public void setCreateStartTime(String createStartTime) {
-        this.createStartTime = createStartTime;
-    }
-
-    public String getCreateEndTime() {
-        return createEndTime;
-    }
-
-    public void setCreateEndTime(String createEndTime) {
-        this.createEndTime = createEndTime;
-    }
-
-    public int getPharmacyId() {
-        return pharmacyId;
-    }
-
-    public void setPharmacyId(int pharmacyId) {
-        this.pharmacyId = pharmacyId;
-    }
-
-    public int getTos() {
-        return tos;
-    }
-
-    public void setTos(int tos) {
-        this.tos = tos;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-}

+ 0 - 94
src/main/java/com/ywt/mg/params/bill/third/QueryCheckListRequest.java

@@ -1,94 +0,0 @@
-package com.ywt.mg.params.bill.third;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-03-24 14:23
- * @program ywt_mg
- * @description 查询月度核对表Request
- **/
-@ApiModel(value = "查询月度核对表Request")
-public class QueryCheckListRequest extends PageRequest implements Serializable {
-
-    @ApiModelProperty(value = "创建时间查询开始时间")
-    private String createStartTime;
-
-    @ApiModelProperty(value = "创建时间查询截止时间")
-    private String createEndTime;
-
-    @ApiModelProperty(value = "过滤时间")
-    private String filterTime;
-
-    @ApiModelProperty(value = "药房ID")
-    private int pharmacyId = 0;
-
-    @ApiModelProperty(value = "当 tos = 0 时,查找的外部账单;当 tos = 1 时,查找的是 订餐服务账单核对;当 tos = 2 时,查找的是 影像报告账单核对")
-    private int tos = 0;
-
-    @ApiModelProperty(value = "医院ID")
-    private int hospitalId = 0;
-
-    @ApiModelProperty(value = "选择的药房Id")
-    private String selectPharmacyId;
-
-    public String getCreateStartTime() {
-        return createStartTime;
-    }
-
-    public void setCreateStartTime(String createStartTime) {
-        this.createStartTime = createStartTime;
-    }
-
-    public String getCreateEndTime() {
-        return createEndTime;
-    }
-
-    public void setCreateEndTime(String createEndTime) {
-        this.createEndTime = createEndTime;
-    }
-
-    public String getFilterTime() {
-        return filterTime;
-    }
-
-    public void setFilterTime(String filterTime) {
-        this.filterTime = filterTime;
-    }
-
-    public int getPharmacyId() {
-        return pharmacyId;
-    }
-
-    public void setPharmacyId(int pharmacyId) {
-        this.pharmacyId = pharmacyId;
-    }
-
-    public int getTos() {
-        return tos;
-    }
-
-    public void setTos(int tos) {
-        this.tos = tos;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getSelectPharmacyId() {
-        return selectPharmacyId;
-    }
-
-    public void setSelectPharmacyId(String selectPharmacyId) {
-        this.selectPharmacyId = selectPharmacyId;
-    }
-}

+ 0 - 71
src/main/java/com/ywt/mg/params/bill/third/QueryTotalListRequest.java

@@ -1,71 +0,0 @@
-package com.ywt.mg.params.bill.third;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-03-24 10:32
- * @program ywt_mg
- * @description 查询总账单列表Request
- **/
-@ApiModel(value = "查询总账单列表Request")
-public class QueryTotalListRequest implements Serializable {
-
-    @ApiModelProperty(value = "日期", required = true)
-    private String date;
-
-    @ApiModelProperty(value = "药房ID")
-    private int pharmacyId = 0;
-
-    @ApiModelProperty(value = "选择的药房ID")
-    private String selectPharmacyId;
-
-    @ApiModelProperty(value = "当 tos = 0 时,查找的外部账单;当 tos = 1 时,查找的是 订餐服务账单核对;当 tos = 2 时,查找的是 影像报告账单核对")
-    private int tos = 0;
-
-    @ApiModelProperty(value = "医院ID")
-    private int hospitalId = 0;
-
-    public String getDate() {
-        return date;
-    }
-
-    public void setDate(String date) {
-        this.date = date;
-    }
-
-    public int getPharmacyId() {
-        return pharmacyId;
-    }
-
-    public void setPharmacyId(int pharmacyId) {
-        this.pharmacyId = pharmacyId;
-    }
-
-    public int getTos() {
-        return tos;
-    }
-
-    public void setTos(int tos) {
-        this.tos = tos;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getSelectPharmacyId() {
-        return selectPharmacyId;
-    }
-
-    public void setSelectPharmacyId(String selectPharmacyId) {
-        this.selectPharmacyId = selectPharmacyId;
-    }
-}

+ 0 - 38
src/main/java/com/ywt/mg/params/bill/third/SettleCheckResultAccountsRequest.java

@@ -1,38 +0,0 @@
-package com.ywt.mg.params.bill.third;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-03-23 16:17
- * @program ywt_mg
- * @description 影像报告账单核对Request
- **/
-@ApiModel(value = "影像报告账单核对Request")
-public class SettleCheckResultAccountsRequest implements Serializable {
-
-    @ApiModelProperty(value = "日期", required = true)
-    private String date;
-
-    @ApiModelProperty(value = "医院ID")
-    private int hospitalId;
-
-    public String getDate() {
-        return date;
-    }
-
-    public void setDate(String date) {
-        this.date = date;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-}

+ 0 - 50
src/main/java/com/ywt/mg/params/bill/third/request/ConfirmCheckTotalRequest.java

@@ -1,50 +0,0 @@
-package com.ywt.mg.params.bill.third.request;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-
-/**
- * ConfirmCheckTotalRequest Class
- *
- * @author daiyihua
- * @date 2019/11/18
- */
-@ApiModel(value = "确认核对Request")
-public class ConfirmCheckTotalRequest {
-    @Min(value = 1, message = "请输入正确的记录ID")
-    @ApiModelProperty(value = "核对ID", required = true, example = "0")
-    private int checkTotalId;
-
-    @Min(value = 1, message = "请输入正确的核对状态")
-    @ApiModelProperty(value = "核对状态", required = true, example = "0")
-    private int checkStatus;
-
-    @ApiModelProperty(value = "核对备注", required = true)
-    private String checkRemark;
-
-    public int getCheckTotalId() {
-        return checkTotalId;
-    }
-
-    public void setCheckTotalId(int checkTotalId) {
-        this.checkTotalId = checkTotalId;
-    }
-
-    public int getCheckStatus() {
-        return checkStatus;
-    }
-
-    public void setCheckStatus(int checkStatus) {
-        this.checkStatus = checkStatus;
-    }
-
-    public String getCheckRemark() {
-        return checkRemark;
-    }
-
-    public void setCheckRemark(String checkRemark) {
-        this.checkRemark = checkRemark;
-    }
-}

+ 0 - 57
src/main/java/com/ywt/mg/params/bill/third/request/CreateMonthBillRequest.java

@@ -1,57 +0,0 @@
-package com.ywt.mg.params.bill.third.request;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-/**
- * CreateMonthBillRequest Class
- *
- * @author daiyihua
- * @date 2019/11/15
- */
-@ApiModel(value = "生成账单回签Request")
-public class CreateMonthBillRequest {
-
-    private int pharmacyId;
-
-    @ApiModelProperty(value = "需要计算的月份,格式:yyyy-MM", required = true)
-    private String date;
-
-    @ApiModelProperty(value = "对账服务类型(处方、耗材),0-默认,1-订餐服务")
-    private int tos = 0;
-
-    @ApiModelProperty(value = "操作用户ID,可不传")
-    private int adminId = 0;
-
-    public int getPharmacyId() {
-        return pharmacyId;
-    }
-
-    public void setPharmacyId(int pharmacyId) {
-        this.pharmacyId = pharmacyId;
-    }
-
-    public String getDate() {
-        return date;
-    }
-
-    public void setDate(String date) {
-        this.date = date;
-    }
-
-    public int getTos() {
-        return tos;
-    }
-
-    public void setTos(int tos) {
-        this.tos = tos;
-    }
-
-    public int getAdminId() {
-        return adminId;
-    }
-
-    public void setAdminId(int adminId) {
-        this.adminId = adminId;
-    }
-}

+ 0 - 27
src/main/java/com/ywt/mg/params/bill/third/request/UploadPOSExcelRequest.java

@@ -1,27 +0,0 @@
-package com.ywt.mg.params.bill.third.request;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-
-/**
- * ConfirmCheckTotalRequest Class
- *
- * @author daiyihua
- * @date 2019/11/18
- */
-@ApiModel(value = "上传 POS Excel Request")
-public class UploadPOSExcelRequest {
-    @Min(value = 1, message = "请输入正确的核对状态")
-    @ApiModelProperty(value = "药房ID", required = true, example = "0")
-    private int pharmacyId;
-
-    public int getPharmacyId() {
-        return pharmacyId;
-    }
-
-    public void setPharmacyId(int pharmacyId) {
-        this.pharmacyId = pharmacyId;
-    }
-}

+ 0 - 29
src/main/java/com/ywt/mg/params/checkListOrder/GetCheckOrderInfoRequest.java

@@ -1,29 +0,0 @@
-package com.ywt.mg.params.checkListOrder;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * GetCheckOrderInfoRequest Class
- *
- * @author daiyihua
- * @date 2021/06/23
- */
-@ApiModel(value = "得到检查订单详情Request")
-public class GetCheckOrderInfoRequest implements Serializable {
-
-    @Min(value = 0, message = "检查订单ID不正确")
-    @ApiModelProperty(value = "检查订单ID")
-    private int id;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-}

+ 0 - 54
src/main/java/com/ywt/mg/params/checkListOrder/GetEquipmentListRequest.java

@@ -1,54 +0,0 @@
-package com.ywt.mg.params.checkListOrder;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-06-23 13:52
- * @program ywt_mg
- * @description 根据科室ID获取设备列表Request
- **/
-@ApiModel(value = "根据科室ID获取设备列表Request")
-public class GetEquipmentListRequest implements Serializable {
-
-
-    @Min(value = 0, message = "科室ID有误")
-    @ApiModelProperty(value = "科室ID")
-    private int deptId;
-
-    @Min(value = 0, message = "医院ID有误")
-    @ApiModelProperty(value = "医院ID")
-    private int hospitalId;
-
-    @Min(value = 0, message = "设备ID有误")
-    @ApiModelProperty(value = "设备ID")
-    private int equipmentId;
-
-    public int getDeptId() {
-        return deptId;
-    }
-
-    public void setDeptId(int deptId) {
-        this.deptId = deptId;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public int getEquipmentId() {
-        return equipmentId;
-    }
-
-    public void setEquipmentId(int equipmentId) {
-        this.equipmentId = equipmentId;
-    }
-}

+ 0 - 204
src/main/java/com/ywt/mg/params/checkListOrder/QueryCheckListOrderListRequest.java

@@ -1,204 +0,0 @@
-package com.ywt.mg.params.checkListOrder;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * QueryCheckListOrderListRequest Class
- *
- * @author daiyihua
- * @date 2021/06/22
- */
-@ApiModel(value = "按条件查找检查单列表Request")
-public class QueryCheckListOrderListRequest extends PageRequest implements Serializable {
-
-    @ApiModelProperty(value = "订单号")
-    private String orderNo;
-
-    @ApiModelProperty(value = "支付流水号")
-    private String paymentNo;
-
-    @ApiModelProperty(value = "医院")
-    private String hospitalId;
-
-    @ApiModelProperty(value = "科室")
-    private String deptId;
-
-    @ApiModelProperty(value = "医生姓名")
-    private String doctorName;
-
-    @ApiModelProperty(value = "患者姓名")
-    private String patientName;
-
-    @ApiModelProperty(value = "身份证号")
-    private String idNo;
-
-    @ApiModelProperty(value = "手机号")
-    private String mobile;
-
-    @ApiModelProperty(value = "领用码")
-    private String recCode;
-
-    @ApiModelProperty(value = "支付状态")
-    private String paymentStatus;
-
-    @ApiModelProperty(value = "订单状态")
-    private String orderStatus;
-
-    @ApiModelProperty(value = "创建时间查询开始时间")
-    private String createTimeStart;
-
-    @ApiModelProperty(value = "创建时间查询截止时间")
-    private String createTimeEnd;
-
-    @ApiModelProperty(value = "支付时间查询开始时间")
-    private String paymentTimeStart;
-
-    @ApiModelProperty(value = "支付时间查询截止时间")
-    private String paymentTimeEnd;
-
-    @ApiModelProperty(value = "退款时间查询开始时间")
-    private String refundTimeStart;
-
-    @ApiModelProperty(value = "退款时间查询截止时间")
-    private String refundTimeEnd;
-
-    public String getOrderNo() {
-        return orderNo;
-    }
-
-    public void setOrderNo(String orderNo) {
-        this.orderNo = orderNo;
-    }
-
-    public String getPaymentNo() {
-        return paymentNo;
-    }
-
-    public void setPaymentNo(String paymentNo) {
-        this.paymentNo = paymentNo;
-    }
-
-    public String getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(String hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getDeptId() {
-        return deptId;
-    }
-
-    public void setDeptId(String deptId) {
-        this.deptId = deptId;
-    }
-
-    public String getDoctorName() {
-        return doctorName;
-    }
-
-    public void setDoctorName(String doctorName) {
-        this.doctorName = doctorName;
-    }
-
-    public String getPatientName() {
-        return patientName;
-    }
-
-    public void setPatientName(String patientName) {
-        this.patientName = patientName;
-    }
-
-    public String getIdNo() {
-        return idNo;
-    }
-
-    public void setIdNo(String idNo) {
-        this.idNo = idNo;
-    }
-
-    public String getMobile() {
-        return mobile;
-    }
-
-    public void setMobile(String mobile) {
-        this.mobile = mobile;
-    }
-
-    public String getRecCode() {
-        return recCode;
-    }
-
-    public void setRecCode(String recCode) {
-        this.recCode = recCode;
-    }
-
-    public String getPaymentStatus() {
-        return paymentStatus;
-    }
-
-    public void setPaymentStatus(String paymentStatus) {
-        this.paymentStatus = paymentStatus;
-    }
-
-    public String getOrderStatus() {
-        return orderStatus;
-    }
-
-    public void setOrderStatus(String orderStatus) {
-        this.orderStatus = orderStatus;
-    }
-
-    public String getCreateTimeStart() {
-        return createTimeStart;
-    }
-
-    public void setCreateTimeStart(String createTimeStart) {
-        this.createTimeStart = createTimeStart;
-    }
-
-    public String getCreateTimeEnd() {
-        return createTimeEnd;
-    }
-
-    public void setCreateTimeEnd(String createTimeEnd) {
-        this.createTimeEnd = createTimeEnd;
-    }
-
-    public String getPaymentTimeStart() {
-        return paymentTimeStart;
-    }
-
-    public void setPaymentTimeStart(String paymentTimeStart) {
-        this.paymentTimeStart = paymentTimeStart;
-    }
-
-    public String getPaymentTimeEnd() {
-        return paymentTimeEnd;
-    }
-
-    public void setPaymentTimeEnd(String paymentTimeEnd) {
-        this.paymentTimeEnd = paymentTimeEnd;
-    }
-
-    public String getRefundTimeStart() {
-        return refundTimeStart;
-    }
-
-    public void setRefundTimeStart(String refundTimeStart) {
-        this.refundTimeStart = refundTimeStart;
-    }
-
-    public String getRefundTimeEnd() {
-        return refundTimeEnd;
-    }
-
-    public void setRefundTimeEnd(String refundTimeEnd) {
-        this.refundTimeEnd = refundTimeEnd;
-    }
-}

+ 0 - 41
src/main/java/com/ywt/mg/params/checkListOrder/SaveCheckOrderEquipmentInfoRequest.java

@@ -1,41 +0,0 @@
-package com.ywt.mg.params.checkListOrder;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-06-23 15:04
- * @program ywt_mg
- * @description 保存检查订单设备码信息Request
- **/
-@ApiModel(value = "保存检查订单设备码信息Request")
-public class SaveCheckOrderEquipmentInfoRequest implements Serializable {
-
-    @Min(value = 0, message = "订单ID有误")
-    @ApiModelProperty(value = "订单ID")
-    private int checkOrderId;
-
-    @Min(value = 0, message = "设备ID有误")
-    @ApiModelProperty(value = "设备ID")
-    private int equipmentId;
-
-    public int getCheckOrderId() {
-        return checkOrderId;
-    }
-
-    public void setCheckOrderId(int checkOrderId) {
-        this.checkOrderId = checkOrderId;
-    }
-
-    public int getEquipmentId() {
-        return equipmentId;
-    }
-
-    public void setEquipmentId(int equipmentId) {
-        this.equipmentId = equipmentId;
-    }
-}

+ 0 - 29
src/main/java/com/ywt/mg/params/checkListOrder/SaveConfirmReceiveInfoRequest.java

@@ -1,29 +0,0 @@
-package com.ywt.mg.params.checkListOrder;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-06-23 15:04
- * @program ywt_mg
- * @description 保存确认回收信息Request
- **/
-@ApiModel(value = "保存确认回收信息Request")
-public class SaveConfirmReceiveInfoRequest implements Serializable {
-
-    @Min(value = 0, message = "订单ID有误")
-    @ApiModelProperty(value = "订单ID")
-    private int checkOrderId;
-
-    public int getCheckOrderId() {
-        return checkOrderId;
-    }
-
-    public void setCheckOrderId(int checkOrderId) {
-        this.checkOrderId = checkOrderId;
-    }
-}

+ 0 - 48
src/main/java/com/ywt/mg/params/checkResultOrder/request/CheckResultFeePojo.java

@@ -1,48 +0,0 @@
-package com.ywt.mg.params.checkResultOrder.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-03-10 15:15
- * @program ywt_mg
- * @description 设置影像报告POJO对象
- **/
-public class CheckResultFeePojo implements Serializable {
-
-    @ApiModelProperty(value = "影像报告费用,单位:元")
-    private double fee;
-
-    @ApiModelProperty(value = "医院ID")
-    private int hospitalId;
-
-
-    @ApiModelProperty(value = "医院名称")
-    private String hospitalName;
-
-    public double getFee() {
-        return fee;
-    }
-
-    public void setFee(double fee) {
-        this.fee = fee;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getHospitalName() {
-        return hospitalName;
-    }
-
-    public void setHospitalName(String hospitalName) {
-        this.hospitalName = hospitalName;
-    }
-}

+ 0 - 136
src/main/java/com/ywt/mg/params/checkResultOrder/request/CheckResultOrderListRequest.java

@@ -1,136 +0,0 @@
-package com.ywt.mg.params.checkResultOrder.request;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-/**
- * @author daiyihua
- * @create 2020-09-14 15:47
- * @program ywt_mg
- * @description 影像报告订单查询Request
- **/
-@ApiModel(value = "影像报告订单查询Request")
-public class CheckResultOrderListRequest extends PageRequest {
-
-    @ApiModelProperty(value = "业务编码")
-    private String bizNo;
-
-    @ApiModelProperty(value = "订单号")
-    private String orderNo;
-
-    @ApiModelProperty(value = "支付流水号")
-    private String paymentNo;
-
-    @ApiModelProperty(value = "患者姓名")
-    private String patientName;
-
-    @ApiModelProperty(value = "诊疗卡号")
-    private String patientNo;
-
-    @ApiModelProperty(value = "支付时间查询开始时间")
-    private String payTimeStart;
-
-    @ApiModelProperty(value = "支付时间查询戒指时间")
-    private String payTimeEnd;
-
-    @ApiModelProperty(value = "医院ID")
-    private String hospitalId;
-
-    @ApiModelProperty(value = "状态")
-    private String status;
-
-    @ApiModelProperty(value = "对账时间查询开始时间")
-    private String billStartTime;
-
-    @ApiModelProperty(value = "对账时间查询结束时间")
-    private String billEndTime;
-
-    public String getBizNo() {
-        return bizNo;
-    }
-
-    public void setBizNo(String bizNo) {
-        this.bizNo = bizNo;
-    }
-
-    public String getOrderNo() {
-        return orderNo;
-    }
-
-    public void setOrderNo(String orderNo) {
-        this.orderNo = orderNo;
-    }
-
-    public String getPaymentNo() {
-        return paymentNo;
-    }
-
-    public void setPaymentNo(String paymentNo) {
-        this.paymentNo = paymentNo;
-    }
-
-    public String getPatientName() {
-        return patientName;
-    }
-
-    public void setPatientName(String patientName) {
-        this.patientName = patientName;
-    }
-
-    public String getPatientNo() {
-        return patientNo;
-    }
-
-    public void setPatientNo(String patientNo) {
-        this.patientNo = patientNo;
-    }
-
-    public String getPayTimeStart() {
-        return payTimeStart;
-    }
-
-    public void setPayTimeStart(String payTimeStart) {
-        this.payTimeStart = payTimeStart;
-    }
-
-    public String getPayTimeEnd() {
-        return payTimeEnd;
-    }
-
-    public void setPayTimeEnd(String payTimeEnd) {
-        this.payTimeEnd = payTimeEnd;
-    }
-
-    public String getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(String hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getStatus() {
-        return status;
-    }
-
-    public void setStatus(String status) {
-        this.status = status;
-    }
-
-    public String getBillStartTime() {
-        return billStartTime;
-    }
-
-    public void setBillStartTime(String billStartTime) {
-        this.billStartTime = billStartTime;
-    }
-
-    public String getBillEndTime() {
-        return billEndTime;
-    }
-
-    public void setBillEndTime(String billEndTime) {
-        this.billEndTime = billEndTime;
-    }
-}

+ 0 - 38
src/main/java/com/ywt/mg/params/checkResultOrder/request/RefundCheckResultOrderRequest.java

@@ -1,38 +0,0 @@
-package com.ywt.mg.params.checkResultOrder.request;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-09-9 16:47
- * @program ywt_mg
- * @description 影像报告订单退款申请Request
- **/
-@ApiModel(value = "影像报告订单查询Request")
-public class RefundCheckResultOrderRequest implements Serializable {
-
-    @ApiModelProperty(value = "影像报告订单ID")
-    private int id;
-
-    @ApiModelProperty(value = "备注")
-    private String remark;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-
-    public String getRemark() {
-        return remark;
-    }
-
-    public void setRemark(String remark) {
-        this.remark = remark;
-    }
-}

+ 0 - 26
src/main/java/com/ywt/mg/params/checkResultOrder/request/SaveCheckResultFeeRequest.java

@@ -1,26 +0,0 @@
-package com.ywt.mg.params.checkResultOrder.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-import java.util.List;
-
-/**
- * @author daiyihua
- * @create 2020-09-14 18:06
- * @program ywt_mg
- * @description 设置影像报告费用Request
- **/
-public class SaveCheckResultFeeRequest implements Serializable {
-
-    @ApiModelProperty(value = "影像报告集合")
-    private List<CheckResultFeePojo> feeList;
-
-    public List<CheckResultFeePojo> getFeeList() {
-        return feeList;
-    }
-
-    public void setFeeList(List<CheckResultFeePojo> feeList) {
-        this.feeList = feeList;
-    }
-}

+ 0 - 138
src/main/java/com/ywt/mg/params/checkUp/request/QueryCheckUpOrderListRequest.java

@@ -1,138 +0,0 @@
-package com.ywt.mg.params.checkUp.request;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2020-10-15 11:52
- * @program ywt_mg
- * @description
- **/
-@ApiModel(value = "按条件分页查找体检缴费订单列表Request")
-public class QueryCheckUpOrderListRequest extends PageRequest implements Serializable {
-
-    @ApiModelProperty(value = "订单号")
-    private String orderNo;
-
-    @ApiModelProperty(value = "患者姓名")
-    private String patientName;
-
-    @ApiModelProperty(value = "就诊ID")
-    private String admId;
-
-    @ApiModelProperty(value = "登记号")
-    private String regNo;
-
-    @ApiModelProperty(value = "支付状态")
-    private String paymentStatus;
-
-    @ApiModelProperty(value = "支付时间查询开始时间")
-    private String paymentTimeStart;
-
-    @ApiModelProperty(value = "支付时间查询截止时间")
-    private String paymentTimeEnd;
-
-    @ApiModelProperty(value = "医院")
-    private String hospitalId;
-
-    @ApiModelProperty(value = "交易流水号")
-    private String transactionId;
-
-    @ApiModelProperty(value = "对账时间查询开始时间")
-    private String billStartTime;
-
-    @ApiModelProperty(value = "对账时间查询截止时间")
-    private String billEndTime;
-
-    public String getOrderNo() {
-        return orderNo;
-    }
-
-    public void setOrderNo(String orderNo) {
-        this.orderNo = orderNo;
-    }
-
-    public String getPatientName() {
-        return patientName;
-    }
-
-    public void setPatientName(String patientName) {
-        this.patientName = patientName;
-    }
-
-    public String getAdmId() {
-        return admId;
-    }
-
-    public void setAdmId(String admId) {
-        this.admId = admId;
-    }
-
-    public String getRegNo() {
-        return regNo;
-    }
-
-    public void setRegNo(String regNo) {
-        this.regNo = regNo;
-    }
-
-    public String getPaymentStatus() {
-        return paymentStatus;
-    }
-
-    public void setPaymentStatus(String paymentStatus) {
-        this.paymentStatus = paymentStatus;
-    }
-
-    public String getPaymentTimeStart() {
-        return paymentTimeStart;
-    }
-
-    public void setPaymentTimeStart(String paymentTimeStart) {
-        this.paymentTimeStart = paymentTimeStart;
-    }
-
-    public String getPaymentTimeEnd() {
-        return paymentTimeEnd;
-    }
-
-    public void setPaymentTimeEnd(String paymentTimeEnd) {
-        this.paymentTimeEnd = paymentTimeEnd;
-    }
-
-    public String getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(String hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getTransactionId() {
-        return transactionId;
-    }
-
-    public void setTransactionId(String transactionId) {
-        this.transactionId = transactionId;
-    }
-
-    public String getBillStartTime() {
-        return billStartTime;
-    }
-
-    public void setBillStartTime(String billStartTime) {
-        this.billStartTime = billStartTime;
-    }
-
-    public String getBillEndTime() {
-        return billEndTime;
-    }
-
-    public void setBillEndTime(String billEndTime) {
-        this.billEndTime = billEndTime;
-    }
-}

+ 0 - 17
src/main/java/com/ywt/mg/params/checkupBooking/CheckupBookingNoticeRequest.java

@@ -1,17 +0,0 @@
-package com.ywt.mg.params.checkupBooking;
-
-import io.swagger.annotations.ApiModelProperty;
-
-public class CheckupBookingNoticeRequest {
-
-    @ApiModelProperty(value = "套餐号")
-    private String ordSetsId;
-
-    public String getOrdSetsId() {
-        return ordSetsId;
-    }
-
-    public void setOrdSetsId(String ordSetsId) {
-        this.ordSetsId = ordSetsId;
-    }
-}

+ 0 - 40
src/main/java/com/ywt/mg/params/checkupBooking/CheckupBookingNoticeResponse.java

@@ -1,40 +0,0 @@
-package com.ywt.mg.params.checkupBooking;
-
-import io.swagger.annotations.ApiModelProperty;
-
-public class CheckupBookingNoticeResponse {
-
-    @ApiModelProperty(value = "id")
-    private  Integer id;
-
-    @ApiModelProperty(value = "套餐号")
-    private String ordSetsId;
-
-    @ApiModelProperty(value = "须知")
-    private String notice;
-
-
-    public Integer getId() {
-        return id;
-    }
-
-    public void setId(Integer id) {
-        this.id = id;
-    }
-
-    public String getOrdSetsId() {
-        return ordSetsId;
-    }
-
-    public void setOrdSetsId(String ordSetsId) {
-        this.ordSetsId = ordSetsId;
-    }
-
-    public String getNotice() {
-        return notice;
-    }
-
-    public void setNotice(String notice) {
-        this.notice = notice;
-    }
-}

+ 0 - 57
src/main/java/com/ywt/mg/params/checkupBooking/CheckupBookingPackageVo.java

@@ -1,57 +0,0 @@
-package com.ywt.mg.params.checkupBooking;
-
-import javax.persistence.Column;
-
-public class CheckupBookingPackageVo {
-
-    /**
-     * 套餐Id
-     */
-    private String ordSetsId;
-    /**
-     * 套餐
-     */
-    private String packageDesc;
-
-    /**
-     * 医院ID
-     */
-    private int hospitalId;
-
-    /**
-     * 套餐类型
-     */
-    private String levelDesc;
-
-    public String getOrdSetsId() {
-        return ordSetsId;
-    }
-
-    public void setOrdSetsId(String ordSetsId) {
-        this.ordSetsId = ordSetsId;
-    }
-
-    public String getPackageDesc() {
-        return packageDesc;
-    }
-
-    public void setPackageDesc(String packageDesc) {
-        this.packageDesc = packageDesc;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getLevelDesc() {
-        return levelDesc;
-    }
-
-    public void setLevelDesc(String levelDesc) {
-        this.levelDesc = levelDesc;
-    }
-}

+ 0 - 54
src/main/java/com/ywt/mg/params/checkupBooking/SaveNoticeRequest.java

@@ -1,54 +0,0 @@
-package com.ywt.mg.params.checkupBooking;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.persistence.Column;
-import java.io.Serializable;
-
-public class SaveNoticeRequest implements Serializable {
-
-    @ApiModelProperty(value = "套餐号")
-    private String ordSetsId;
-
-    @ApiModelProperty(value = "须知")
-    private String notice;
-
-    @ApiModelProperty(value = "套餐名称")
-    private String packageDesc;
-
-    @ApiModelProperty(value = "套餐类型")
-    private String levelDesc;
-
-
-    public String getOrdSetsId() {
-        return ordSetsId;
-    }
-
-    public void setOrdSetsId(String ordSetsId) {
-        this.ordSetsId = ordSetsId;
-    }
-
-    public String getNotice() {
-        return notice;
-    }
-
-    public void setNotice(String notice) {
-        this.notice = notice;
-    }
-
-    public String getPackageDesc() {
-        return packageDesc;
-    }
-
-    public void setPackageDesc(String packageDesc) {
-        this.packageDesc = packageDesc;
-    }
-
-    public String getLevelDesc() {
-        return levelDesc;
-    }
-
-    public void setLevelDesc(String levelDesc) {
-        this.levelDesc = levelDesc;
-    }
-}

+ 0 - 29
src/main/java/com/ywt/mg/params/config/PowerAttonrnetRequest.java

@@ -1,29 +0,0 @@
-package com.ywt.mg.params.config;
-
-import io.swagger.annotations.ApiModelProperty;
-
-public class PowerAttonrnetRequest {
-
-
-    @ApiModelProperty(value = "文件存放路径")
-    private String url;
-
-    @ApiModelProperty(value = "文件后缀")
-    private String keyType;
-
-    public String getUrl() {
-        return url;
-    }
-
-    public void setUrl(String url) {
-        this.url = url;
-    }
-
-    public String getKeyType() {
-        return keyType;
-    }
-
-    public void setKeyType(String keyType) {
-        this.keyType = keyType;
-    }
-}

+ 0 - 39
src/main/java/com/ywt/mg/params/config/PowerAttorneyVo.java

@@ -1,39 +0,0 @@
-package com.ywt.mg.params.config;
-
-import io.swagger.annotations.ApiModelProperty;
-
-public class PowerAttorneyVo {
-
-    @ApiModelProperty(value = "医院ID")
-    private int hospitalId;
-
-    @ApiModelProperty(value = "文件存放路径")
-    private String url;
-
-    @ApiModelProperty(value = "文件后缀")
-    private String keyType;
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getUrl() {
-        return url;
-    }
-
-    public void setUrl(String url) {
-        this.url = url;
-    }
-
-    public String getKeyType() {
-        return keyType;
-    }
-
-    public void setKeyType(String keyType) {
-        this.keyType = keyType;
-    }
-}

+ 0 - 29
src/main/java/com/ywt/mg/params/covid19Questionnaire/request/GetCovid19QuestionnaireDetailRequest.java

@@ -1,29 +0,0 @@
-package com.ywt.mg.params.covid19Questionnaire.request;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-
-/**
- * @author daiyihua
- * @create 2021-09-03 15:45
- * @program ywt_mg
- * @description 得到流感问卷详情
- **/
-@ApiModel(value = "得到流感问卷详情Request")
-public class GetCovid19QuestionnaireDetailRequest {
-
-    @Min(value = 1, message = "流感问卷ID有误")
-    @ApiModelProperty(value = "流感问卷ID")
-    private int id;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-
-}

+ 0 - 60
src/main/java/com/ywt/mg/params/covid19Questionnaire/request/QueryCovid19QuestionnaireListRequest.java

@@ -1,60 +0,0 @@
-package com.ywt.mg.params.covid19Questionnaire.request;
-
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-/**
- * QueryCovid19QuestionnaireListRequest Class
- *
- * @author daiyihua
- * @date 2021/09/03
- */
-@ApiModel(value = "查询MRI筛查列表 quest")
-public class QueryCovid19QuestionnaireListRequest extends PageRequest {
-
-    @ApiModelProperty(value = "填报日期开始时间,格式:yyyy-MM-dd")
-    private String createTimeStart;
-
-    @ApiModelProperty(value = "填报日期截止时间,格式:yyyy-MM-dd")
-    private String createTimeEnd;
-
-    @ApiModelProperty(value = "患者姓名")
-    private String name;
-
-    @ApiModelProperty(value = "手机号")
-    private String mobile;
-
-    public String getCreateTimeStart() {
-        return createTimeStart;
-    }
-
-    public void setCreateTimeStart(String createTimeStart) {
-        this.createTimeStart = createTimeStart;
-    }
-
-    public String getCreateTimeEnd() {
-        return createTimeEnd;
-    }
-
-    public void setCreateTimeEnd(String createTimeEnd) {
-        this.createTimeEnd = createTimeEnd;
-    }
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    public String getMobile() {
-        return mobile;
-    }
-
-    public void setMobile(String mobile) {
-        this.mobile = mobile;
-    }
-}

+ 0 - 263
src/main/java/com/ywt/mg/params/deposit/DepositOrderInfo.java

@@ -1,263 +0,0 @@
-package com.ywt.mg.params.deposit;
-
-import java.io.Serializable;
-import java.util.Date;
-
-public class DepositOrderInfo implements Serializable {
-    private static final long serialVersionUID = 1L;
-
-    /**
-     * 对应deposit的id字段
-     */
-    private Integer depositId;
-
-    /**
-     * 用户Id
-     */
-    private Integer userId;
-
-    /**
-     * 对应medical_card的id字段
-     */
-    private Integer medicalCardId;
-
-    /**
-     * 住院就诊号
-     */
-    private String admNo;
-
-    /**
-     * 订单ID
-     */
-    private Integer orderId;
-
-    /**
-     * 订单编码
-     */
-    private String orderNo;
-
-    /**
-     * 押金充值金额,单位:分
-     */
-    private Integer amount;
-
-    /**
-     * 支付状态
-     */
-    private Integer paymentStatus;
-
-    /**
-     * 支付流水号
-     */
-    private String paymentNo;
-
-    /**
-     * 支付回调时间
-     */
-    private Date paymentTime;
-
-    /**
-     * 支付到his的状态,0-待同步,1-同步处理中,2-同步成功,3-同步失败
-     */
-    private Integer syncHisStatus;
-
-    /**
-     * 创建时间
-     */
-    private Date createTime;
-
-    /**
-     * 交易流水号
-     */
-    private String transactionId;
-
-    /**
-     * 医院ID
-     */
-    private int hospitalId;
-
-    /**
-     * 医院名称
-     */
-    private String hospitalName;
-
-
-    /**
-     * 患者姓名
-     */
-    private String patientName;
-
-
-    /**
-     * 患者手机号
-     */
-    private String patientMobile;
-
-
-    /**
-     * 支付途径
-     */
-    private String paymentChannel;
-
-
-    /**
-     * 诊疗卡号
-     */
-    private String cardNo;
-
-    public static long getSerialVersionUID() {
-        return serialVersionUID;
-    }
-
-    public Integer getDepositId() {
-        return depositId;
-    }
-
-    public void setDepositId(Integer depositId) {
-        this.depositId = depositId;
-    }
-
-    public Integer getUserId() {
-        return userId;
-    }
-
-    public void setUserId(Integer userId) {
-        this.userId = userId;
-    }
-
-    public Integer getMedicalCardId() {
-        return medicalCardId;
-    }
-
-    public void setMedicalCardId(Integer medicalCardId) {
-        this.medicalCardId = medicalCardId;
-    }
-
-    public String getAdmNo() {
-        return admNo;
-    }
-
-    public void setAdmNo(String admNo) {
-        this.admNo = admNo;
-    }
-
-    public Integer getOrderId() {
-        return orderId;
-    }
-
-    public void setOrderId(Integer orderId) {
-        this.orderId = orderId;
-    }
-
-    public String getOrderNo() {
-        return orderNo;
-    }
-
-    public void setOrderNo(String orderNo) {
-        this.orderNo = orderNo;
-    }
-
-    public Integer getAmount() {
-        return amount;
-    }
-
-    public void setAmount(Integer amount) {
-        this.amount = amount;
-    }
-
-    public Integer getPaymentStatus() {
-        return paymentStatus;
-    }
-
-    public void setPaymentStatus(Integer paymentStatus) {
-        this.paymentStatus = paymentStatus;
-    }
-
-    public String getPaymentNo() {
-        return paymentNo;
-    }
-
-    public void setPaymentNo(String paymentNo) {
-        this.paymentNo = paymentNo;
-    }
-
-    public Date getPaymentTime() {
-        return paymentTime;
-    }
-
-    public void setPaymentTime(Date paymentTime) {
-        this.paymentTime = paymentTime;
-    }
-
-    public Integer getSyncHisStatus() {
-        return syncHisStatus;
-    }
-
-    public void setSyncHisStatus(Integer syncHisStatus) {
-        this.syncHisStatus = syncHisStatus;
-    }
-
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    public String getTransactionId() {
-        return transactionId;
-    }
-
-    public void setTransactionId(String transactionId) {
-        this.transactionId = transactionId;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getHospitalName() {
-        return hospitalName;
-    }
-
-    public void setHospitalName(String hospitalName) {
-        this.hospitalName = hospitalName;
-    }
-
-    public String getPatientName() {
-        return patientName;
-    }
-
-    public void setPatientName(String patientName) {
-        this.patientName = patientName;
-    }
-
-    public String getPatientMobile() {
-        return patientMobile;
-    }
-
-    public void setPatientMobile(String patientMobile) {
-        this.patientMobile = patientMobile;
-    }
-
-    public String getPaymentChannel() {
-        return paymentChannel;
-    }
-
-    public void setPaymentChannel(String paymentChannel) {
-        this.paymentChannel = paymentChannel;
-    }
-
-    public String getCardNo() {
-        return cardNo;
-    }
-
-    public void setCardNo(String cardNo) {
-        this.cardNo = cardNo;
-    }
-}

+ 0 - 117
src/main/java/com/ywt/mg/params/deposit/QueryDepositListRequest.java

@@ -1,117 +0,0 @@
-package com.ywt.mg.params.deposit;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * QueryDepositListRequest Class
- *
- * @author daiyihua
- * @date 2021/12/29
- */
-@ApiModel(value = "查找押金列表Request")
-public class QueryDepositListRequest extends PageRequest implements Serializable {
-
-    @ApiModelProperty(value = "订单号")
-    private String orderNo;
-
-    @ApiModelProperty(value = "患者姓名")
-    private String patientName;
-
-    @ApiModelProperty(value = "手机号")
-    private String patientMobile;
-
-    @ApiModelProperty(value = "支付时间查询开始时间")
-    private String paymentTimeStart;
-
-
-    @ApiModelProperty(value = "支付时间查询截止时间")
-    private String paymentTimeEnd;
-
-    @ApiModelProperty(value = "医院")
-    private int hospitalId = 0;
-
-    @ApiModelProperty(value = "交易流水号")
-    private String transactionId;
-
-    @ApiModelProperty(value = "对账时间查询开始时间")
-    private String billStartTime;
-
-    @ApiModelProperty(value = "对账时间查询结束时间")
-    private String billEndTime;
-
-    public String getOrderNo() {
-        return orderNo;
-    }
-
-    public void setOrderNo(String orderNo) {
-        this.orderNo = orderNo;
-    }
-
-    public String getPatientName() {
-        return patientName;
-    }
-
-    public void setPatientName(String patientName) {
-        this.patientName = patientName;
-    }
-
-    public String getPatientMobile() {
-        return patientMobile;
-    }
-
-    public void setPatientMobile(String patientMobile) {
-        this.patientMobile = patientMobile;
-    }
-
-    public String getPaymentTimeStart() {
-        return paymentTimeStart;
-    }
-
-    public void setPaymentTimeStart(String paymentTimeStart) {
-        this.paymentTimeStart = paymentTimeStart;
-    }
-
-    public String getPaymentTimeEnd() {
-        return paymentTimeEnd;
-    }
-
-    public void setPaymentTimeEnd(String paymentTimeEnd) {
-        this.paymentTimeEnd = paymentTimeEnd;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getTransactionId() {
-        return transactionId;
-    }
-
-    public void setTransactionId(String transactionId) {
-        this.transactionId = transactionId;
-    }
-
-    public String getBillStartTime() {
-        return billStartTime;
-    }
-
-    public void setBillStartTime(String billStartTime) {
-        this.billStartTime = billStartTime;
-    }
-
-    public String getBillEndTime() {
-        return billEndTime;
-    }
-
-    public void setBillEndTime(String billEndTime) {
-        this.billEndTime = billEndTime;
-    }
-}

+ 0 - 27
src/main/java/com/ywt/mg/params/display/request/QueryCloudDisplayListRequest.java

@@ -1,27 +0,0 @@
-package com.ywt.mg.params.display.request;
-
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-/**
- * QueryCloudDisplayListRequest Class
- *
- * @author daiyihua
- * @date 2019/11/15
- */
-@ApiModel(value = "医务通云平台患者端首页医院展示Request")
-public class QueryCloudDisplayListRequest extends PageRequest {
-
-    @ApiModelProperty(value = "医院名称")
-    private String name;
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-}

+ 0 - 41
src/main/java/com/ywt/mg/params/display/request/SaveDisplayStatusRequest.java

@@ -1,41 +0,0 @@
-package com.ywt.mg.params.display.request;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * SaveDisplayStatusRequest Class
- *
- * @author daiyihua
- * @date 2019/11/15
- */
-@ApiModel(value = "保存显示状态Request")
-public class SaveDisplayStatusRequest implements Serializable {
-
-    @Min(value = 1, message = "请输入ID")
-    @ApiModelProperty(value = "显示ID", required = true)
-    private int displayId;
-
-    @Min(value = 0, message = "请输入正确的显示状态")
-    @ApiModelProperty(value = "显示状态,0-显示,1-隐藏", required = true)
-    private int status;
-
-    public int getDisplayId() {
-        return displayId;
-    }
-
-    public void setDisplayId(int displayId) {
-        this.displayId = displayId;
-    }
-
-    public int getStatus() {
-        return status;
-    }
-
-    public void setStatus(int status) {
-        this.status = status;
-    }
-}

+ 0 - 60
src/main/java/com/ywt/mg/params/doctorQrCodeUrl/GetOrCreateDoctorQrCodeUrlRequest.java

@@ -1,60 +0,0 @@
-package com.ywt.mg.params.doctorQrCodeUrl;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-08-19 15:30
- * @program ywt_mg
- * @description 创建医生二维码Request
- **/
-public class GetOrCreateDoctorQrCodeUrlRequest implements Serializable {
-
-    @ApiModelProperty(value = "医生ID")
-    @Min(value = 0, message = "医生ID必须大于0")
-    private int doctorId;
-
-    @ApiModelProperty(value = "类型:0-对应doctor表的qr_code_url字段,1-对应doctor表的rp_url字段,2-对应doctor表的rp_url_pc字段")
-    private int type;
-
-    @ApiModelProperty(value = "医院ID")
-    private int hospitalId;
-
-    @ApiModelProperty(value = "终端")
-    private int terminal;
-
-    public int getDoctorId() {
-        return doctorId;
-    }
-
-    public void setDoctorId(int doctorId) {
-        this.doctorId = doctorId;
-    }
-
-    public int getType() {
-        return type;
-    }
-
-    public void setType(int type) {
-        this.type = type;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public int getTerminal() {
-        return terminal;
-    }
-
-    public void setTerminal(int terminal) {
-        this.terminal = terminal;
-    }
-}

+ 0 - 81
src/main/java/com/ywt/mg/params/evaluate/request/ExcelSingleRowData.java

@@ -1,81 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import javax.validation.constraints.NotNull;
-import java.io.Serializable;
-import java.util.List;
-
-/**
- * @author daiyihua
- * @create 2022-04-20 16:19
- * @program ywt_mg
- * @description excel单行表格的数据
- **/
-public class ExcelSingleRowData implements Serializable {
-
-    /** 数据举例:
-     {
-         "questionnaire":"门诊服务窗口工作人员(工号:1994)",
-         "questionList":
-            [
-                 {
-                     "title": "1.请您对门诊服务窗口工作人员(工号:1994)的服务进行评价:",
-                     "must": "是",
-                     "type": "单选",
-                     "options": "好评/差评"
-                 },
-                 {
-                     "title": "2.请您输入联系方式,以便我院跟踪回访,十分感谢您的配合与支持:",
-                     "must": "是",
-                     "type": "填空",
-                     "options": ""
-                 },
-                 {
-                     "title": "3.请您对门诊服务窗口工作人员(工号:1994)的服务提出意见及建议:",
-                     "must": "否",
-                     "type": "填空",
-                     "options": ""
-                 },
-             ],
-         "staff":"廖雨彬"
-     }
-     */
-
-
-    @NotNull(message = "问卷标题不能为空")
-    @ApiModelProperty(value = "问卷标题", required = true)
-    private String questionnaire;
-
-    @ApiModelProperty(value = "题目列表", required = true)
-    private List<ExcelSingleRowQuestion> questionList;
-
-    @NotNull(message = "工作人员不能为空")
-    @ApiModelProperty(value = "工作人员", required = true)
-    private String staff;
-
-    public String getQuestionnaire() {
-        return questionnaire;
-    }
-
-    public void setQuestionnaire(String questionnaire) {
-        this.questionnaire = questionnaire;
-    }
-
-    public List<ExcelSingleRowQuestion> getQuestionList() {
-        return questionList;
-    }
-
-    public void setQuestionList(List<ExcelSingleRowQuestion> questionList) {
-        this.questionList = questionList;
-    }
-
-    public String getStaff() {
-        return staff;
-    }
-
-    public void setStaff(String staff) {
-        this.staff = staff;
-    }
-}

+ 0 - 54
src/main/java/com/ywt/mg/params/evaluate/request/ExcelSingleRowDataRequest.java

@@ -1,54 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.NotNull;
-import java.io.Serializable;
-import java.util.List;
-
-/**
- * @author daiyihua
- * @create 2022-04-20 16:19
- * @program ywt_mg
- * @description excel单行表格的数据
- **/
-public class ExcelSingleRowDataRequest implements Serializable {
-
-    /**
-     * data的值:
-     * {
-     *          "questionnaire":"门诊服务窗口工作人员(工号:1994)",
-     *          "questionList":
-     *             [
-     *                  {
-     *                      "title": "1.请您对门诊服务窗口工作人员(工号:1994)的服务进行评价:",
-     *                      "must": "是",
-     *                      "type": "单选",
-     *                      "options": "好评/差评"
-     *                  },
-     *                  {
-     *                      "title": "2.请您输入联系方式,以便我院跟踪回访,十分感谢您的配合与支持:",
-     *                      "must": "是",
-     *                      "type": "填空",
-     *                      "options": ""
-     *                  },
-     *                  {
-     *                      "title": "3.请您对门诊服务窗口工作人员(工号:1994)的服务提出意见及建议:",
-     *                      "must": "否",
-     *                      "type": "填空",
-     *                      "options": ""
-     *                  },
-     *              ],
-     *          "staff":"廖雨彬"
-     *      }
-     */
-    private List<ExcelSingleRowData> data;
-
-    public List<ExcelSingleRowData> getData() {
-        return data;
-    }
-
-    public void setData(List<ExcelSingleRowData> data) {
-        this.data = data;
-    }
-}

+ 0 - 68
src/main/java/com/ywt/mg/params/evaluate/request/ExcelSingleRowQuestion.java

@@ -1,68 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.NotNull;
-
-/**
- * @author daiyihua
- * @create 2022-04-20 16:19
- * @program ywt_mg
- * @description excel单行表格的数据
- **/
-public class ExcelSingleRowQuestion {
-    /**
-     {
-         "title": "1.请您对门诊服务窗口工作人员(工号:1994)的服务进行评价:",
-         "must": "是",
-         "type": "单选",
-         "options": "好评/差评"
-     }
-     */
-    @NotNull(message = "题目标题不能为空")
-    @ApiModelProperty(value = "题目标题", required = true)
-    private String title;
-
-    @NotNull(message = "必填列不能为空")
-    @ApiModelProperty(value = "是否必填,文字", required = true)
-    private String must;
-
-    @NotNull(message = "类型列不能为空")
-    @ApiModelProperty(value = "类型,文字", required = true)
-    private String type;
-
-    @ApiModelProperty(value = "选项,如果是选项,用/隔开,如果是填空题,该值为可为空字符串", required = true)
-    private String options;
-
-    public String getTitle() {
-        return title;
-    }
-
-    public void setTitle(String title) {
-        this.title = title;
-    }
-
-    public String getMust() {
-        return must;
-    }
-
-    public void setMust(String must) {
-        this.must = must;
-    }
-
-    public String getType() {
-        return type;
-    }
-
-    public void setType(String type) {
-        this.type = type;
-    }
-
-    public String getOptions() {
-        return options;
-    }
-
-    public void setOptions(String options) {
-        this.options = options;
-    }
-}

+ 0 - 28
src/main/java/com/ywt/mg/params/evaluate/request/GetAllStaffListRequest.java

@@ -1,28 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2020-10-26 17:32
- * @program ywt_mg
- * @description 按条件查询工作人员列表
- **/
-public class GetAllStaffListRequest implements Serializable {
-
-    @Min(value = 1, message = "请输入正确的问卷ID")
-    @ApiModelProperty(value = "问卷ID", required = true)
-    private int wjId = 0;
-
-    public int getWjId() {
-        return wjId;
-    }
-
-    public void setWjId(int wjId) {
-        this.wjId = wjId;
-    }
-
-}

+ 0 - 26
src/main/java/com/ywt/mg/params/evaluate/request/GetQuestionInfoRequest.java

@@ -1,26 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-
-/**
- * @author daiyihua
- * @create 2020-10-21 16:20
- * @program ywt_mg
- * @description 得到问题信息(单个)
- **/
-public class GetQuestionInfoRequest {
-
-    @Min(value = 1, message = "请输入正确的问题ID")
-    @ApiModelProperty(value = "问题ID", required = true)
-    private int questionId;
-
-    public int getQuestionId() {
-        return questionId;
-    }
-
-    public void setQuestionId(int questionId) {
-        this.questionId = questionId;
-    }
-}

+ 0 - 26
src/main/java/com/ywt/mg/params/evaluate/request/GetQuestionListRequest.java

@@ -1,26 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-
-/**
- * @author daiyihua
- * @create 2020-10-21 11:37
- * @program ywt_mg
- * @description 得到问卷信息Request
- **/
-public class GetQuestionListRequest {
-
-    @Min(value = 1, message = "请输入正确的问卷ID")
-    @ApiModelProperty(value = "问卷ID", required = true)
-    private int wjId;
-
-    public int getWjId() {
-        return wjId;
-    }
-
-    public void setWjId(int wjId) {
-        this.wjId = wjId;
-    }
-}

+ 0 - 26
src/main/java/com/ywt/mg/params/evaluate/request/GetQuestionnaireInfoRequest.java

@@ -1,26 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-
-/**
- * @author daiyihua
- * @create 2020-10-21 11:37
- * @program ywt_mg
- * @description 得到问卷信息Request
- **/
-public class GetQuestionnaireInfoRequest {
-
-    @Min(value = 1, message = "请输入正确的问卷ID")
-    @ApiModelProperty(value = "问卷ID", required = true)
-    private int wjId;
-
-    public int getWjId() {
-        return wjId;
-    }
-
-    public void setWjId(int wjId) {
-        this.wjId = wjId;
-    }
-}

+ 0 - 26
src/main/java/com/ywt/mg/params/evaluate/request/GetStaffInfoRequest.java

@@ -1,26 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-
-/**
- * @author daiyihua
- * @create 2020-10-21 17:42
- * @program ywt_mg
- * @description 得到工作人员信息Request
- **/
-public class GetStaffInfoRequest {
-
-    @Min(value = 1, message = "请输入正确的工作人员ID")
-    @ApiModelProperty(value = "工作人员ID", required = true)
-    private int staffId;
-
-    public int getStaffId() {
-        return staffId;
-    }
-
-    public void setStaffId(int staffId) {
-        this.staffId = staffId;
-    }
-}

+ 0 - 39
src/main/java/com/ywt/mg/params/evaluate/request/OptionRequest.java

@@ -1,39 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import javax.validation.constraints.NotNull;
-
-/**
- * @author daiyihua
- * @create 2020-10-21 15:23
- * @program ywt_mg
- * @description option 相关model
- **/
-public class OptionRequest {
-
-    @Min(value = 0, message = "请输入正确的选项ID")
-    @ApiModelProperty(value = "选项ID", required = true)
-    private int optionId;
-
-    @NotNull(message = "标题不能为空")
-    @ApiModelProperty(value = "标题", required = true)
-    private String title;
-
-    public int getOptionId() {
-        return optionId;
-    }
-
-    public void setOptionId(int optionId) {
-        this.optionId = optionId;
-    }
-
-    public String getTitle() {
-        return title;
-    }
-
-    public void setTitle(String title) {
-        this.title = title;
-    }
-}

+ 0 - 40
src/main/java/com/ywt/mg/params/evaluate/request/QueryQuestionnaireListRequest.java

@@ -1,40 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * QueryQuestionnaireListRequest Class
- *
- * @author daiyihua
- * @date 2020/10/21
- */
-@ApiModel(value = "查找问卷列表Request")
-public class QueryQuestionnaireListRequest extends PageRequest implements Serializable {
-
-    @ApiModelProperty(value = "标题")
-    private String title;
-
-    @ApiModelProperty(value = "医院")
-    private String hospitalId;
-
-    public String getTitle() {
-        return title;
-    }
-
-    public void setTitle(String title) {
-        this.title = title;
-    }
-
-    public String getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(String hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-}

+ 0 - 61
src/main/java/com/ywt/mg/params/evaluate/request/QueryQuestionnaireSummaryDataRequest.java

@@ -1,61 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2020-10-21 18:18
- * @program ywt_mg
- * @description 按条件查询问卷数据Request
- **/
-public class QueryQuestionnaireSummaryDataRequest extends PageRequest implements Serializable {
-
-    @Min(value = 1, message = "请输入正确的问卷ID")
-    @ApiModelProperty(value = "问卷ID", required = true)
-    private int wjId;
-
-    @ApiModelProperty(value = "创建时间查询开始时间")
-    private String createTimeStart;
-
-    @ApiModelProperty(value = "创建时间查询截止时间")
-    private String createTimeEnd;
-
-    @ApiModelProperty(value = "工作人员ID,可空")
-    private String staffId;
-
-    public int getWjId() {
-        return wjId;
-    }
-
-    public void setWjId(int wjId) {
-        this.wjId = wjId;
-    }
-
-    public String getCreateTimeStart() {
-        return createTimeStart;
-    }
-
-    public void setCreateTimeStart(String createTimeStart) {
-        this.createTimeStart = createTimeStart;
-    }
-
-    public String getCreateTimeEnd() {
-        return createTimeEnd;
-    }
-
-    public void setCreateTimeEnd(String createTimeEnd) {
-        this.createTimeEnd = createTimeEnd;
-    }
-
-    public String getStaffId() {
-        return staffId;
-    }
-
-    public void setStaffId(String staffId) {
-        this.staffId = staffId;
-    }
-}

+ 0 - 73
src/main/java/com/ywt/mg/params/evaluate/request/QueryQuestionnaireTextDataRequest.java

@@ -1,73 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2020-10-22 16:18
- * @program ywt_mg
- * @description 按条件查询问卷数据Request
- **/
-public class QueryQuestionnaireTextDataRequest implements Serializable {
-
-    @Min(value = 1, message = "请输入正确的问卷ID")
-    @ApiModelProperty(value = "问卷ID", required = true)
-    private int wjId;
-
-    @ApiModelProperty(value = "创建时间查询开始时间")
-    private String createTimeStart;
-
-    @ApiModelProperty(value = "创建时间查询截止时间")
-    private String createTimeEnd;
-
-    @ApiModelProperty(value = "工作人员ID,可空")
-    private String staffId;
-
-
-    @Min(value = 1, message = "请输入正确的问题ID")
-    @ApiModelProperty(value = "问题ID", required = true)
-    private Integer questionId;
-
-    public int getWjId() {
-        return wjId;
-    }
-
-    public void setWjId(int wjId) {
-        this.wjId = wjId;
-    }
-
-    public String getCreateTimeStart() {
-        return createTimeStart;
-    }
-
-    public void setCreateTimeStart(String createTimeStart) {
-        this.createTimeStart = createTimeStart;
-    }
-
-    public String getCreateTimeEnd() {
-        return createTimeEnd;
-    }
-
-    public void setCreateTimeEnd(String createTimeEnd) {
-        this.createTimeEnd = createTimeEnd;
-    }
-
-    public String getStaffId() {
-        return staffId;
-    }
-
-    public void setStaffId(String staffId) {
-        this.staffId = staffId;
-    }
-
-    public Integer getQuestionId() {
-        return questionId;
-    }
-
-    public void setQuestionId(Integer questionId) {
-        this.questionId = questionId;
-    }
-}

+ 0 - 39
src/main/java/com/ywt/mg/params/evaluate/request/QueryStaffListRequest.java

@@ -1,39 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2020-10-21 17:32
- * @program ywt_mg
- * @description 按条件查询工作人员列表
- **/
-public class QueryStaffListRequest extends PageRequest implements Serializable {
-
-    @Min(value = 1, message = "请输入正确的问卷ID")
-    @ApiModelProperty(value = "问卷ID", required = true)
-    private int wjId = 0;
-
-    @ApiModelProperty(value = "工作人员姓名")
-    private String name;
-
-    public int getWjId() {
-        return wjId;
-    }
-
-    public void setWjId(int wjId) {
-        this.wjId = wjId;
-    }
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-}

+ 0 - 87
src/main/java/com/ywt/mg/params/evaluate/request/SaveQuestionRequest.java

@@ -1,87 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import javax.validation.constraints.NotNull;
-import java.io.Serializable;
-import java.util.List;
-
-/**
- * @author daiyihua
- * @create 2020-10-21 15:33
- * @program ywt_mg
- * @description 保存问题信息Request
- **/
-public class SaveQuestionRequest implements Serializable {
-
-    @Min(value = 1, message = "请输入正确的问卷ID")
-    @ApiModelProperty(value = "问卷ID", required = true)
-    private int wjId;
-
-    @Min(value = 0, message = "请输入正确的问题ID")
-    @ApiModelProperty(value = "问题ID", required = true)
-    private int questionId;
-
-    @NotNull(message = "题目类型不能为空")
-    @ApiModelProperty(value = "题目类型", required = true)
-    private String type;
-
-    @ApiModelProperty(value = "必填:0-不必填,1-必填", required = true)
-    private int must;
-
-    @NotNull(message = "题目标题不能为空")
-    @ApiModelProperty(value = "题目标题", required = true)
-    private String title;
-
-    @ApiModelProperty(value = "选项list")
-    List<OptionRequest> optionList;
-
-    public int getWjId() {
-        return wjId;
-    }
-
-    public void setWjId(int wjId) {
-        this.wjId = wjId;
-    }
-
-    public int getQuestionId() {
-        return questionId;
-    }
-
-    public void setQuestionId(int questionId) {
-        this.questionId = questionId;
-    }
-
-    public String getType() {
-        return type;
-    }
-
-    public void setType(String type) {
-        this.type = type;
-    }
-
-    public int getMust() {
-        return must;
-    }
-
-    public void setMust(int must) {
-        this.must = must;
-    }
-
-    public String getTitle() {
-        return title;
-    }
-
-    public void setTitle(String title) {
-        this.title = title;
-    }
-
-    public List<OptionRequest> getOptionList() {
-        return optionList;
-    }
-
-    public void setOptionList(List<OptionRequest> optionList) {
-        this.optionList = optionList;
-    }
-}

+ 0 - 63
src/main/java/com/ywt/mg/params/evaluate/request/SaveQuestionnaireRequest.java

@@ -1,63 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import javax.validation.constraints.NotNull;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2020-10-21 11:33
- * @program ywt_mg
- * @description 保存问卷信息Request
- **/
-public class SaveQuestionnaireRequest implements Serializable {
-
-    @Min(value = 0, message = "请输入问卷ID")
-    @ApiModelProperty(value = "问卷ID", required = true)
-    private int wjId;
-
-    @NotNull(message = "标题不能为空")
-    @ApiModelProperty(value = "标题", required = true)
-    private String title;
-
-    @ApiModelProperty(value = "描述")
-    private String description;
-
-    @Min(value = 0, message = "请输入正确的显示状态")
-    @ApiModelProperty(value = "显示状态,0-显示,1-隐藏", required = true)
-    private int status;
-
-    public int getWjId() {
-        return wjId;
-    }
-
-    public void setWjId(int wjId) {
-        this.wjId = wjId;
-    }
-
-    public String getTitle() {
-        return title;
-    }
-
-    public void setTitle(String title) {
-        this.title = title;
-    }
-
-    public String getDescription() {
-        return description;
-    }
-
-    public void setDescription(String description) {
-        this.description = description;
-    }
-
-    public int getStatus() {
-        return status;
-    }
-
-    public void setStatus(int status) {
-        this.status = status;
-    }
-}

+ 0 - 63
src/main/java/com/ywt/mg/params/evaluate/request/SaveStaffRequest.java

@@ -1,63 +0,0 @@
-package com.ywt.mg.params.evaluate.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import javax.validation.constraints.NotNull;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2020-10-21 17:36
- * @program ywt_mg
- * @description 保存工作人员信息
- **/
-public class SaveStaffRequest implements Serializable {
-
-    @Min(value = 1, message = "请输入正确的问卷ID")
-    @ApiModelProperty(value = "问卷ID", required = true)
-    private int wjId = 0;
-
-    @Min(value = 0, message = "请输入正确的工作人员ID")
-    @ApiModelProperty(value = "工作人员ID", required = true)
-    private int staffId;
-
-    @NotNull(message = "工作人员姓名不能为空")
-    @ApiModelProperty(value = "工作人员姓名", required = true)
-    private String name;
-
-    @ApiModelProperty(value = "工作人员姓名", required = true)
-    private String remark;
-
-    public int getWjId() {
-        return wjId;
-    }
-
-    public void setWjId(int wjId) {
-        this.wjId = wjId;
-    }
-
-    public int getStaffId() {
-        return staffId;
-    }
-
-    public void setStaffId(int staffId) {
-        this.staffId = staffId;
-    }
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    public String getRemark() {
-        return remark;
-    }
-
-    public void setRemark(String remark) {
-        this.remark = remark;
-    }
-}

+ 0 - 30
src/main/java/com/ywt/mg/params/fixedPoint/request/DownloadFixedPointQrCodeRequest.java

@@ -1,30 +0,0 @@
-package com.ywt.mg.params.fixedPoint.request;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.springframework.web.bind.annotation.RequestParam;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-04-02 17:19
- * @program ywt_mg
- * @description 下载定点医生二维码
- **/
-@ApiModel(value = "下载定点医生二维码Request")
-public class DownloadFixedPointQrCodeRequest implements Serializable {
-
-    @Min(value = 1, message = "定点ID有误")
-    @ApiModelProperty(value = "定点ID")
-    private int pointId;
-
-    public int getPointId() {
-        return pointId;
-    }
-
-    public void setPointId(int pointId) {
-        this.pointId = pointId;
-    }
-}

+ 0 - 41
src/main/java/com/ywt/mg/params/fixedPoint/request/FixedPointInfo.java

@@ -1,41 +0,0 @@
-package com.ywt.mg.params.fixedPoint.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Max;
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2020-03-10 14:45
- * @program ywt_mg
- * @description 定点状态信息
- **/
-public class FixedPointInfo  implements Serializable {
-
-    @Min(value = 1, message = "医院ID有误")
-    @ApiModelProperty(value = "医院ID")
-    private int hospitalId;
-
-    @Min(value = 0, message = "状态有误")
-    @Max(value = 1, message = "状态有误")
-    @ApiModelProperty(value = "定点状态,0-正常,1-禁用")
-    private int status;
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public int getStatus() {
-        return status;
-    }
-
-    public void setStatus(int status) {
-        this.status = status;
-    }
-}

+ 0 - 29
src/main/java/com/ywt/mg/params/fixedPoint/request/GetDoctorFixedPointInfoViewPoJoByPointIdRequest.java

@@ -1,29 +0,0 @@
-package com.ywt.mg.params.fixedPoint.request;
-
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-
-/**
- * GetDoctorFixedPointInfoViewPoJoByPointIdRequest Class
- *
- * @author daiyihua
- * @date 2019/11/15
- */
-@ApiModel(value = "得到医生定点详情Request")
-public class GetDoctorFixedPointInfoViewPoJoByPointIdRequest{
-
-    @Min(value = 1, message = "定点ID有误")
-    @ApiModelProperty(value = "定点ID")
-    private int pointId;
-
-    public int getPointId() {
-        return pointId;
-    }
-
-    public void setPointId(int pointId) {
-        this.pointId = pointId;
-    }
-}

+ 0 - 26
src/main/java/com/ywt/mg/params/fixedPoint/request/GetFixedPointListByDoctorIdRequest.java

@@ -1,26 +0,0 @@
-package com.ywt.mg.params.fixedPoint.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-
-/**
- * @author daiyihua
- * @create 2020-03-10 14:45
- * @program ywt_mg
- * @description 根据医生ID得到医生定点列表Request
- **/
-public class GetFixedPointListByDoctorIdRequest {
-
-    @Min(value = 1, message = "医生ID有误")
-    @ApiModelProperty(value = "医生ID")
-    private int doctorId;
-
-    public int getDoctorId() {
-        return doctorId;
-    }
-
-    public void setDoctorId(int doctorId) {
-        this.doctorId = doctorId;
-    }
-}

+ 0 - 83
src/main/java/com/ywt/mg/params/fixedPoint/request/QueryDoctorFixedPointInfoListRequest.java

@@ -1,83 +0,0 @@
-package com.ywt.mg.params.fixedPoint.request;
-
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.springframework.web.bind.annotation.RequestParam;
-
-/**
- * QueryDoctorFixedPointInfoListRequest Class
- *
- * @author daiyihua
- * @date 2019/11/15
- */
-@ApiModel(value = "得到医生定点列表Request")
-public class QueryDoctorFixedPointInfoListRequest extends PageRequest {
-
-    @ApiModelProperty(value = "医生姓名")
-    private String doctorName;
-
-    @ApiModelProperty(value = "医院ID", allowableValues = "-1")
-    private int hospitalId;
-
-    @ApiModelProperty(value = "定点医院ID", allowableValues = "-1")
-    private int fixedPointHospitalId;
-
-    @ApiModelProperty(value = "科室ID")
-    private String deptId;
-
-    @ApiModelProperty(value = "医生手机号")
-    private String mobile;
-
-    @ApiModelProperty(value = "定点状态")
-    private String status;
-
-    public String getDoctorName() {
-        return doctorName;
-    }
-
-    public void setDoctorName(String doctorName) {
-        this.doctorName = doctorName;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public int getFixedPointHospitalId() {
-        return fixedPointHospitalId;
-    }
-
-    public void setFixedPointHospitalId(int fixedPointHospitalId) {
-        this.fixedPointHospitalId = fixedPointHospitalId;
-    }
-
-    public String getDeptId() {
-        return deptId;
-    }
-
-    public void setDeptId(String deptId) {
-        this.deptId = deptId;
-    }
-
-    public String getMobile() {
-        return mobile;
-    }
-
-    public void setMobile(String mobile) {
-        this.mobile = mobile;
-    }
-
-    public String getStatus() {
-        return status;
-    }
-
-    public void setStatus(String status) {
-        this.status = status;
-    }
-}

+ 0 - 41
src/main/java/com/ywt/mg/params/fixedPoint/request/SaveFixedPointInfoRequest.java

@@ -1,41 +0,0 @@
-package com.ywt.mg.params.fixedPoint.request;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-import java.util.List;
-
-/**
- * @author daiyihua
- * @create 2020-03-10 14:45
- * @program ywt_mg
- * @description 保存医生定点信息Request
- **/
-@ApiModel(value = "保存医生定点信息Request")
-public class SaveFixedPointInfoRequest implements Serializable {
-
-    @Min(value = 1, message = "医生ID有误")
-    @ApiModelProperty(value = "医生ID")
-    private int doctorId;
-
-    @ApiModelProperty(value = "定点列表")
-    private List<FixedPointInfo> infoList;
-
-    public int getDoctorId() {
-        return doctorId;
-    }
-
-    public void setDoctorId(int doctorId) {
-        this.doctorId = doctorId;
-    }
-
-    public List<FixedPointInfo> getInfoList() {
-        return infoList;
-    }
-
-    public void setInfoList(List<FixedPointInfo> infoList) {
-        this.infoList = infoList;
-    }
-}

+ 0 - 41
src/main/java/com/ywt/mg/params/fixedPoint/request/SaveFixedPointStatusRequest.java

@@ -1,41 +0,0 @@
-package com.ywt.mg.params.fixedPoint.request;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.util.List;
-
-/**
- * @author daiyihua
- * @create 2020-03-10 14:45
- * @program ywt_mg
- * @description 保存医生定点状态Request
- **/
-@ApiModel(value = "保存医生定点状态Request")
-public class SaveFixedPointStatusRequest {
-
-    @Min(value = 1, message = "定点ID有误")
-    @ApiModelProperty(value = "定点ID")
-    private int pointId;
-
-    @Min(value = 0, message = "状态有误")
-    @ApiModelProperty(value = "定点状态,0-正常,1-禁用")
-    private int status;
-
-    public int getPointId() {
-        return pointId;
-    }
-
-    public void setPointId(int pointId) {
-        this.pointId = pointId;
-    }
-
-    public int getStatus() {
-        return status;
-    }
-
-    public void setStatus(int status) {
-        this.status = status;
-    }
-}

+ 0 - 68
src/main/java/com/ywt/mg/params/fixedPoint/response/GetFixedPointInfo.java

@@ -1,68 +0,0 @@
-package com.ywt.mg.params.fixedPoint.response;
-
-import io.swagger.annotations.ApiModelProperty;
-
-/**
- * @author daiyihua
- * @create 2020-03-10 14:45
- * @program ywt_mg
- * @description 根据医生ID得到医生定点列表Request
- **/
-public class GetFixedPointInfo {
-
-
-    @ApiModelProperty(value = "定点ID")
-    private Integer id;
-
-    @ApiModelProperty(value = "医生ID")
-    private Integer doctorId;
-
-    @ApiModelProperty(value = "医院ID")
-    private Integer hospitalId;
-
-    @ApiModelProperty(value = "医院名称")
-    private String hospitalName;
-
-    @ApiModelProperty(value = "定点状态,0-正常,1-禁用")
-    private Integer status;
-
-    public Integer getId() {
-        return id;
-    }
-
-    public void setId(Integer id) {
-        this.id = id;
-    }
-
-    public Integer getDoctorId() {
-        return doctorId;
-    }
-
-    public void setDoctorId(Integer doctorId) {
-        this.doctorId = doctorId;
-    }
-
-    public Integer getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(Integer hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getHospitalName() {
-        return hospitalName;
-    }
-
-    public void setHospitalName(String hospitalName) {
-        this.hospitalName = hospitalName;
-    }
-
-    public Integer getStatus() {
-        return status;
-    }
-
-    public void setStatus(Integer status) {
-        this.status = status;
-    }
-}

+ 0 - 25
src/main/java/com/ywt/mg/params/freeConsultSchedule/request/DeleteFreeConsultScheduleRequest.java

@@ -1,25 +0,0 @@
-package com.ywt.mg.params.freeConsultSchedule.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-
-/**
- * @author daiyihua
- * @create 2020-03-26 14:37
- * @program ywt_mg
- * @description 删除医生免费咨询排班Request
- **/
-public class DeleteFreeConsultScheduleRequest {
-    @Min(value = 1, message = "排班ID有误")
-    @ApiModelProperty(value = "排班ID")
-    private int id;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-}

+ 0 - 37
src/main/java/com/ywt/mg/params/freeConsultSchedule/request/GetFreeConsultScheduleRequest.java

@@ -1,37 +0,0 @@
-package com.ywt.mg.params.freeConsultSchedule.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-
-/**
- * @author daiyihua
- * @create 2020-03-26 14:47
- * @program ywt_mg
- * @description 根据排班ID得到医生免费咨询排班信息Request
- **/
-public class GetFreeConsultScheduleRequest {
-    @Min(value = 0, message = "排班ID有误")
-    @ApiModelProperty(value = "排班ID")
-    private int id;
-
-    @Min(value = 0, message = "医生ID有误")
-    @ApiModelProperty(value = "医生ID")
-    private int doctorId;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-
-    public int getDoctorId() {
-        return doctorId;
-    }
-
-    public void setDoctorId(int doctorId) {
-        this.doctorId = doctorId;
-    }
-}

+ 0 - 46
src/main/java/com/ywt/mg/params/freeConsultSchedule/request/QueryFreeConsultScheduleListRequest.java

@@ -1,46 +0,0 @@
-package com.ywt.mg.params.freeConsultSchedule.request;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModelProperty;
-
-/**
- * @author daiyihua
- * @create 2020-03-26 14:23
- * @program ywt_mg
- * @description 查找医生免费咨询排班列表Request
- **/
-public class QueryFreeConsultScheduleListRequest extends PageRequest {
-
-    @ApiModelProperty(value = "医生姓名")
-    private String name;
-
-    @ApiModelProperty(value = "添加人")
-    private String operatorName;
-
-    @ApiModelProperty(value = "添加来源")
-    private String addHospitalId;
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    public String getOperatorName() {
-        return operatorName;
-    }
-
-    public void setOperatorName(String operatorName) {
-        this.operatorName = operatorName;
-    }
-
-    public String getAddHospitalId() {
-        return addHospitalId;
-    }
-
-    public void setAddHospitalId(String addHospitalId) {
-        this.addHospitalId = addHospitalId;
-    }
-}

+ 0 - 127
src/main/java/com/ywt/mg/params/freeConsultSchedule/request/SaveFreeConsultScheduleRequest.java

@@ -1,127 +0,0 @@
-package com.ywt.mg.params.freeConsultSchedule.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Max;
-import javax.validation.constraints.Min;
-
-/**
- * @author daiyihua
- * @create 2020-03-26 14:53
- * @program ywt_mg
- * @description 保存医生免费咨询排班信息
- **/
-public class SaveFreeConsultScheduleRequest {
-    @ApiModelProperty(value = "排班ID")
-    private int id;
-
-    @ApiModelProperty(value = "医生ID")
-    private int doctorId;
-
-    @Min(value = 0, message = "参数有误")
-    @Max(value = 2, message = "参数有误")
-    @ApiModelProperty(value = "星期一,0-不出诊, 1-本周出诊,2-每周出诊")
-    private int monday;
-
-    @Min(value = 0, message = "参数有误")
-    @Max(value = 2, message = "参数有误")
-    @ApiModelProperty(value = "星期二,0-不出诊, 1-本周出诊,2-每周出诊")
-    private int tuesday;
-
-    @Min(value = 0, message = "参数有误")
-    @Max(value = 2, message = "参数有误")
-    @ApiModelProperty(value = "星期三,0-不出诊, 1-本周出诊,2-每周出诊")
-    private int wednesday;
-
-    @Min(value = 0, message = "参数有误")
-    @Max(value = 2, message = "参数有误")
-    @ApiModelProperty(value = "星期四,0-不出诊, 1-本周出诊,2-每周出诊")
-    private int thursday;
-
-    @Min(value = 0, message = "参数有误")
-    @Max(value = 2, message = "参数有误")
-    @ApiModelProperty(value = "星期五,0-不出诊, 1-本周出诊,2-每周出诊")
-    private int friday;
-
-    @Min(value = 0, message = "参数有误")
-    @Max(value = 2, message = "参数有误")
-    @ApiModelProperty(value = "星期六,0-不出诊, 1-本周出诊,2-每周出诊")
-    private int saturday;
-
-    @Min(value = 0, message = "参数有误")
-    @Max(value = 2, message = "参数有误")
-    @ApiModelProperty(value = "星期日,0-不出诊, 1-本周出诊,2-每周出诊")
-    private int sunday;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-
-    public int getDoctorId() {
-        return doctorId;
-    }
-
-    public void setDoctorId(int doctorId) {
-        this.doctorId = doctorId;
-    }
-
-    public int getMonday() {
-        return monday;
-    }
-
-    public void setMonday(int monday) {
-        this.monday = monday;
-    }
-
-    public int getTuesday() {
-        return tuesday;
-    }
-
-    public void setTuesday(int tuesday) {
-        this.tuesday = tuesday;
-    }
-
-    public int getWednesday() {
-        return wednesday;
-    }
-
-    public void setWednesday(int wednesday) {
-        this.wednesday = wednesday;
-    }
-
-    public int getThursday() {
-        return thursday;
-    }
-
-    public void setThursday(int thursday) {
-        this.thursday = thursday;
-    }
-
-    public int getFriday() {
-        return friday;
-    }
-
-    public void setFriday(int friday) {
-        this.friday = friday;
-    }
-
-    public int getSaturday() {
-        return saturday;
-    }
-
-    public void setSaturday(int saturday) {
-        this.saturday = saturday;
-    }
-
-    public int getSunday() {
-        return sunday;
-    }
-
-    public void setSunday(int sunday) {
-        this.sunday = sunday;
-    }
-}

+ 0 - 61
src/main/java/com/ywt/mg/params/freeConsultSchedule/request/SaveScheduleWeightInfoRequest.java

@@ -1,61 +0,0 @@
-package com.ywt.mg.params.freeConsultSchedule.request;
-
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Max;
-import javax.validation.constraints.Min;
-
-/**
- * @author daiyihua
- * @create 2020-03-26 14:53
- * @program ywt_mg
- * @description 保存医生信息(权重)
- **/
-public class SaveScheduleWeightInfoRequest {
-    @Min(value = 0, message = "排班ID有误")
-    @ApiModelProperty(value = "排班ID")
-    private int id;
-
-    @Min(value = 1, message = "医生ID有误")
-    @ApiModelProperty(value = "医生ID")
-    private int doctorId;
-
-    @Min(value = 0, message = "排班权重有误,最小值为0")
-    @ApiModelProperty(value = "排班权重")
-    private int weight;
-
-    @ApiModelProperty(value = "终端ID,对应枚举类型")
-    private int terminalId;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-
-    public int getDoctorId() {
-        return doctorId;
-    }
-
-    public void setDoctorId(int doctorId) {
-        this.doctorId = doctorId;
-    }
-
-    public int getWeight() {
-        return weight;
-    }
-
-    public void setWeight(int weight) {
-        this.weight = weight;
-    }
-
-    public int getTerminalId() {
-        return terminalId;
-    }
-
-    public void setTerminalId(int terminalId) {
-        this.terminalId = terminalId;
-    }
-}

+ 0 - 51
src/main/java/com/ywt/mg/params/health/checkListOrder/SaveAuditResultRequest.java

@@ -1,51 +0,0 @@
-package com.ywt.mg.params.health.checkListOrder;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-07-01 14:24
- * @program ywt_mg
- * @description 保存审核结果Request
- **/
-@ApiModel(value = "保存审核结果Request")
-public class SaveAuditResultRequest implements Serializable {
-
-    @Min(value = 0, message = "订单ID有误")
-    @ApiModelProperty(value = "订单ID")
-    private int checkOrderId;
-
-    @ApiModelProperty(value = "审核状态: 1-审核通过,2-审核不通过")
-    private int audit;
-
-    @ApiModelProperty(value = "备注")
-    private String remark;
-
-    public int getCheckOrderId() {
-        return checkOrderId;
-    }
-
-    public void setCheckOrderId(int checkOrderId) {
-        this.checkOrderId = checkOrderId;
-    }
-
-    public int getAudit() {
-        return audit;
-    }
-
-    public void setAudit(int audit) {
-        this.audit = audit;
-    }
-
-    public String getRemark() {
-        return remark;
-    }
-
-    public void setRemark(String remark) {
-        this.remark = remark;
-    }
-}

+ 0 - 40
src/main/java/com/ywt/mg/params/health/checkListOrder/SaveCheckOrderHospitalRequest.java

@@ -1,40 +0,0 @@
-package com.ywt.mg.params.health.checkListOrder;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.Min;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-06-24 14:24
- * @program ywt_mg
- * @description 保存检查订单医院信息Request
- **/
-@ApiModel(value = "保存检查订单医院信息Request")
-public class SaveCheckOrderHospitalRequest implements Serializable {
-    @Min(value = 0, message = "订单ID有误")
-    @ApiModelProperty(value = "订单ID")
-    private int checkOrderId;
-
-    @Min(value = 0, message = "医院ID有误")
-    @ApiModelProperty(value = "医院ID")
-    private int hospitalId;
-
-    public int getCheckOrderId() {
-        return checkOrderId;
-    }
-
-    public void setCheckOrderId(int checkOrderId) {
-        this.checkOrderId = checkOrderId;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-}

+ 0 - 28
src/main/java/com/ywt/mg/params/health/checkProject/DelCheckProjectRequest.java

@@ -1,28 +0,0 @@
-package com.ywt.mg.params.health.checkProject;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import javax.validation.constraints.NotNull;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-06-24 10:20
- * @program ywt_mg
- * @description 删除检查项目信息Request
- **/
-@ApiModel(value = "删除检查项目信息Request")
-public class DelCheckProjectRequest implements Serializable {
-
-    @ApiModelProperty(value = "检查项目ID")
-    private int id;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-}

+ 0 - 27
src/main/java/com/ywt/mg/params/health/checkProject/GetCheckProjectInfoRequest.java

@@ -1,27 +0,0 @@
-package com.ywt.mg.params.health.checkProject;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-06-24 10:20
- * @program ywt_mg
- * @description 得到检查项目信息Request
- **/
-@ApiModel(value = "得到检查项目信息Request")
-public class GetCheckProjectInfoRequest implements Serializable {
-
-    @ApiModelProperty(value = "检查项目ID")
-    private int id;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-}

+ 0 - 83
src/main/java/com/ywt/mg/params/health/checkProject/QueryCheckProjectListRequest.java

@@ -1,83 +0,0 @@
-package com.ywt.mg.params.health.checkProject;
-
-import com.ywt.mg.params.PageRequest;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-06-24 09:54
- * @program ywt_mg
- * @description 查找
- **/
-@ApiModel(value = "按条件查找检查项目列表Request")
-public class QueryCheckProjectListRequest extends PageRequest implements Serializable {
-
-    @ApiModelProperty(value = "编码")
-    private String bizNo;
-
-    @ApiModelProperty(value = "检查项名称")
-    private String checkName;
-
-    @ApiModelProperty(value = "状态,0-正常,1-禁用")
-    private String status;
-
-    @ApiModelProperty(value = "医院ID")
-    private String hospitalId;
-
-    @ApiModelProperty(value = "创建时间查询开始时间")
-    private String createTimeStart;
-
-    @ApiModelProperty(value = "创建时间查询截止时间")
-    private String createTimeEnd;
-
-    public String getBizNo() {
-        return bizNo;
-    }
-
-    public void setBizNo(String bizNo) {
-        this.bizNo = bizNo;
-    }
-
-    public String getCheckName() {
-        return checkName;
-    }
-
-    public void setCheckName(String checkName) {
-        this.checkName = checkName;
-    }
-
-    public String getStatus() {
-        return status;
-    }
-
-    public void setStatus(String status) {
-        this.status = status;
-    }
-
-    public String getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(String hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-
-    public String getCreateTimeStart() {
-        return createTimeStart;
-    }
-
-    public void setCreateTimeStart(String createTimeStart) {
-        this.createTimeStart = createTimeStart;
-    }
-
-    public String getCreateTimeEnd() {
-        return createTimeEnd;
-    }
-
-    public void setCreateTimeEnd(String createTimeEnd) {
-        this.createTimeEnd = createTimeEnd;
-    }
-}

+ 0 - 106
src/main/java/com/ywt/mg/params/health/checkProject/SaveCheckProjectInfoRequest.java

@@ -1,106 +0,0 @@
-package com.ywt.mg.params.health.checkProject;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import org.hibernate.validator.constraints.NotBlank;
-import org.hibernate.validator.constraints.NotEmpty;
-
-import javax.validation.constraints.Min;
-import javax.validation.constraints.NotNull;
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-06-24 10:20
- * @program ywt_mg
- * @description 保存检查项目信息Request
- **/
-@ApiModel(value = "保存检查项目信息Request")
-public class SaveCheckProjectInfoRequest implements Serializable {
-
-    @ApiModelProperty(value = "检查项目ID")
-    private int id;
-
-    @NotNull(message = "检查项名称不能为空")
-    @NotBlank(message = "检查项名称不能为空")
-    @NotEmpty(message = "检查项名称不能为空")
-    @ApiModelProperty(value = "检查项名称")
-    private String checkName;
-
-    @NotNull(message = "价格不能为空")
-    @NotBlank(message = "价格不能为空")
-    @NotEmpty(message = "价格不能为空")
-    @ApiModelProperty(value = "价格")
-    private String price;
-
-    @ApiModelProperty(value = "规格")
-    private String spec;
-
-    @ApiModelProperty(value = "备注")
-    private String remark;
-
-    @NotNull(message = "状态不能为空")
-    @ApiModelProperty(value = "状态")
-    private int status;
-
-    @Min(value = 0, message = "请先选择医院")
-    @NotNull(message = "医院不能为空")
-    @ApiModelProperty(value = "医院")
-    private int hospitalId;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-
-    public String getCheckName() {
-        return checkName;
-    }
-
-    public void setCheckName(String checkName) {
-        this.checkName = checkName;
-    }
-
-    public String getPrice() {
-        return price;
-    }
-
-    public void setPrice(String price) {
-        this.price = price;
-    }
-
-    public String getSpec() {
-        return spec;
-    }
-
-    public void setSpec(String spec) {
-        this.spec = spec;
-    }
-
-    public String getRemark() {
-        return remark;
-    }
-
-    public void setRemark(String remark) {
-        this.remark = remark;
-    }
-
-    public int getStatus() {
-        return status;
-    }
-
-    public void setStatus(int status) {
-        this.status = status;
-    }
-
-    public int getHospitalId() {
-        return hospitalId;
-    }
-
-    public void setHospitalId(int hospitalId) {
-        this.hospitalId = hospitalId;
-    }
-}

+ 0 - 27
src/main/java/com/ywt/mg/params/health/equipmentPersonnel/GetCheckProjectInfoRequest.java

@@ -1,27 +0,0 @@
-package com.ywt.mg.params.health.equipmentPersonnel;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-06-24 10:20
- * @program ywt_mg
- * @description 得到设备人员管理信息Request
- **/
-@ApiModel(value = "得到设备人员管理信息Request")
-public class GetCheckProjectInfoRequest implements Serializable {
-
-    @ApiModelProperty(value = "检查项目ID")
-    private int id;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-}

+ 0 - 27
src/main/java/com/ywt/mg/params/health/equipmentPersonnel/GetEquipmentPersonnelInfoRequest.java

@@ -1,27 +0,0 @@
-package com.ywt.mg.params.health.equipmentPersonnel;
-
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-
-import java.io.Serializable;
-
-/**
- * @author daiyihua
- * @create 2021-06-24 10:20
- * @program ywt_mg
- * @description 删除设备人员管理信息Request
- **/
-@ApiModel(value = "删除设备人员管理信息Request")
-public class GetEquipmentPersonnelInfoRequest implements Serializable {
-
-    @ApiModelProperty(value = "检查项目ID")
-    private int id;
-
-    public int getId() {
-        return id;
-    }
-
-    public void setId(int id) {
-        this.id = id;
-    }
-}

Some files were not shown because too many files changed in this diff