ShipmentService.java
5.28 KB
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
194
195
196
197
198
199
200
201
202
203
204
package com.huaheng.robot.shipment;
import com.huaheng.robot.bean.ActivityIslandBean;
import com.huaheng.robot.bean.ChargingPileBean;
import com.huaheng.robot.bean.EquipmentBean;
import com.huaheng.robot.bean.LineBean;
import com.huaheng.robot.bean.LocationBean;
import com.huaheng.robot.bean.RGVUserBean;
import com.huaheng.robot.bean.TaskBean;
import com.huaheng.robot.bean.WorkProcessBean;
import com.huaheng.robot.bean.WorkProcessDetailBean;
import com.huaheng.robot.https.ApiResponse;
import com.huaheng.robot.https.HttpConstant;
import com.huaheng.robot.task.MaterialInfo;
import java.util.ArrayList;
import java.util.List;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;
public interface ShipmentService {
/**
* 自动配盘
* @param body
* @return
*/
@POST(HttpConstant.AUTO_SHIPMENT)
Observable<ApiResponse<List<Integer>>> autoShipment(@Body RequestBody body);
/**
* 生成出库任务
* @param body
* @return
*/
@POST(HttpConstant.CREATE_SHIP_TASK)
Observable<ApiResponse<List<Integer>>> createShipTask(@Body RequestBody body);
/**
* 执行任务列表
* @param body
* @return
*/
@POST(HttpConstant.EXECUTE_TASK_LIST)
Observable<ApiResponse<String>> executeList(@Body RequestBody body);
/**
* 获取所有活动岛
* @param body
* @return
*/
@POST(HttpConstant.GET_ALL_ACTIVITY_ISLAND)
Observable<ApiResponse<List<ActivityIslandBean>>> getAllActivityIsland(@Body RequestBody body);
/**
* 获取所有线体
* @param body
* @return
*/
@POST(HttpConstant.GET_ALL_LINE)
Observable<ApiResponse<ArrayList<LineBean>>> getAllLine(@Body RequestBody body);
/**
* 获取所有工序
* @param body
* @return
*/
@POST(HttpConstant.GET_WORKPROCESS)
Observable<ApiResponse<ArrayList<WorkProcessBean>>> getWorkProcess(@Body RequestBody body);
/**
* 获取所有工序详情
* @param body
* @return
*/
@POST(HttpConstant.GET_WORKPROCESS_DETAIL)
Observable<ApiResponse<ArrayList<WorkProcessDetailBean>>> getWorkProcessDetail(@Body RequestBody body);
/**
* 活动岛请求
* @param body
* @return
*/
@POST(HttpConstant.ACTIVITY_IS_LAND_REQUEST)
Observable<ApiResponse<String>> activityIslandRequest(@Body RequestBody body);
/**
* 活动岛就位
* @param body
* @return
*/
@POST(HttpConstant.ACTIVITY_IS_LAND_OCCUPY)
Observable<ApiResponse<String>> activityIslandOccupy(@Body RequestBody body);
/**
* 取消活动岛请求
* @param body
* @return
*/
@POST(HttpConstant.ACTIVITY_IS_LAND_REQUEST_CANCEL)
Observable<ApiResponse<String>> cancelActivityIslandRequest(@Body RequestBody body);
/**
* 取消活动岛就位
* @param body
* @return
*/
@POST(HttpConstant.ACTIVITY_IS_LAND_OCCUPY_CANCEL)
Observable<ApiResponse<String>> cancelActivityIslandOccupy(@Body RequestBody body);
/**
* 获取所有未完成任务
* @param body
* @return
*/
@POST(HttpConstant.GET_ALL_UNCOMPLETE_TASK)
Observable<ApiResponse<List<TaskBean>>> getAllUncompleteTask(@Body RequestBody body);
/**
* 取消任务
* @param body
* @return
*/
@POST(HttpConstant.CANCEL_TASK)
Observable<ApiResponse<String>> cancelTask(@Body RequestBody body);
/**
* 创建取放任务
* @param body
* @return
*/
@POST(HttpConstant.CREATE_FETCH_PULL_TASK)
Observable<ApiResponse<TaskBean>> createFrtchPullTask(@Body RequestBody body);
/**
* 登录
* @param body
* @return
*/
@POST(HttpConstant.RGV_LOGIN)
Observable<ApiResponse<RGVUserBean>> login(@Body RequestBody body);
/**
* 查询设备状态
* @param body
* @return
*/
@POST(HttpConstant.GET_ALL_EQUIPMENTS)
Observable<ApiResponse<List<EquipmentBean>>> getAllEquipments(@Body RequestBody body);
/**
* 强制完成任务
* @param body
* @return
*/
@POST(HttpConstant.FORCE_COMPLETE_TASK)
Observable<ApiResponse<String>> forceCompleteTask(@Body RequestBody body);
/**
* 创建充电任务
* @param body
* @return
*/
@POST(HttpConstant.CREATE_CHARGING_TASK)
Observable<ApiResponse<TaskBean>> createChargingTask(@Body RequestBody body);
/**
* 创建行走任务
* @param body
* @return
*/
@POST(HttpConstant.CREATE_WORK_TASK)
Observable<ApiResponse<TaskBean>> createWorkTask(@Body RequestBody body);
/**
* 获取所有位置
* @param body
* @return
*/
@POST(HttpConstant.GET_ALL_LOCATIONS)
Observable<ApiResponse<List<LocationBean>>> getAllLocation(@Body RequestBody body);
/**
* 获取所有充电桩
* @param body
* @return
*/
@POST(HttpConstant.GET_ALL_CHARGINGPILES)
Observable<ApiResponse<List<ChargingPileBean>>> getAllChargingPiles(@Body RequestBody body);
/**
* 获取可以出库的信息
* @param body
* @return
*/
@POST(HttpConstant.GET_SHIPMENT_INVENTORYS)
Observable<ApiResponse<List<MaterialInfo>>> getShipmentInventory(@Body RequestBody body);
}