计量中心项目
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.yxt</groupId>
|
||||
<artifactId>yxt-parent</artifactId>
|
||||
<version>0.0.1</version>
|
||||
<relativePath/>
|
||||
</parent>
|
||||
|
||||
<groupId>com.yxt.messagecenter</groupId>
|
||||
<artifactId>yxt-single-messagecenter-api</artifactId>
|
||||
<version>0.0.1</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.yxt</groupId>
|
||||
<artifactId>yxt-common-core</artifactId>
|
||||
<version>0.0.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.yxt</groupId>
|
||||
<artifactId>yxt-common-base</artifactId>
|
||||
<version>0.0.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate.validator</groupId>
|
||||
<artifactId>hibernate-validator</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-annotation</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.baomidou</groupId>
|
||||
<artifactId>mybatis-plus-boot-starter</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<version>4.0.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-annotations</artifactId>
|
||||
<version>2.0.4</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/11/2 16:59
|
||||
* @description App我的工作接口
|
||||
*/
|
||||
@FeignClient(
|
||||
contextId = "yxt-messagecenter-AppWork",
|
||||
name = "yxt-messagecenter",
|
||||
path = "v1/appwork",
|
||||
fallback = AppMwssageApiFallBack.class)
|
||||
public interface AppMessageApi {
|
||||
/**
|
||||
* 待阅工作列表
|
||||
*
|
||||
* @return 分页列表
|
||||
*/
|
||||
@PostMapping("/doingworks")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "待阅工作分页列表")
|
||||
ResultBean<PagerVo<WorkDoAppVo>> doingReads(@Valid @RequestBody PagerQuery<MessageQuery> query);
|
||||
|
||||
/**
|
||||
* 已办工作列表
|
||||
*
|
||||
* @return 分页列表
|
||||
*/
|
||||
@PostMapping("/didworks")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "已阅工作分页列表")
|
||||
ResultBean<PagerVo<WorkDidAppVo>> didReads(@Valid @RequestBody PagerQuery<MessageQuery> query);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
|
||||
public class AppMwssageApiFallBack implements AppMessageApi {
|
||||
|
||||
@Override
|
||||
public ResultBean<PagerVo<WorkDoAppVo>> doingReads(@Valid PagerQuery<MessageQuery> query) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<PagerVo<WorkDidAppVo>> didReads(@Valid PagerQuery<MessageQuery> query) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import com.yxt.common.core.domain.BaseEntity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/10/13 14:01
|
||||
* @description 印章管理
|
||||
*/
|
||||
@Data
|
||||
public class Message extends BaseEntity {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1936791263654163882L;
|
||||
|
||||
private String msgTitle;//消息标题
|
||||
private String msgContent;//消息内容
|
||||
private String msgSource;//来源(资源名称)
|
||||
private String createrName;//创建人/发送人
|
||||
private String createDeptSid;//发送人部门Id
|
||||
private String createDeptName;//发起人部门名称
|
||||
private String businessSid;//业务Id(扩展字段,与工作相关)
|
||||
private String url;//目标网页地址
|
||||
private String msgType;//消息类别(公文中的发文、收文等、文件传送、工作提醒、超期提醒等)
|
||||
private String remarks;//备注
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import com.yxt.common.core.api.BaseApi;
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.messagecenter.api.messagelist.MessagelistQuery;
|
||||
import com.yxt.messagecenter.api.messagelist.MessagelistVo;
|
||||
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
|
||||
/**
|
||||
* @author hanweijia
|
||||
* @date 2020/10/13 14:07
|
||||
* @description
|
||||
*/
|
||||
@FeignClient(
|
||||
contextId = "yxt-messagecenter-Message",
|
||||
name = "yxt-messagecenter",
|
||||
path = "v1/messages",
|
||||
fallback = MessageApiFallBack.class)
|
||||
public interface MessageApi extends BaseApi<MessageVo, MessageDto, MessageQuery> {
|
||||
|
||||
|
||||
|
||||
|
||||
@GetMapping("/delSend/{sid}")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "发送消息列表删除")
|
||||
public ResultBean delSend(@ApiParam(value = "发送列表sid", required = true) @PathVariable("sid") String sid);
|
||||
|
||||
@GetMapping("/delReceive/{sid}")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "接收消息列表删除")
|
||||
public ResultBean delReceive(@ApiParam(value = "接收列表sid", required = true) @PathVariable("sid") String sid);
|
||||
|
||||
|
||||
|
||||
@PostMapping("/reveicepageList")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "接收消息分页列表")
|
||||
ResultBean<PagerVo<MessagelistVo>> reveicepageList(@Valid @RequestBody PagerQuery<MessagelistQuery> pagerQuery);
|
||||
|
||||
|
||||
@GetMapping("/selectByMsgSid/{msgSid}")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "查看发送消息列表")
|
||||
ResultBean<List<MessagelistVo>> selectByMsgSid(@ApiParam(value = "msgSid", required = true) @PathVariable("msgSid") String msgSid);
|
||||
|
||||
|
||||
|
||||
@GetMapping("/msgListDtail/{sid}")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "接收消息详情")
|
||||
ResultBean<MessagelistVo> msgListDtail(String sid);
|
||||
|
||||
|
||||
|
||||
//待阅工作
|
||||
@PostMapping("/doingreads")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "待阅工作分页列表")
|
||||
ResultBean<PagerVo<MessageOneVo>> doingreads(@Valid @RequestBody PagerQuery<MessagelistQuery> query);
|
||||
|
||||
//已阅工作
|
||||
@PostMapping("/didreads")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "已阅工作分页列表")
|
||||
ResultBean<PagerVo<MessageOneVo>> didreads(@Valid @RequestBody PagerQuery<MessagelistQuery> query);
|
||||
//企业消息
|
||||
@PostMapping("/cxjlSave")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "企业消息")
|
||||
ResultBean cxjlSave(@Valid @RequestBody MessageDtoOne dtoOne);
|
||||
//企业消息查询
|
||||
@GetMapping("/cxjlSelect/{orgSid}")
|
||||
@ResponseBody
|
||||
@ApiOperation(value = "企业消息查询")
|
||||
ResultBean cxjlSelect(@ApiParam(value = "orgSid", required = true) @PathVariable("orgSid") String orgSid);
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.yxt.common.core.query.PagerQuery;
|
||||
import com.yxt.common.core.result.ResultBean;
|
||||
import com.yxt.common.core.vo.PagerVo;
|
||||
import com.yxt.messagecenter.api.messagelist.MessagelistQuery;
|
||||
import com.yxt.messagecenter.api.messagelist.MessagelistVo;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/10/13 14:08
|
||||
* @description 印章接口容错处理
|
||||
*/
|
||||
@Component
|
||||
public class MessageApiFallBack implements MessageApi {
|
||||
|
||||
@Override
|
||||
public ResultBean<List<MessageVo>> list(@Valid MessageQuery query) {
|
||||
return new ResultBean().fail().setMsg("网站维护,请稍后再试");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<PagerVo<MessageVo>> pageList(@Valid PagerQuery<MessageQuery> pagerQuery) {
|
||||
return new ResultBean().fail().setMsg("网站维护,请稍后再试");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean save(@Valid MessageDto dto) {
|
||||
return new ResultBean().fail().setMsg("网站维护,请稍后再试");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean update(@Valid MessageDto dto, String sid) throws Exception {
|
||||
return new ResultBean().fail().setMsg("网站维护,请稍后再试");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean delete(String sid) {
|
||||
return new ResultBean().fail().setMsg("网站维护,请稍后再试");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<MessageVo> getVo(String sid) {
|
||||
return new ResultBean().fail().setMsg("网站维护,请稍后再试");
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean delSend(String sid) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean delReceive(String sid) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<PagerVo<MessagelistVo>> reveicepageList(@Valid PagerQuery<MessagelistQuery> pagerQuery) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<List<MessagelistVo>> selectByMsgSid(String msgSid) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<MessagelistVo> msgListDtail(String sid) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<PagerVo<MessageOneVo>> doingreads(@Valid PagerQuery<MessagelistQuery> query) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean<PagerVo<MessageOneVo>> didreads(@Valid PagerQuery<MessagelistQuery> query) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean cxjlSave(MessageDtoOne dtoOne) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResultBean cxjlSelect(String orgSid) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import com.yxt.messagecenter.api.message.user.userVo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/10/13 14:10
|
||||
* @description 新建申请dto参数
|
||||
*/
|
||||
@Data
|
||||
public class MessageDto implements Dto {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 3190218647366096747L;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "接收人sid", required = true)
|
||||
@NotEmpty(message = "接收人sid不能为空")
|
||||
private List<userVo> receiveSids;
|
||||
/**
|
||||
* 消息标题
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "消息标题", required = true)
|
||||
@NotBlank(message = "消息标题不能为空")
|
||||
private String msgTitle;
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
@ApiModelProperty(value = "消息内容", required = true)
|
||||
@NotBlank(message = "消息内容不能为空")
|
||||
private String msgContent;
|
||||
|
||||
@ApiModelProperty(value = "来源(资源名称)", required = true)
|
||||
@NotBlank(message = "来源(资源名称)不能为空")
|
||||
private String msgSource;//来源(资源名称)
|
||||
|
||||
@ApiModelProperty(value = "发送人", required = true)
|
||||
@NotBlank(message = "发送人不能为空")
|
||||
private String createrName;//创建人/发送人
|
||||
|
||||
@ApiModelProperty(value = "发送人sid", required = true)
|
||||
@NotBlank(message = "发送人sid不能为空")
|
||||
private String createBySid;//创建人/发送人
|
||||
|
||||
@ApiModelProperty(value = "发送人部门Sid", required = true)
|
||||
@NotBlank(message = "发送人部门Sid不能为空")
|
||||
private String createDeptSid;//发送人部门Sid
|
||||
|
||||
@ApiModelProperty(value = "发起人部门名称", required = true)
|
||||
@NotBlank(message = "发起人部门名称不能为空")
|
||||
private String createDeptName;//发起人部门名称
|
||||
|
||||
@ApiModelProperty(value = "消息内容", required = true)
|
||||
@NotBlank(message = "消息内容不能为空")
|
||||
private String businessSid;//业务Id(扩展字段,与工作相关)
|
||||
|
||||
@ApiModelProperty(value = "目标网页地址", required = true)
|
||||
@NotBlank(message = "目标网页地址不能为空")
|
||||
private String url;//目标网页地址
|
||||
|
||||
@ApiModelProperty(value = "消息类别", required = true)
|
||||
@NotBlank(message = "消息类别不能为空")
|
||||
private String msgType;//消息类别(公文中的发文、收文等、文件传送、工作提醒、超期提醒等)
|
||||
|
||||
private String remarks;//备注
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import com.yxt.messagecenter.api.message.user.userVo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/10/13 14:10
|
||||
* @description 新建申请dto参数
|
||||
*/
|
||||
@Data
|
||||
public class MessageDtoOne implements Dto {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 3190218647366096747L;
|
||||
/**
|
||||
* 消息标题
|
||||
*/
|
||||
@ApiModelProperty(value = "消息标题", required = true)
|
||||
private String msgTitle;
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
@ApiModelProperty(value = "消息内容", required = true)
|
||||
private String msgContent;
|
||||
|
||||
@ApiModelProperty(value = "来源(资源名称)", required = true)
|
||||
private String msgSource;//来源(资源名称)
|
||||
|
||||
@ApiModelProperty(value = "发送人", required = true)
|
||||
private String createrName;//创建人/发送人
|
||||
|
||||
@ApiModelProperty(value = "发送人sid", required = true)
|
||||
private String createBySid;//创建人/发送人
|
||||
|
||||
@ApiModelProperty(value = "发送人部门Sid", required = true)
|
||||
private String createDeptSid;//发送人部门Sid
|
||||
|
||||
@ApiModelProperty(value = "发起人部门名称", required = true)
|
||||
private String createDeptName;//发起人部门名称
|
||||
|
||||
@ApiModelProperty(value = "消息内容", required = true)
|
||||
private String businessSid;//业务Id(扩展字段,与工作相关)
|
||||
|
||||
@ApiModelProperty(value = "目标网页地址", required = true)
|
||||
private String url;//目标网页地址
|
||||
|
||||
@ApiModelProperty(value = "消息类别", required = true)
|
||||
private String msgType;//消息类别(公文中的发文、收文等、文件传送、工作提醒、超期提醒等)
|
||||
|
||||
private String remarks;//备注
|
||||
|
||||
@ApiModelProperty(value = "接收人sid", required = true)
|
||||
private String receiverId;//接收人sid
|
||||
|
||||
@ApiModelProperty(value = "接收人姓名", required = true)
|
||||
private String receiverName;//接收人姓名
|
||||
@ApiModelProperty(value = "接收人删除状态", required = true)
|
||||
private int rDelStatus;//接收人删除状态
|
||||
@ApiModelProperty(value = "发送人删除状态", required = true)
|
||||
private int sDelStatus;//发送人删除状态
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/10/13 14:23
|
||||
* @description 用印审批新建申请初始化返回数据
|
||||
*/
|
||||
@Data
|
||||
public class MessageOneVo implements Vo {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 消息标题
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "消息标题")
|
||||
private String msgTitle;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "来源(资源名称)")
|
||||
private String msgSource;//来源(资源名称)
|
||||
|
||||
@ApiModelProperty(value = "发送人")
|
||||
private String createrName;//创建人/发送人
|
||||
|
||||
|
||||
|
||||
@ApiModelProperty(value = "发起人部门名称")
|
||||
private String createDeptName;//发起人部门名称
|
||||
|
||||
|
||||
@ApiModelProperty(value = "目标网页地址")
|
||||
private String url;//目标网页地址
|
||||
|
||||
@ApiModelProperty(value = "消息类别")
|
||||
private String msgType;//消息类别(公文中的发文、收文等、文件传送、工作提醒、超期提醒等)
|
||||
|
||||
|
||||
@ApiModelProperty(value = "消息sid")
|
||||
private String sid;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
import com.yxt.common.core.query.Query;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/10/13 14:10
|
||||
* @description 印章待办工作和已办工作的查询条件
|
||||
*/
|
||||
@Data
|
||||
public class MessageQuery implements Query {
|
||||
@ApiModelProperty(value = "文件标题", required =false)
|
||||
private String msgTitle;//文件标题
|
||||
|
||||
@ApiModelProperty(value = "消息类别", required =false)
|
||||
private String msgType;//消息类别
|
||||
|
||||
@ApiModelProperty(value = "发送人姓名", required =false)
|
||||
private String createBySid;//发送人姓名
|
||||
|
||||
@ApiModelProperty(value = "接收开始时间", required =false)
|
||||
private String startDate;//接收开始时间
|
||||
|
||||
@ApiModelProperty(value = "接受结束日期", required =false)
|
||||
private String endDate;//接受结束日期
|
||||
|
||||
@ApiModelProperty(value = "来源(资源名称)")
|
||||
private String msgSource;//来源(资源名称)
|
||||
|
||||
@ApiModelProperty(value = "用户sid", required =true)
|
||||
private String userSid;
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/10/13 14:23
|
||||
* @description 用印审批新建申请初始化返回数据
|
||||
*/
|
||||
@Data
|
||||
public class MessageVo implements Vo {
|
||||
|
||||
|
||||
/**
|
||||
* 消息标题
|
||||
*/
|
||||
|
||||
@ApiModelProperty(value = "消息标题")
|
||||
private String msgTitle;
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
@ApiModelProperty(value = "消息内容")
|
||||
private String msgContent;
|
||||
|
||||
@ApiModelProperty(value = "来源(资源名称)")
|
||||
private String msgSource;//来源(资源名称)
|
||||
|
||||
@ApiModelProperty(value = "发送人")
|
||||
private String createrName;//创建人/发送人
|
||||
|
||||
@ApiModelProperty(value = "发送人部门Sid")
|
||||
private String createDeptSid;//发送人部门Sid
|
||||
|
||||
@ApiModelProperty(value = "发起人部门名称")
|
||||
private String createDeptName;//发起人部门名称
|
||||
|
||||
@ApiModelProperty(value = "消息内容")
|
||||
private String businessSid;//业务Id(扩展字段,与工作相关)
|
||||
|
||||
@ApiModelProperty(value = "目标网页地址")
|
||||
private String url;//目标网页地址
|
||||
|
||||
@ApiModelProperty(value = "消息类别")
|
||||
private String msgType;//消息类别(公文中的发文、收文等、文件传送、工作提醒、超期提醒等)
|
||||
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;//备注
|
||||
|
||||
@ApiModelProperty(value = "消息sid")
|
||||
private String sid;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class MessageVoOne implements Vo {
|
||||
/**
|
||||
* 消息标题
|
||||
*/
|
||||
@ApiModelProperty(value = "消息标题", required = true)
|
||||
private String msgTitle;
|
||||
/**
|
||||
* 消息内容
|
||||
*/
|
||||
@ApiModelProperty(value = "消息内容", required = true)
|
||||
private String msgContent;
|
||||
|
||||
@ApiModelProperty(value = "来源(资源名称)", required = true)
|
||||
private String msgSource;//来源(资源名称)
|
||||
|
||||
@ApiModelProperty(value = "发送人", required = true)
|
||||
private String createrName;//创建人/发送人
|
||||
|
||||
@ApiModelProperty(value = "发送人sid", required = true)
|
||||
private String createBySid;//创建人/发送人
|
||||
|
||||
@ApiModelProperty(value = "发送人部门Sid", required = true)
|
||||
private String createDeptSid;//发送人部门Sid
|
||||
|
||||
@ApiModelProperty(value = "发起人部门名称", required = true)
|
||||
private String createDeptName;//发起人部门名称
|
||||
|
||||
@ApiModelProperty(value = "消息内容", required = true)
|
||||
private String businessSid;//业务Id(扩展字段,与工作相关)
|
||||
|
||||
@ApiModelProperty(value = "目标网页地址", required = true)
|
||||
private String url;//目标网页地址
|
||||
|
||||
@ApiModelProperty(value = "消息类别", required = true)
|
||||
private String msgType;//消息类别(公文中的发文、收文等、文件传送、工作提醒、超期提醒等)
|
||||
|
||||
private String remarks;//备注
|
||||
|
||||
@ApiModelProperty(value = "接收人sid", required = true)
|
||||
private String receiverId;//接收人sid
|
||||
|
||||
@ApiModelProperty(value = "接收人姓名", required = true)
|
||||
private String receiverName;//接收人姓名
|
||||
@ApiModelProperty(value = "接收人删除状态", required = true)
|
||||
private int rDelStatus;//接收人删除状态
|
||||
@ApiModelProperty(value = "发送人删除状态", required = true)
|
||||
private int sDelStatus;//发送人删除状态
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
|
||||
@Data
|
||||
@Component
|
||||
public class WorkDidAppVo implements Vo {
|
||||
/**
|
||||
* 任务sid
|
||||
*/
|
||||
@ApiModelProperty(value = "taskSid")
|
||||
private String taskSid;
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
@ApiModelProperty(value = "流程名称")
|
||||
private String processName;
|
||||
/**
|
||||
* 流程实例sid
|
||||
*/
|
||||
@ApiModelProperty(value = "流程实例sid")
|
||||
private String orderSid;
|
||||
/**
|
||||
* 文件标题
|
||||
*/
|
||||
@ApiModelProperty(value = "文件标题")
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 任务创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "任务创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
/**
|
||||
* 发起部门名称
|
||||
*/
|
||||
@ApiModelProperty(value = "发起部门名称")
|
||||
private String createDeptName;
|
||||
/**
|
||||
* 表单sid
|
||||
*/
|
||||
@ApiModelProperty(value = "表单sid")
|
||||
private String formSid;
|
||||
|
||||
@ApiModelProperty(value = "流程sid")
|
||||
private String processSid;
|
||||
/**
|
||||
* 是否可以撤回
|
||||
*/
|
||||
@ApiModelProperty(value = "是否可以撤回(1可以,0不可以)")
|
||||
private int isRecall;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.yxt.messagecenter.api.message;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author yxt_mtl
|
||||
* @date 2020/10/21 10:37
|
||||
* @description 任务
|
||||
*/
|
||||
@Data
|
||||
@Component
|
||||
public class WorkDoAppVo implements Vo {
|
||||
|
||||
/**
|
||||
* 任务sid
|
||||
*/
|
||||
@ApiModelProperty(value = "taskSid")
|
||||
private String taskSid;
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
@ApiModelProperty(value = "流程名称")
|
||||
private String processName;
|
||||
/**
|
||||
* 流程实例sid
|
||||
*/
|
||||
@ApiModelProperty(value = "流程实例sid")
|
||||
private String orderSid;
|
||||
/**
|
||||
* 文件标题
|
||||
*/
|
||||
@ApiModelProperty(value = "文件标题")
|
||||
private String title;
|
||||
|
||||
/**
|
||||
* 任务创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "任务创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
/**
|
||||
* 发起部门名称
|
||||
*/
|
||||
@ApiModelProperty(value = "发起部门名称")
|
||||
private String createDeptName;
|
||||
/**
|
||||
* 表单sid
|
||||
*/
|
||||
@ApiModelProperty(value = "表单sid")
|
||||
private String formSid;
|
||||
|
||||
@ApiModelProperty(value = "流程sid")
|
||||
private String processSid;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.yxt.messagecenter.api.message.user;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/10/13 14:23
|
||||
* @description 用印审批新建申请初始化返回数据
|
||||
*/
|
||||
@Data
|
||||
public class userVo implements Vo {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -4193445652829771684L;
|
||||
@ApiModelProperty(value = "用户sid")
|
||||
private String userSid;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.yxt.messagecenter.api.messagelist;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
import com.yxt.common.core.domain.BaseEntity;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* @author hanweijia
|
||||
* @date 2020/10/13 14:01
|
||||
* @description 印章管理
|
||||
*/
|
||||
@Data
|
||||
public class Messagelist extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID = 2882078320822565063L;
|
||||
|
||||
private String msgSid;//消息sid
|
||||
private String receiverId;//接收人sid
|
||||
private String receiverName;//接收人姓名
|
||||
private String receiverDeptSid;//接收人部门sid
|
||||
private String receiverDeptName;//接收人部门名称
|
||||
private int rDelStatus;//接收人删除状态
|
||||
private int sDelStatus;//发送人删除状态
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.yxt.messagecenter.api.messagelist;
|
||||
|
||||
import com.yxt.common.core.dto.Dto;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/10/13 14:10
|
||||
* @description 新建申请dto参数
|
||||
*/
|
||||
@Data
|
||||
public class MessagelistDto implements Dto {
|
||||
private static final long serialVersionUID = -6966619113217517483L;
|
||||
|
||||
@ApiModelProperty(value = "消息sid", required = true)
|
||||
@NotBlank(message = "消息sid不能为空")
|
||||
private String msgSid;//消息sid
|
||||
|
||||
@ApiModelProperty(value = "接收人sid", required = true)
|
||||
@NotBlank(message = "文接收人sid不能为空")
|
||||
private String receiverId;//接收人sid
|
||||
|
||||
@ApiModelProperty(value = "接收人姓名", required = true)
|
||||
@NotBlank(message = "接收人姓名不能为空")
|
||||
private String receiverName;//接收人姓名
|
||||
|
||||
@ApiModelProperty(value = "接收人部门sid", required = true)
|
||||
@NotBlank(message = "接收人部门sid不能为空")
|
||||
private String receiverDeptSid;//接收人部门sid
|
||||
|
||||
@ApiModelProperty(value = "接收人部门名称", required = true)
|
||||
@NotBlank(message = "文件sid不能为空")
|
||||
private String 接收人部门名称;//接收人部门名称
|
||||
|
||||
@ApiModelProperty(value = "接收人删除状态", required = true)
|
||||
@NotBlank(message = "接收人删除状态不能为空")
|
||||
private int rDelStatus;//接收人删除状态
|
||||
|
||||
@ApiModelProperty(value = "发送人删除状态", required = true)
|
||||
@NotBlank(message = "发送人删除状态不能为空")
|
||||
private int sDelStatus;//发送人删除状态
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.yxt.messagecenter.api.messagelist;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/10/13 14:23
|
||||
* @description 用印审批新建申请初始化返回数据
|
||||
*/
|
||||
@Data
|
||||
public class MessagelistOneVo implements Vo {
|
||||
|
||||
private static final long serialVersionUID = 1009503014720454645L;
|
||||
|
||||
@ApiModelProperty(value = "消息sid")
|
||||
private String msgSid;//消息sid
|
||||
|
||||
@ApiModelProperty(value = "接收人sid")
|
||||
private String receiverId;//接收人sid
|
||||
|
||||
@ApiModelProperty(value = "接收人姓名")
|
||||
private String receiverName;//接收人姓名
|
||||
|
||||
@ApiModelProperty(value = "接收人部门sid")
|
||||
private String receiverDeptSid;//接收人部门sid
|
||||
|
||||
@ApiModelProperty(value = "接收人部门名称")
|
||||
private String receiverDeptName;//接收人部门名称
|
||||
|
||||
@ApiModelProperty(value = "接收人删除状态")
|
||||
private int rDelStatus;//接收人删除状态
|
||||
|
||||
@ApiModelProperty(value = "发送人删除状态")
|
||||
private int sDelStatus;//发送人删除状态
|
||||
|
||||
@ApiModelProperty(value = "消息标题")
|
||||
private String msgTitle;//消息标题
|
||||
|
||||
@ApiModelProperty(value = "消息来源")
|
||||
private String msgSource;//消息标题
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.yxt.messagecenter.api.messagelist;
|
||||
|
||||
import com.yxt.common.core.query.Query;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author yxt_hwj
|
||||
* @date 2020/10/13 14:10
|
||||
* @description 印章待办工作和已办工作的查询条件
|
||||
*/
|
||||
@Data
|
||||
public class MessagelistQuery implements Query {
|
||||
|
||||
@ApiModelProperty(value = "接收人sid", required =true)
|
||||
private String receiverSid;//接收人姓名
|
||||
|
||||
@ApiModelProperty(value = "文件标题")
|
||||
private String msgTitle;//文件标题
|
||||
|
||||
@ApiModelProperty(value = "消息类别")
|
||||
private String msgType;//消息类别
|
||||
|
||||
@ApiModelProperty(value = "阅读状态")
|
||||
private int state;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.yxt.messagecenter.api.messagelist;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import com.yxt.common.core.vo.Vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author dimengzhe
|
||||
* @date 2020/10/13 14:23
|
||||
* @description 用印审批新建申请初始化返回数据
|
||||
*/
|
||||
@Data
|
||||
public class MessagelistVo implements Vo {
|
||||
|
||||
|
||||
@ApiModelProperty(value = "消息sid")
|
||||
private String msgSid;//消息sid
|
||||
|
||||
@ApiModelProperty(value = "接收人sid")
|
||||
private String receiverId;//接收人sid
|
||||
|
||||
@ApiModelProperty(value = "接收人姓名")
|
||||
private String receiverName;//接收人姓名
|
||||
|
||||
@ApiModelProperty(value = "接收人部门sid")
|
||||
private String receiverDeptSid;//接收人部门sid
|
||||
|
||||
@ApiModelProperty(value = "接收人部门名称")
|
||||
private String receiverDeptName;//接收人部门名称
|
||||
|
||||
@ApiModelProperty(value = "接收人删除状态")
|
||||
private int rDelStatus;//接收人删除状态
|
||||
|
||||
@ApiModelProperty(value = "发送人删除状态")
|
||||
private int sDelStatus;//发送人删除状态
|
||||
|
||||
@ApiModelProperty(value = "消息标题")
|
||||
private String msgTitle;//消息标题
|
||||
|
||||
@ApiModelProperty(value = "消息来源")
|
||||
private String msgSource;//消息标题
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user