8 changed files with 152 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||
package com.elink.esua.epdc.dto.epdc.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description: 书记在线 - 用户id获取工作和数据端openId返回类 |
|||
* @Param: |
|||
* @return: |
|||
* @Author: wk |
|||
* @Date: 2020/5/26 |
|||
*/ |
|||
@Data |
|||
public class UserWorkAndAnalyOpenIdDTO implements Serializable { |
|||
private static final long serialVersionUID = -1L; |
|||
/** |
|||
* 工作端openId集合 |
|||
*/ |
|||
private List<String>workOpenIds; |
|||
/** |
|||
* 数据端openId集合 |
|||
*/ |
|||
private List<String>analyOpenIds; |
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
package com.elink.esua.epdc.feign; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description: 调用数据分析模块 - 书记在线的用户id |
|||
* @Param: |
|||
* @return: |
|||
* @Author: wk |
|||
* @Date: 2020/5/26 |
|||
*/ |
|||
public interface UserRelationFeignClient { |
|||
/** |
|||
* @Description: 调用数据分析 - 书记在线的用户名单 |
|||
* @Param: [] |
|||
* @return: com.elink.esua.epdc.commons.tools.utils.Result<java.util.List<java.lang.String>> |
|||
* @Author: wk |
|||
* @Date: 2020/5/26 |
|||
*/ |
|||
@GetMapping(value = "/cloudAnalysis/masterGroup/getUserRelationList") |
|||
Result<List<String>> selectUserId(); |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
package com.elink.esua.epdc.feign.fallback; |
|||
|
|||
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant; |
|||
import com.elink.esua.epdc.commons.tools.utils.ModuleUtils; |
|||
import com.elink.esua.epdc.commons.tools.utils.Result; |
|||
import com.elink.esua.epdc.feign.UserRelationFeignClient; |
|||
|
|||
import java.util.List; |
|||
|
|||
public class UserRelationClientFallback implements UserRelationFeignClient { |
|||
@Override |
|||
public Result<List<String>> selectUserId() { |
|||
return ModuleUtils.feignConError(ServiceConstant.EPDC_ANALYSIS_SERVER, "selectUserId"); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue