forked from rongchao/epmet-cloud-rizhao
12 changed files with 514 additions and 236 deletions
@ -0,0 +1,31 @@ |
|||||
|
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.ResiWarmheartedAuditedFromDTO; |
||||
|
import com.epmet.resi.partymember.dto.warmhearted.result.ResiWarmheartedAuditedResultDTO; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 调用epmet-user服务 |
||||
|
* |
||||
|
* @author 赵奇风 |
||||
|
*/ |
||||
|
@FeignClient(name = ServiceConstant.RESI_PARTYMEMBER_SERVER, fallback = ResiPartymemberFeignClientFallBack.class, |
||||
|
url = "http://localhost:8096") |
||||
|
public interface ResiPartymemberFeignClient { |
||||
|
/** |
||||
|
* 居民端-热心居民申请-提交申请数据 |
||||
|
* |
||||
|
* @author zhaoqf |
||||
|
**/ |
||||
|
@PostMapping(value = "resi/partymember/resiwarmheartedapply/audited") |
||||
|
Result<List<ResiWarmheartedAuditedResultDTO>> audited(@RequestBody ResiWarmheartedAuditedFromDTO formDTO); |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,22 @@ |
|||||
|
package com.epmet.feign.fallback; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.feign.ResiPartymemberFeignClient; |
||||
|
import com.epmet.resi.partymember.dto.warmhearted.form.ResiWarmheartedAuditedFromDTO; |
||||
|
import com.epmet.resi.partymember.dto.warmhearted.result.ResiWarmheartedAuditedResultDTO; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author zhaoqifeng |
||||
|
* @dscription |
||||
|
* @date 2020/4/16 17:01 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class ResiPartymemberFeignClientFallBack implements ResiPartymemberFeignClient { |
||||
|
@Override |
||||
|
public Result<List<ResiWarmheartedAuditedResultDTO>> audited(ResiWarmheartedAuditedFromDTO formDTO) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.resi.partymember.dto.warmhearted.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @author zhaoqifeng |
||||
|
* @dscription 热心居民-审核历史请求参数 |
||||
|
* @date 2020/4/16 13:51 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ResiWarmheartedAuditedFromDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -7290137219142856024L; |
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
/** |
||||
|
* 网格id |
||||
|
*/ |
||||
|
private String gridId; |
||||
|
/** |
||||
|
* 页码 |
||||
|
*/ |
||||
|
private Integer pageNo; |
||||
|
/** |
||||
|
* 每页显示数量 |
||||
|
*/ |
||||
|
private Integer pageSize; |
||||
|
} |
||||
@ -0,0 +1,46 @@ |
|||||
|
package com.epmet.resi.partymember.dto.warmhearted.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @author zhaoqifeng |
||||
|
* @dscription 热心居民-审核历史返回值 |
||||
|
* @date 2020/4/16 13:52 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ResiWarmheartedAuditedResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 4109086860497055842L; |
||||
|
/** |
||||
|
* 申请单id |
||||
|
*/ |
||||
|
private String applyId; |
||||
|
/** |
||||
|
* 申请用户id |
||||
|
*/ |
||||
|
private String userId; |
||||
|
/** |
||||
|
* 申请用户头像 |
||||
|
*/ |
||||
|
private String userHeadPhoto; |
||||
|
/** |
||||
|
* 申请用户显示昵称 |
||||
|
*/ |
||||
|
private String userNickName; |
||||
|
/** |
||||
|
* 申请时间HH:mm |
||||
|
*/ |
||||
|
private Date applyTime; |
||||
|
/** |
||||
|
* 已驳回rejected ,已通过approved |
||||
|
*/ |
||||
|
private String status; |
||||
|
/** |
||||
|
* 消息通知内容 |
||||
|
*/ |
||||
|
private String messageText; |
||||
|
|
||||
|
|
||||
|
} |
||||
Loading…
Reference in new issue