From c6512655e722d9ca80dd8c34b79f6d3923ecf86c Mon Sep 17 00:00:00 2001 From: 罗元桥 <2376770955@qq.com> Date: 星期二, 22 六月 2021 16:07:50 +0800 Subject: [PATCH] Merge branch 'test' into 'test_screen' --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/api/ApiServiceFeign.java | 62 +++++++++++++++++++++++++++++++ 1 files changed, 62 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/api/ApiServiceFeign.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/api/ApiServiceFeign.java new file mode 100644 index 0000000..5efe555 --- /dev/null +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/api/ApiServiceFeign.java @@ -0,0 +1,62 @@ +package com.panzhihua.common.service.api; + +import com.panzhihua.common.model.dtos.api.EventFile; +import com.panzhihua.common.model.dtos.api.EventInfo; +import com.panzhihua.common.model.dtos.grid.*; +import com.panzhihua.common.model.vos.R; +import com.panzhihua.common.model.vos.grid.*; +import io.swagger.annotations.ApiOperation; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.*; + +import java.util.List; + +/** + * + * @author manailin + * desc 主要是提供给浪潮服务器上传事件 + * @version 1.0 + * @since 1.0 + * @date 2021-05-26 + * */ +@FeignClient(name = "serviceApi") +public interface ApiServiceFeign { + + + /** + * description 生成或更新redis里面的对接浪潮所需的token信息 + * @param name 账号 + * @param password 密码 + * @author manailin + * @date 2021/6/10 17:00 + */ + @GetMapping("get/token") + void getToken(@RequestParam("name") String name,@RequestParam("password") String password); + /** + * description 向浪潮服务器提交网格事件登记 * + * @param eventInfo 事件信息对象 + * @author manailin + * @date 2021/6/10 17:00 + */ + @PostMapping("lc/event/upload") + void automationUpload(@RequestBody EventInfo eventInfo); + /** + * description 提交事件登记关联的文件或者图片信息 + * @param eventFile 文件对象 + * @return R 上传结果 + * @author manailin + * @date 2021/6/10 17:00 + */ + @PostMapping("lc/event/upload/file") + R automationUploadFile(@RequestBody EventFile eventFile); + + /** + * description 提交事件登记关联的文件或者图片信息 + * + * @author manailin + * @date 2021/6/10 17:00 + */ + @ApiOperation(value = "提交事件登记关联的文件或者图片信息") + @PostMapping("lc/event/upload/event_and_file") + void automationUploadEventAndFile(); +} -- Gitblit v1.7.1