File was renamed from springcloud_k8s_panzhihuazhihuishequ/service_api/src/test/java/com/panzhihua/service_api/biz/impl/LcApiServiceImplTest.java |
| | |
| | | package com.panzhihua.service_api.biz.impl; |
| | | package com.panzhihua.serviceapi.biz.impl; |
| | | |
| | | import cn.hutool.core.util.RandomUtil; |
| | | import com.alibaba.fastjson.JSONArray; |
| | |
| | | eventFile.setType("mp4"); |
| | | eventFile.setModule("event"); |
| | | eventFile.setFileName("4f843ad2d756456e900d5f24b419aa7c.mp4"); |
| | | R result = lcApiService.submitEventRelationFile(eventFile); |
| | | R result = lcApiService.submitEventOrVisitRecordRelationFile(eventFile); |
| | | log.info(JSONObject.toJSONString(result)); |
| | | } |
| | | |
| | |
| | | eventFile.setType("png"); |
| | | eventFile.setModule("event"); |
| | | eventFile.setFileName(eventResourceVO.getResourceName()); |
| | | lcApiService.submitEventRelationFile(eventFile); |
| | | lcApiService.submitEventOrVisitRecordRelationFile(eventFile); |
| | | }); |
| | | List<EventResourceVO> audiosList = eventInfoVo.getAudios(); |
| | | audiosList.forEach(eventResourceVO -> { |
| | |
| | | eventFile.setType("mp3"); |
| | | eventFile.setModule("event"); |
| | | eventFile.setFileName(eventResourceVO.getResourceName()); |
| | | lcApiService.submitEventRelationFile(eventFile); |
| | | lcApiService.submitEventOrVisitRecordRelationFile(eventFile); |
| | | }); |
| | | List<EventResourceVO> videoList = eventInfoVo.getVideos(); |
| | | videoList.forEach(eventResourceVO -> { |
| | |
| | | eventFile.setType("mp4"); |
| | | eventFile.setModule("event"); |
| | | eventFile.setFileName(eventResourceVO.getResourceName()); |
| | | lcApiService.submitEventRelationFile(eventFile); |
| | | lcApiService.submitEventOrVisitRecordRelationFile(eventFile); |
| | | }); |
| | | log.info("结束上传附件图片信息"); |
| | | } |
| | |
| | | SerializerFeature.WriteDateUseDateFormat); |
| | | log.info(pretty); |
| | | } |
| | | |
| | | @Test |
| | | void requestLcFlowPersonVisitRecord() { |
| | | } |
| | | |
| | | @Test |
| | | void automationUploadVisitRecord() { |
| | | lcApiService.automationUploadVisitRecord(); |
| | | } |
| | | |
| | | @Test |
| | | void getGridMemberListByAreaIdOrName() { |
| | | String data = lcApiService.getGridMemberListByAreaIdOrName("jhRxqEQp"); |
| | | log.info(data); |
| | | } |
| | | |
| | | } |