13 changed files with 120 additions and 64 deletions
@ -0,0 +1,25 @@ |
|||||
|
package com.epmet.feign; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.ServiceConstant; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.feign.fallback.ResiPartymemberFeignClientFallBack; |
||||
|
import com.epmet.resi.partymember.dto.warmhearted.form.ResiWarmheartedAuditFormDTO; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
|
||||
|
/** |
||||
|
* @Description 政府端工作人员审核 |
||||
|
* @Author sun |
||||
|
*/ |
||||
|
@FeignClient(name = ServiceConstant.RESI_PARTYMEMBER_SERVER, fallback = ResiPartymemberFeignClientFallBack.class) |
||||
|
public interface ResiPartymemberFeignClient { |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 政府端-热心居民申请人工审核 |
||||
|
**/ |
||||
|
@PostMapping(value = "resi/partymember/resiwarmheartedapply/manageaudit") |
||||
|
Result manageAudit(ResiWarmheartedAuditFormDTO formDTO); |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.feign.fallback; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.ServiceConstant; |
||||
|
import com.epmet.commons.tools.utils.ModuleUtils; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.feign.ResiPartymemberFeignClient; |
||||
|
import com.epmet.resi.partymember.dto.warmhearted.form.ResiWarmheartedAuditFormDTO; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @Description 政府端工作人员审核 |
||||
|
* @Author sun |
||||
|
*/ |
||||
|
@Component |
||||
|
public class ResiPartymemberFeignClientFallBack implements ResiPartymemberFeignClient { |
||||
|
|
||||
|
@Override |
||||
|
public Result manageAudit(ResiWarmheartedAuditFormDTO formDTO) { |
||||
|
return ModuleUtils.feignConError(ServiceConstant.RESI_PARTYMEMBER_SERVER, "manageAudit", formDTO); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue