Sfoglia il codice sorgente

调整格式代码

yujia 7 anni fa
parent
commit
1ffc33b70a

+ 2 - 3
src/main/java/com/uas/platform/b2c/trade/order/task/OrderTask.java

@@ -138,7 +138,7 @@ public class OrderTask {
                 for (String id : split) {
                     try {
                         orderService.ensureOrderAccept(Long.valueOf(id), "");
-                    }catch (Exception e) {
+                    } catch (Exception e) {
                         Map<String, Object> map  = new HashedMap();
                         map.put("title", "自动确认收货");
                         map.put("error", e.toString());
@@ -146,10 +146,9 @@ public class OrderTask {
                     }
 
                 }
-
             }
             logger.log("自动收货", "买家自动收货订单:" + ids);
-        }catch (Exception e) {
+        } catch (Exception e) {
             Map<String, Object> map  = new HashedMap();
             map.put("title", "自动确认收货");
             map.put("error", e.toString());

+ 19 - 0
src/main/java/proto/BaseGrpcEntity.proto

@@ -0,0 +1,19 @@
+syntax = "proto3";
+
+package authority;
+option java_multiple_files = true;
+option java_package = "com.usoft.authority.grpc.api.entity";
+
+// 每次响应的头信息
+message ResponseHeader {
+    int32 code = 1; // 状态码 0.正常 非0.异常
+    string msg = 2; // 错误信息 code!=0时,有值
+}
+
+// 分页信息
+message PagingInfo {
+    int32 totalPage = 1; // 总页数
+    int32 totalCount = 2; // 总条数
+    int32 pageSize = 3; // 每页条数
+    int32 pageNumber = 4; // 当前页码
+}