xiaogang
2022-05-25 6eb064b4aa583bc8be55b23a82badc5d8442cbb1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/*
 * Copyright 2017-2020 吴学文 and java110 team.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.java110.job.adapt.hcIot.asyn;
 
import com.alibaba.fastjson.JSONObject;
 
import java.util.List;
 
/**
 * IOT信息异步同步处理接口类
 * <p>
 * add by wuxw 2020-12-19
 * <p>
 * 接口协议地址: https://gitee.com/java110/MicroCommunityThings/blob/master/back/docs/api.md
 */
public interface IIotSendAsyn {
 
    /**
     * 添加小区信息
     *
     * @param postParameters
     */
    public void addCommunity(JSONObject postParameters) throws Exception;
 
    /**
     * 编辑小区信息
     *
     * @param postParameters
     */
    public void editCommunity(JSONObject postParameters);
 
    /**
     * 删除小区信息
     *
     * @param postParameters
     */
    public void deleteCommunity(JSONObject postParameters);
 
    /**
     * 添加 设备 至 HC IOT
     *
     * @param postParameters
     * @param ownerDtos
     */
    public void addMachine(JSONObject postParameters, List<JSONObject> ownerDtos);
 
    /**
     * 修改 设备 至 HC IOT
     *
     * @param postParameters
     */
    void updateMachine(JSONObject postParameters);
 
    void deleteMachine(JSONObject postParameters);
 
    public void addOwner(JSONObject postParameters);
 
    /**
     * 修改业主
     *
     * @param postParameters
     */
    void sendUpdateOwner(JSONObject postParameters);
 
    /**
     * 删除业主
     *
     * @param postParameters
     */
    void sendDeleteOwner(JSONObject postParameters);
 
    /**
     * 重新同步
     *
     * @param reqJson
     */
    void reSendIot(JSONObject reqJson);
 
    /**
     * 添加 停车场
     *
     * @param postParameters
     */
    void addParkingArea(JSONObject postParameters);
 
    void updateParkingArea(JSONObject postParameters);
 
    void deleteParkingArea(JSONObject postParameters);
 
    /**
     * 添加 车辆
     *
     * @param postParameters
     */
    void addOwnerCar(JSONObject postParameters);
 
    /**
     * 添加访客信息
     *
     * @param postParameters
     */
    void addVisit(JSONObject postParameters);
 
    void updateOwnerCar(JSONObject postParameters);
 
    void deleteOwnerCar(JSONObject postParameters);
 
    void addCarBlackWhite(JSONObject postParameters);
 
    void deleteCarBlackWhite(JSONObject postParameters);
 
    /**
     * 同步临时车费用
     *
     * @param postParameters
     */
    void addTempCarFeeConfig(JSONObject postParameters);
 
    /**
     * 同步临时车费用
     *
     * @param postParameters
     */
    void updateTempCarFeeConfig(JSONObject postParameters);
 
    void deleteTempCarFeeConfig(JSONObject postParameters);
 
    /**
     * 考勤班组同步
     *
     * @param postParameters
     * @param staffs
     */
    void addAttendance(JSONObject postParameters, List<JSONObject> staffs);
 
    /**
     * 考勤员工同步
     *
     * @param postParameters
     * @param staffs
     */
    void addAttendanceStaff(JSONObject postParameters, List<JSONObject> staffs);
 
    /**
     * 编辑考勤 同步
     *
     * @param postParameters
     */
    void updateAttendance(JSONObject postParameters);
 
    /**
     * 删除考勤 同步
     *
     * @param postParameters
     */
    void deleteAttendance(JSONObject postParameters);
 
    void deleteAttendanceStaff(JSONObject postParameters);
 
    /**
     * 添加 道闸问候语
     *
     * @param postParameters
     */
    void addParkingAreaText(JSONObject postParameters);
 
    /**
     * 添加岗亭
     *
     * @param postParameters
     */
    void addParkingBox(JSONObject postParameters);
 
    /**
     * 删除岗亭
     *
     * @param postParameters
     */
    void deleteParkingBox(JSONObject postParameters);
}