forked from rongchao/epmet-cloud-rizhao
42 changed files with 267 additions and 130 deletions
@ -0,0 +1,51 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 居民端的行为触发发送消息给政府端的入参 |
|||
* @Author yinzuomei |
|||
* @Date 2020/4/19 20:54 |
|||
*/ |
|||
@Data |
|||
public class SendMsgResi2GovFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -1844010483732604630L; |
|||
|
|||
/** |
|||
* 发送人Id resiUser的Id |
|||
* */ |
|||
private String from; |
|||
|
|||
/** |
|||
* 角色key |
|||
* */ |
|||
private String roleKey; |
|||
|
|||
/** |
|||
* 消息内容 |
|||
* */ |
|||
private String msg; |
|||
|
|||
/** |
|||
* 组织Id 可能是agencyId、deptId、gridId |
|||
* */ |
|||
private String institutionId; |
|||
|
|||
/** |
|||
* 组织标识 1:agency 2:department 3:grid |
|||
* */ |
|||
private String institutionFlag; |
|||
|
|||
/** |
|||
*客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 等级 1:当前组织下 2:所属机构(agency)下 |
|||
* 当institutionFlag为1时,permissionLevel默认为1 |
|||
* */ |
|||
private String permissionLevel; |
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.epmet.modules.feign; |
|||
|
|||
import com.epmet.commons.tools.constant.ServiceConstant; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dto.CustomerDepartmentDTO; |
|||
import com.epmet.dto.CustomerGridDTO; |
|||
import com.epmet.modules.feign.fallback.GovOrgFeignClientFallBack; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
|
|||
/** |
|||
* @Description gov-org服务feginClient 服务间调用 |
|||
* @Author wangc |
|||
* @Date 2020/3/16 14:48 |
|||
*/ |
|||
@FeignClient(name = ServiceConstant.GOV_ORG_SERVER, fallback = GovOrgFeignClientFallBack.class) |
|||
public interface GovOrgFeignClient { |
|||
|
|||
/** |
|||
* @param id - gridId |
|||
* @return Result<CustomerGridDTO> |
|||
* @Author wangc |
|||
* @Description 查询网格信息 |
|||
* @Date 2020/3/30 10:45 |
|||
**/ |
|||
@GetMapping("/gov/org/customergrid/{id}") |
|||
Result<CustomerGridDTO> getGrid(String id); |
|||
|
|||
/** |
|||
* @Description 查询部门信息 |
|||
* @param id |
|||
* @author wangc |
|||
* @date 2020.04.29 15:02 |
|||
*/ |
|||
@GetMapping("/gov/org/customerdepartment/{id}") |
|||
Result<CustomerDepartmentDTO> getDept(String id); |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.modules.feign.fallback; |
|||
|
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dto.CustomerDepartmentDTO; |
|||
import com.epmet.dto.CustomerGridDTO; |
|||
import com.epmet.modules.feign.GovOrgFeignClient; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
|
|||
@Component |
|||
public class GovOrgFeignClientFallBack implements GovOrgFeignClient { |
|||
|
|||
|
|||
@Override |
|||
public Result<CustomerGridDTO> getGrid(String id) { |
|||
return null; |
|||
} |
|||
|
|||
@Override |
|||
public Result<CustomerDepartmentDTO> getDept(String id) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.constant; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2020/4/29 13:41 |
|||
*/ |
|||
public interface PartyMemberMessageConstant { |
|||
/** |
|||
* 消息标题 |
|||
*/ |
|||
String GROUP_TITLE = "您有一条党员申请消息"; |
|||
|
|||
/** |
|||
* 党员提交申请时给网格长发送消息:XX街道-XX先生/女士申请成为党员,请审核。 |
|||
*/ |
|||
String MEMBER_APPLY_MSG = "%s申请成为党员,请审核。"; |
|||
|
|||
/** |
|||
* 党员申请审核通过给申请人发送消息:您好,您申请的党员已审核通过,请查看。 |
|||
*/ |
|||
String AUDIT_APPROVE_MSG = "您好,您申请的%s党员已审核通过,请查看。"; |
|||
|
|||
/** |
|||
* 党员申请审核驳回给申请人发送消息:您好,您申请的党员,由于不符合条件的原因,已被驳回。 |
|||
*/ |
|||
String AUDIT_REJECT_MSG = "您好,您申请的%s党员,由于不符合条件的原因,已被驳回。"; |
|||
} |
Loading…
Reference in new issue