1、app消息数据查询重构
2、app消息已读未读方法重构 3、其余辅助功能添加
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
package com.njcn.csharmonic.api;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.ServerInfo;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.csharmonic.api.fallback.WavePicClientFallbackFactory;
|
||||
import com.njcn.csharmonic.pojo.vo.CsEventVO;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
/**
|
||||
@@ -18,4 +25,7 @@ public interface WavePicFeignClient {
|
||||
@GetMapping("/getWavePics")
|
||||
HttpResult<CsEventVO> getWavePics(@RequestParam("eventId") String eventId);
|
||||
|
||||
@PostMapping("/updateEventById")
|
||||
HttpResult<Boolean> updateEventById(@RequestParam("id") String id);
|
||||
|
||||
}
|
||||
|
||||
@@ -29,6 +29,12 @@ public class WavePicClientFallbackFactory implements FallbackFactory<WavePicFeig
|
||||
log.error("{}异常,降级处理,异常为:{}","获取事件波形图",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<Boolean> updateEventById(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}","修改事件信息异常",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -123,4 +123,10 @@ public class CsEventPO extends BaseEntity {
|
||||
*/
|
||||
@TableField(value = "amplitude")
|
||||
private Double amplitude;
|
||||
|
||||
/**
|
||||
* 相别
|
||||
*/
|
||||
@TableField(value = "phase")
|
||||
private String phase;
|
||||
}
|
||||
Reference in New Issue
Block a user