2 changed files with 1 additions and 329 deletions
@ -1,328 +0,0 @@ |
|||||
package qianmu.container.http.retrofit; |
|
||||
|
|
||||
|
|
||||
import java.io.File; |
|
||||
import java.util.Map; |
|
||||
|
|
||||
import okhttp3.MultipartBody; |
|
||||
import okhttp3.RequestBody; |
|
||||
import qianmu.container.entity.Resp; |
|
||||
import qianmu.container.entity.RespJXB; |
|
||||
import retrofit2.Call; |
|
||||
import retrofit2.http.Body; |
|
||||
import retrofit2.http.Field; |
|
||||
import retrofit2.http.FormUrlEncoded; |
|
||||
import retrofit2.http.GET; |
|
||||
import retrofit2.http.HeaderMap; |
|
||||
import retrofit2.http.Multipart; |
|
||||
import retrofit2.http.POST; |
|
||||
import retrofit2.http.Part; |
|
||||
import retrofit2.http.Query; |
|
||||
|
|
||||
/** |
|
||||
* 接口服务 |
|
||||
* Created by Administrator on 2017/11/6. |
|
||||
*/ |
|
||||
|
|
||||
public interface BaseService { |
|
||||
|
|
||||
/** |
|
||||
* 获取应用列表 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@POST("/API/Dev/GetDevAppList") |
|
||||
Call<Resp> getDevAppList(@Body RequestBody route); |
|
||||
|
|
||||
/** |
|
||||
* 获取主设备ip |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@POST("/Api/Dev/GetSyncDev") |
|
||||
Call<Resp> getSyncDev(@Body RequestBody route); |
|
||||
|
|
||||
/** |
|
||||
* 新版容器接口 |
|
||||
* */ |
|
||||
|
|
||||
/** |
|
||||
* 获取注册设备信息 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/device/v1/client/register") |
|
||||
Call<Resp> getRegisterInfo( @Query("code") String code ); |
|
||||
|
|
||||
/** |
|
||||
* 激活设备 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@POST("api/device/v1/client/active") |
|
||||
Call<Resp> activeDevice(@Body RequestBody route); |
|
||||
|
|
||||
/** |
|
||||
* 上传截屏 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@POST("api/device/v1/client/screenShort") |
|
||||
Call<Resp> upScreenShort(@Body RequestBody route); |
|
||||
|
|
||||
/** |
|
||||
* 获取Mqtt密码 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@POST("api/device/v1/client/token") |
|
||||
Call<Resp> getTokenPass(@Body RequestBody route); |
|
||||
|
|
||||
/** |
|
||||
* 上传日志文件 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
|
|
||||
@POST("api/device/v1/client/log") |
|
||||
Call<Resp> upLogFile(@Body RequestBody body); |
|
||||
|
|
||||
/** |
|
||||
* 获取节目列表 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/msg/v1/web/getScheduleByMachineCode") |
|
||||
Call<Resp> getprogram( @Query("code") String code ); |
|
||||
|
|
||||
// /**
|
|
||||
// * 获取图片视频下载ip地址
|
|
||||
// *
|
|
||||
// * @return
|
|
||||
// */
|
|
||||
// @GET("api/info/v1/web/getUploadUrl")
|
|
||||
// Call<Resp> getUploadUrl();
|
|
||||
|
|
||||
/** |
|
||||
* 获取图片视频下载ip地址 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/data/v1/web/getUploadUrl") |
|
||||
Call<Resp> getUploadUrl(); |
|
||||
|
|
||||
/** |
|
||||
* 获取滚动字幕 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/info/v1/web/getSubtitlesByDeviceCode") |
|
||||
Call<Resp> getSubtitles(@Query("code") String code); |
|
||||
|
|
||||
/** |
|
||||
* 获取离线接口列表 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/device/v1/deviceWeb/getInterfaceApi") |
|
||||
Call<Resp> getInterfaceApi(@Query("projectCode") String code); |
|
||||
|
|
||||
/** |
|
||||
* 获取资源文件列表 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/guide/v1/web/getFileResource") |
|
||||
Call<Resp> getFileResourceList(@Query("projectCode") String code); |
|
||||
|
|
||||
/** |
|
||||
* 获取资源文件列表(新版) |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/data/v1/web/getFileResource") |
|
||||
Call<Resp> getFileResourceList2(@Query("projectCode") String code); |
|
||||
|
|
||||
/** |
|
||||
* 获取资源文件(AI服务) |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/aimgr/v1/web/file-resources") |
|
||||
Call<Resp> getAiFileResource(@HeaderMap Map<String, String> headers, @Query("projectCode") String code); |
|
||||
|
|
||||
/** |
|
||||
* 获取模型资源文件列表(水牌) |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/guidance/v1/web/getModelFileResource") |
|
||||
Call<Resp> getModelFileResource(@Query("projectCode") String code); |
|
||||
|
|
||||
/** |
|
||||
* 获取设备信息 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/device/v1/client/getMachine") |
|
||||
Call<Resp> getMachine(@Query("code") String code); |
|
||||
|
|
||||
/** |
|
||||
* 上传版本信息 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@POST("api/device/v1/client/version") |
|
||||
Call<Resp> sendVersion(@Body RequestBody body); |
|
||||
|
|
||||
/** |
|
||||
* 获取设备屏保信息,默认图,跳转时间等 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/device/v1/client/getProtection") |
|
||||
Call<Resp> getProtection (@Query("projectCode") String projectCode, @Query("code") String code); |
|
||||
|
|
||||
|
|
||||
/** |
|
||||
* 节目上传记录 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@POST("api/analysis/v1/web/deviceUseClickDataUpload") |
|
||||
Call<Resp> programUpload(@Body RequestBody body); |
|
||||
|
|
||||
/** |
|
||||
* 获取同屏组主设备 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/device/v1/client/getPrimaryMachine") |
|
||||
Call<Resp> getPrimaryMachine ( @Query("code") String code); |
|
||||
|
|
||||
/** |
|
||||
* 检测网络 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/mqtt/v1/client/ping") |
|
||||
Call<Resp> pingNet ( @Query("machineCode") String code); |
|
||||
|
|
||||
/** |
|
||||
* 获取app版本及应用版本号,设备启动时调用 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/device/v1/deviceWeb/getMachineAppProgramMsg") |
|
||||
Call<Resp> getMachineAppProgramMsg ( @Query("code") String code); |
|
||||
|
|
||||
/** |
|
||||
* 定时开关机时间 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/device/v1/deviceWeb/getMachineOnOffTime") |
|
||||
Call<Resp> getMachineOnOffTime ( @Query("code") String code); |
|
||||
|
|
||||
/** |
|
||||
* 天气 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/data/v1/web/getWeather") |
|
||||
Call<Resp> getWeather(@Query("city") String cityName); |
|
||||
|
|
||||
/** |
|
||||
* 获取服务器时间戳 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/data/v1/util/getCurrentTimestamp") |
|
||||
Call<Resp> getCurrentTimestamp(); |
|
||||
|
|
||||
/** |
|
||||
* 进入导视数据上报 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@POST("api/analysis/v1/web/guideClickDataUpload") |
|
||||
Call<Resp> guideClickDataUpload(@Body RequestBody body); |
|
||||
|
|
||||
|
|
||||
/** |
|
||||
* 获取播放背景音乐列表(流花中心) |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@GET("api/device/v1/deviceWeb/getSoundInfo") |
|
||||
Call<Resp> getSoundInfo(@Query("projectCode") String projectCode); |
|
||||
|
|
||||
/** |
|
||||
* 机械臂重启 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@FormUrlEncoded |
|
||||
@POST("/device/reboot") |
|
||||
Call<Resp> jxbReboot(@Field("deviceKey") String deviceKey); |
|
||||
|
|
||||
/** |
|
||||
* 机械臂定时开关机 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@FormUrlEncoded |
|
||||
@POST("device/setAutoBoot") |
|
||||
Call<Resp> jxbAutoBoot(@Field("deviceKey") String deviceKey,@Field("autoPowerOn") String autoPowerOn,@Field("autoPowerOff") String autoPowerOff); |
|
||||
|
|
||||
/** |
|
||||
* 机械臂过渡文字内容 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@FormUrlEncoded |
|
||||
@POST("device/setTransText") |
|
||||
Call<Resp> jxbSetTransText(@Field("deviceKey") String deviceKey,@Field("transText") String transText); |
|
||||
|
|
||||
/** |
|
||||
* 机械臂开机文字 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@FormUrlEncoded |
|
||||
@POST("device/setBootText") |
|
||||
Call<Resp> jxbSetBootText(@Field("deviceKey") String deviceKey,@Field("bootText") String bootText); |
|
||||
|
|
||||
|
|
||||
/** |
|
||||
* 设置机械臂逻辑零点 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@FormUrlEncoded |
|
||||
@POST("device/setLogicZero") |
|
||||
Call<Resp> setLogicZero(@Field("deviceKey") String deviceKey,@Field("logicZero") int logicZero); |
|
||||
|
|
||||
/** |
|
||||
* 控制机械臂 |
|
||||
* |
|
||||
* @return |
|
||||
*/ |
|
||||
@FormUrlEncoded |
|
||||
@POST("program/play") |
|
||||
Call<Resp> jxbPlay(@Field("deviceKey") String deviceKey, @Field("progMode") int progMode, @Field("progText1") String progText1, @Field("progTextColor") int progTextColor, |
|
||||
@Field("progText2") String progText2, @Field("progText2Color") int progText2Color, @Field("progDist") String progDist, @Field("progDistColor") int progDistColor, |
|
||||
@Field("progAngel") int progAngel, @Field("progArmNo") int progArmNo, @Field("progRota") int progRota , @Field("progTrans") int progTrans, |
|
||||
@Field("progDuration") int progDuration , @Field("progMd5") String progMd5, @Field("progStat") int progStat); |
|
||||
|
|
||||
|
|
||||
/** |
|
||||
* 机械臂开机关机 |
|
||||
* |
|
||||
* 0=关机,1=开机 |
|
||||
* @return |
|
||||
*/ |
|
||||
@FormUrlEncoded |
|
||||
@POST("device/turnOnOff") |
|
||||
Call<Resp> jxbTurnOnOff(@Field("deviceKey") String deviceKey,@Field("onOff") int onOff); |
|
||||
|
|
||||
} |
|
||||
Loading…
Reference in new issue