HcGovConstant.java 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * Copyright 2017-2020 吴学文 and java110 team.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.java110.job.adapt.hcGov;
  17. import com.alibaba.fastjson.JSONObject;
  18. import com.java110.core.factory.AuthenticationFactory;
  19. /**
  20. * HCGOV 政务常量类
  21. * 接口协议地址: https://gitee.com/java110/microCommunityInformation/tree/master/info-doc#1%E6%A5%BC%E6%A0%8B%E4%B8%8A%E4%BC%A0
  22. *
  23. * @desc add by 吴学文 9:49
  24. */
  25. public class HcGovConstant {
  26. public static final int CODE_OK = 200; // 成功
  27. public static final String GOV_DOMAIN = "DOMAIN_GOV"; // 政务域
  28. public static final String COMMUNITY_SECURE = "978984641654"; // 小区密钥
  29. public static final String FLOOR_TYPE = "FLOOR_TYPE"; // 楼栋类型
  30. public static final String GOV_TOPIC = "hcGov"; // 楼栋类型
  31. public static final String GOV_SWITCH = "GOV_SWITCH"; // 推送政务开关
  32. //政务小区编码/楼栋外部便阿门/房屋外部编码/业主外部编码 SPEC_CD/商戶外部编码/员工外部编码
  33. public static final String EXT_COMMUNITY_ID = "9329000004";
  34. //添加楼栋
  35. public static final String ADD_FLOOR_ACTION = "ADD_FLOOR";
  36. //修改楼栋
  37. public static final String EDIT_FLOOR_ACTION = "EDIT_FLOOR";
  38. //添加房屋
  39. public static final String ADD_ROOM_ACTION = "ADD_ROOM";
  40. //修改房屋
  41. public static final String EDIT_ROOM_ACTION = "EDIT_ROOM";
  42. //添加业主
  43. public static final String ADD_OWNER_ACTION = "ADD_OWNER";
  44. //修改业主
  45. public static final String EDIT_OWNER_ACTION = "EDIT_OWNER";
  46. //添加员工
  47. public static final String ADD_STAFF_ACTION = "ADD_STAFF";
  48. //修改员工
  49. public static final String EDIT_STAFF_ACTION = "EDIT_STAFF";
  50. //添加商户company
  51. public static final String ADD_COMPANY_ACTION = "ADD_COMPANY";
  52. //添加位置
  53. public static final String ADD_LOCATION_ACTION = "ADD_LOCATION";
  54. //修改位置
  55. public static final String EDIT_LOCATION_ACTION = "EDIT_LOCATION";
  56. //添加停车场
  57. public static final String ADD_PARKING_AREA_ACTION = "ADD_PARKING_AREA";
  58. //修改停车场
  59. public static final String EDIT_PARKING_AREA_ACTION = "EDIT_PARKING_AREA";
  60. //添加停车场
  61. public static final String ADD_CAR_ACTION = "ADD_CAR";
  62. //修改停车场
  63. public static final String EDIT_CAR_ACTION = "EDIT_CAR";
  64. //开门记录
  65. public static final String ADD_INOUT_RECORD_ACTION = "ADD_INOUT_RECORD";
  66. public static void generatorProducerSign(JSONObject header, JSONObject body, String code) {
  67. String newSign = AuthenticationFactory.md5(header.getString("tranId") + header.getString("reqTime") + body.toJSONString() + code).toLowerCase();
  68. header.put("sign",newSign);
  69. }
  70. //商户属性编码
  71. public static final String STORE_ATTR_ARTIFICIALPERSON = "100201903001"; //企业法人
  72. public static final String STORE_ATTR_REGISTERTIME = "100201903003"; //成立日期
  73. public static final String STORE_ATTR_IDCARD = "100201903004"; //营业执照
  74. }