记得上下班打卡 | git大法好,push需谨慎

Commit baa62b5b authored by anjiabin's avatar anjiabin

提交chime社交相关

parent 82f8080a
...@@ -7,7 +7,6 @@ import feign.hystrix.FallbackFactory; ...@@ -7,7 +7,6 @@ import feign.hystrix.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import java.util.HashMap; import java.util.HashMap;
...@@ -51,11 +50,8 @@ public interface FeignKylinForChimeClient { ...@@ -51,11 +50,8 @@ public interface FeignKylinForChimeClient {
// @GetMapping(value = "/performance/list") // @GetMapping(value = "/performance/list")
// ResponseDto<List<KylinPerformanceVo>> performanceList(@RequestParam("performancesIds") String... performancesIds); // ResponseDto<List<KylinPerformanceVo>> performanceList(@RequestParam("performancesIds") String... performancesIds);
@GetMapping("performance/{performancesId}") @GetMapping("myPerformance/getDetail")
ResponseDto<KylinPerformanceVo> detail( ResponseDto<KylinPerformanceVo> getDetail(
@PathVariable("performancesId") String performancesId, @RequestParam("performancesId") String performancesId
@RequestParam(defaultValue = "0") double latitudeFrom,
@RequestParam(defaultValue = "0") double longitudeFrom,
@RequestParam(defaultValue = "0") String agentId
); );
} }
...@@ -120,7 +120,7 @@ public class ChimeUserBiz { ...@@ -120,7 +120,7 @@ public class ChimeUserBiz {
isOnline = true; isOnline = true;
}else{ }else{
//获取演出状态信息 //获取演出状态信息
ResponseDto<KylinPerformanceVo> responseDto = feignKylinForChimeClient.detail(performanceId,0,0,"0"); ResponseDto<KylinPerformanceVo> responseDto = feignKylinForChimeClient.getDetail(performanceId);
if(responseDto.isSuccess()&&StringUtil.isNotNull(responseDto.getData())){ if(responseDto.isSuccess()&&StringUtil.isNotNull(responseDto.getData())){
KylinPerformanceVo kylinPerformanceVo = responseDto.getData(); KylinPerformanceVo kylinPerformanceVo = responseDto.getData();
if(kylinPerformanceVo.getAppStatus() == KylinPerformanceStatusEnum.PERFORMANCESTATUS6.getIndex() if(kylinPerformanceVo.getAppStatus() == KylinPerformanceStatusEnum.PERFORMANCESTATUS6.getIndex()
......
...@@ -26,7 +26,9 @@ public class TestShumei { ...@@ -26,7 +26,9 @@ public class TestShumei {
@Test @Test
public void checkText(){ public void checkText(){
shumeiUtil.checkText("user123","习近平");
// System.out.println(shumeiUtil.checkText("user123","甜梅号的小茉莉"));
System.out.println(shumeiUtil.checkText("user123","158****8858"));
} }
@Test @Test
public void checkImage(){ public void checkImage(){
......
package com.liquidnet.service.kylin.controller; package com.liquidnet.service.kylin.controller;
import com.liquidnet.service.base.ErrorMapping;
import com.liquidnet.service.base.ResponseDto; import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.kylin.dto.vo.mongo.KylinPerformanceVo; import com.liquidnet.service.kylin.dto.vo.mongo.KylinPerformanceVo;
import com.liquidnet.service.kylin.service.impl.KylinPerformancesServiceImpl; import com.liquidnet.service.kylin.service.impl.KylinPerformancesServiceImpl;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
...@@ -36,4 +37,26 @@ public class KylinMyPerformancesController { ...@@ -36,4 +37,26 @@ public class KylinMyPerformancesController {
List<KylinPerformanceVo> result = kylinPerformancesService.myPerformancesList(); List<KylinPerformanceVo> result = kylinPerformancesService.myPerformancesList();
return ResponseDto.success(result); return ResponseDto.success(result);
} }
@GetMapping("getDetail")
@ApiOperation("演出详情")
@ApiImplicitParams({
@ApiImplicitParam(type = "path", dataType = "String", name = "performancesId", value = "演出id", required = true)
})
public ResponseDto<KylinPerformanceVo> getDetail(
@RequestParam("performancesId") String performancesId
) {
try {
KylinPerformanceVo result = kylinPerformancesService.detail(performancesId, 0, 0, "0");
if (result != null) {
return ResponseDto.success(result);
} else {
return ResponseDto.failure(ErrorMapping.get("20700"));
}
} catch (Exception e) {
log.error("演出详情Error", e);
return ResponseDto.failure(ErrorMapping.get("20700"));
}
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment