forked from rongchao/epmet-cloud-rizhao
				
			
				 20 changed files with 310 additions and 59 deletions
			
			
		| @ -0,0 +1,28 @@ | |||
| package com.epmet.feign; | |||
| 
 | |||
| import com.epmet.commons.tools.constant.ServiceConstant; | |||
| import com.epmet.commons.tools.utils.Result; | |||
| import com.epmet.feign.fallback.ResiGroupFeignClientFallBack; | |||
| import com.epmet.resi.group.dto.group.form.GroupAuditedFromDTO; | |||
| import com.epmet.resi.group.dto.group.result.GroupAuditedResultDTO; | |||
| import org.springframework.cloud.openfeign.FeignClient; | |||
| import org.springframework.web.bind.annotation.PostMapping; | |||
| 
 | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/4/17 15:24 | |||
|  */ | |||
| @FeignClient(name = ServiceConstant.RESI_GROUP_SERVER, fallback = ResiGroupFeignClientFallBack.class) | |||
| public interface ResiGroupFeignClient { | |||
| 	/** | |||
| 	 * 小组审核历史列表 | |||
| 	 * | |||
| 	 * @param formDTO 参数 | |||
| 	 * @return Result<List < GroupAuditedResultDTO>> | |||
| 	 */ | |||
| 	@PostMapping("/resi/group/group/audited") | |||
| 	Result<List<GroupAuditedResultDTO>> audited(GroupAuditedFromDTO formDTO); | |||
| } | |||
| @ -0,0 +1,24 @@ | |||
| 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.ResiGroupFeignClient; | |||
| import com.epmet.resi.group.dto.group.form.GroupAuditedFromDTO; | |||
| import com.epmet.resi.group.dto.group.result.GroupAuditedResultDTO; | |||
| import org.springframework.stereotype.Component; | |||
| 
 | |||
| import java.util.List; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/4/17 15:27 | |||
|  */ | |||
| @Component | |||
| public class ResiGroupFeignClientFallBack implements ResiGroupFeignClient { | |||
| 	@Override | |||
| 	public Result<List<GroupAuditedResultDTO>> audited(GroupAuditedFromDTO formDTO) { | |||
| 		return ModuleUtils.feignConError(ServiceConstant.RESI_GROUP_SERVER, "audited", formDTO); | |||
| 	} | |||
| } | |||
| @ -0,0 +1,36 @@ | |||
| package com.epmet.resi.group.dto.group.form; | |||
| 
 | |||
| import lombok.Data; | |||
| 
 | |||
| import javax.validation.constraints.NotBlank; | |||
| import java.io.Serializable; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/4/17 13:39 | |||
|  */ | |||
| @Data | |||
| public class GroupAuditedFromDTO implements Serializable { | |||
| 	private static final long serialVersionUID = 1L; | |||
| 	/** | |||
| 	 * 客户id | |||
| 	 */ | |||
| 	@NotBlank(message = "客户id不能为空") | |||
| 	private String customerId; | |||
| 	/** | |||
| 	 * 网格id | |||
| 	 */ | |||
| 	@NotBlank(message = "网格id不能为空") | |||
| 	private String gridId; | |||
| 	/** | |||
| 	 * 页码 | |||
| 	 */ | |||
| 	@NotBlank(message = "页码不能为空") | |||
| 	private Integer pageNo; | |||
| 	/** | |||
| 	 * 每页显示数量 | |||
| 	 */ | |||
| 	@NotBlank(message = "每页显示数量不能为空") | |||
| 	private Integer pageSize; | |||
| } | |||
| @ -0,0 +1,45 @@ | |||
| package com.epmet.resi.group.dto.group.result; | |||
| 
 | |||
| import lombok.Data; | |||
| 
 | |||
| import java.io.Serializable; | |||
| import java.util.Date; | |||
| 
 | |||
| /** | |||
|  * @author zhaoqifeng | |||
|  * @dscription | |||
|  * @date 2020/4/17 13:40 | |||
|  */ | |||
| @Data | |||
| public class GroupAuditedResultDTO implements Serializable { | |||
| 	private static final long serialVersionUID = 1L; | |||
| 	/** | |||
| 	 * 小组ID | |||
| 	 */ | |||
| 	private String groupId; | |||
| 	/** | |||
| 	 * 小组名称 | |||
| 	 */ | |||
| 	private String groupName; | |||
| 	/** | |||
| 	 * 小组头像 | |||
| 	 */ | |||
| 	private String groupHeadPhoto; | |||
| 	/** | |||
| 	 * 小组介绍 | |||
| 	 */ | |||
| 	private String groupIntroduction; | |||
| 	/** | |||
| 	 * 小组状态已驳回rejected ,已通过approved | |||
| 	 */ | |||
| 	private String status; | |||
| 	/** | |||
| 	 * 审核时间HH:mm | |||
| 	 */ | |||
| 	private Date auditedTime; | |||
| 	/** | |||
| 	 * 消息通知内容 | |||
| 	 */ | |||
| 	private String messageText; | |||
| 
 | |||
| } | |||
					Loading…
					
					
				
		Reference in new issue