Browse Source
# Conflicts: # epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserRoleController.java # epmet-user/epmet-user-server/src/main/java/com/epmet/dao/UserRoleDao.java # epmet-user/epmet-user-server/src/main/java/com/epmet/service/UserRoleService.java # epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserRoleServiceImpl.javamaster
275 changed files with 15386 additions and 261 deletions
@ -0,0 +1,42 @@ |
|||
package com.epmet.commons.tools.dto.form; |
|||
|
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2020/12/21 15:37 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class FileCommonDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -5307959406648243353L; |
|||
/** |
|||
* 文件名 |
|||
*/ |
|||
private String name; |
|||
/** |
|||
* url地址 |
|||
*/ |
|||
private String url; |
|||
/** |
|||
* 文件类型(图片 - image、 视频 - video、 语音 - voice、 文档 - doc) |
|||
*/ |
|||
private String type; |
|||
/** |
|||
* 后缀名 |
|||
*/ |
|||
private String format; |
|||
/** |
|||
* 文件大小 kb |
|||
*/ |
|||
private Integer size; |
|||
/** |
|||
* 语音或视频文件时长,单位秒 |
|||
*/ |
|||
private Integer duration; |
|||
} |
@ -0,0 +1,146 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.dto.form.FileCommonDTO; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 工作端小组内,活动详情返参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/29 9:30 |
|||
*/ |
|||
@Data |
|||
public class ActDetailGovResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 3982724635100043221L; |
|||
|
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 小组id |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* 活动标题; |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 活动时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date startTime; |
|||
|
|||
/** |
|||
* 活动所属类别编码 |
|||
*/ |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 上级类别编码 |
|||
*/ |
|||
private String parentCode; |
|||
|
|||
private String menuCode; |
|||
|
|||
/** |
|||
* 活动类别名称;eg:支部建设-三会一课 |
|||
*/ |
|||
private String allCategoryName; |
|||
|
|||
/** |
|||
* 活动地点 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 应参加人数组长填入;此列也是应签到人数; |
|||
*/ |
|||
private Integer shouldAttend; |
|||
|
|||
/** |
|||
* 活动状态:已发布:published;已取消:canceled;已变更:changed;已关闭:closed |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 签到开始时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date signInStartTime; |
|||
|
|||
/** |
|||
* 签到截止时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date signInEndTime; |
|||
|
|||
/** |
|||
* 是否填写总结?1:已填写;0:未填写 |
|||
*/ |
|||
private Integer summaryFlag; |
|||
|
|||
/** |
|||
* 取消时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date canceledTime; |
|||
|
|||
/** |
|||
* 关闭时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date closedTime; |
|||
|
|||
/** |
|||
* 活动发布人用户id |
|||
*/ |
|||
private String publishUserId; |
|||
|
|||
/** |
|||
* 内容列表 |
|||
*/ |
|||
private List<String> textList; |
|||
|
|||
/** |
|||
* 图片列表 |
|||
*/ |
|||
private List<String> imgArrayList; |
|||
|
|||
/** |
|||
* 图片列表,最多3张 |
|||
*/ |
|||
private List<FileCommonDTO> imgList; |
|||
|
|||
//以下字段需要单独赋值
|
|||
/** |
|||
* 取消原因 |
|||
*/ |
|||
private String canceledReason; |
|||
|
|||
/** |
|||
* 已签到人数(有人签到自动+1) |
|||
*/ |
|||
private Integer signedInNum; |
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 最后一次编辑时间;首次发布与CREATED_TIME一致 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date changedTime; |
|||
} |
@ -0,0 +1,102 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.act; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 活动类别字典 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-16 |
|||
*/ |
|||
@Data |
|||
public class ActCategoryDictDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 类别编码 |
|||
*/ |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 活动类别名称;eg:支部建设、联建共建 |
|||
*/ |
|||
private String categoryName; |
|||
|
|||
/** |
|||
* 等级1,2...... |
|||
*/ |
|||
private Integer level; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 上级类别编码 |
|||
*/ |
|||
private String parentCode; |
|||
|
|||
/** |
|||
* 逻辑删除标识 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,99 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.act; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 活动操作表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-16 |
|||
*/ |
|||
@Data |
|||
public class ActOperationRecordDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键(签到成功后插入此表) |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* group_act_info.id |
|||
*/ |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 操作人id |
|||
*/ |
|||
private String operateUserId; |
|||
|
|||
/** |
|||
* 操作类型:发布:publish; |
|||
取消:cancel; |
|||
变更:change; |
|||
关闭:close |
|||
*/ |
|||
private String operationType; |
|||
|
|||
/** |
|||
* 备注;取消理由 |
|||
*/ |
|||
private String note; |
|||
|
|||
/** |
|||
* 逻辑删除标识 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,112 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.act; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 活动已读记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-16 |
|||
*/ |
|||
@Data |
|||
public class ActReadRecordDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键(发布活动后后台自动初始化记录) |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 小组所属网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 小组id |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* group_act_info.id |
|||
*/ |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 活动关闭前已读:read;未读:un_read |
|||
*/ |
|||
private String readFlag; |
|||
|
|||
/** |
|||
* 已读:read未读:un_read |
|||
*/ |
|||
private String viewDetail; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* yes:应读;no: 新入群的人已读 |
|||
*/ |
|||
private String shouldBeRead; |
|||
|
|||
/** |
|||
* 删除标识 0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,87 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.act; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 组织活动签到码 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-16 |
|||
*/ |
|||
@Data |
|||
public class ActSignInCodeDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* group_act_info.id |
|||
*/ |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 签到码url |
|||
*/ |
|||
private String url; |
|||
|
|||
/** |
|||
* 删除标志 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,102 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.act; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 组织活动签到记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-16 |
|||
*/ |
|||
@Data |
|||
public class ActSignInRecordDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键(签到成功后插入此表) |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* group_act_info.id |
|||
*/ |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 签到用户id |
|||
*/ |
|||
private String signUserId; |
|||
|
|||
/** |
|||
* 签到地点 |
|||
*/ |
|||
private String signInAddress; |
|||
|
|||
/** |
|||
* 签到地点-经度 |
|||
*/ |
|||
private BigDecimal longitude; |
|||
|
|||
/** |
|||
* 签到地点-纬度 |
|||
*/ |
|||
private BigDecimal latitude; |
|||
|
|||
/** |
|||
* 逻辑删除标识 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,102 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.act; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 活动总结内容 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-16 |
|||
*/ |
|||
@Data |
|||
public class ActSummaryContentDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* act_summary.id |
|||
*/ |
|||
private String actSummaryId; |
|||
|
|||
/** |
|||
* group_act_info.id |
|||
*/ |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 总结内容 |
|||
*/ |
|||
private String content; |
|||
|
|||
/** |
|||
* 内容类型: 文字:text;图片:img |
|||
*/ |
|||
private String contentType; |
|||
|
|||
/** |
|||
* 内容顺序 从1开始 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 删除标识 0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,102 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.act; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 活动总结 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-16 |
|||
*/ |
|||
@Data |
|||
public class ActSummaryDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键(确认提交后插入此表) |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* group_act_info.id |
|||
*/ |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 应参加人数:来源于group_act_info |
|||
*/ |
|||
private Integer shouldAttend; |
|||
|
|||
/** |
|||
* 已签到人数 |
|||
*/ |
|||
private Integer signedInNum; |
|||
|
|||
/** |
|||
* 已签到人员姓名列表、分隔 |
|||
*/ |
|||
private String signedInUsers; |
|||
|
|||
/** |
|||
* 填写总结的人 |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 删除标识 0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,96 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.act; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 组织活动内容 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-16 |
|||
*/ |
|||
@Data |
|||
public class GroupActContentDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* group_act_info.id |
|||
*/ |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 活动内容 |
|||
*/ |
|||
private String content; |
|||
|
|||
/** |
|||
* 内容类型: 文字:text;图片:img |
|||
*/ |
|||
private String contentType; |
|||
|
|||
/** |
|||
* 内容顺序 从1开始 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 删除标识 0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.epmet.resi.group.dto.act; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 组织活动id |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/19 15:11 |
|||
*/ |
|||
@Data |
|||
public class GroupActIdDTO implements Serializable { |
|||
private static final long serialVersionUID = -729672768113053794L; |
|||
private String groupActId; |
|||
} |
@ -0,0 +1,196 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.act; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 组织活动信息 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-16 |
|||
*/ |
|||
@Data |
|||
public class GroupActInfoDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 小组id |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* 小组所属的网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 网格所属的组织id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 网格的所有上级id |
|||
*/ |
|||
private String gridPids; |
|||
|
|||
/** |
|||
* 活动标题;需内容审核 |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 活动时间 |
|||
*/ |
|||
private Date startTime; |
|||
|
|||
/** |
|||
* 活动所属类别编码 |
|||
*/ |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 上级类别编码 |
|||
*/ |
|||
private String parentCode; |
|||
|
|||
/** |
|||
* 活动类别名称;eg:支部建设-三会一课 |
|||
*/ |
|||
private String allCategoryName; |
|||
|
|||
/** |
|||
* 活动地点 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 活动地点-经度 |
|||
*/ |
|||
private BigDecimal longitude; |
|||
|
|||
/** |
|||
* 活动地点-纬度 |
|||
*/ |
|||
private BigDecimal latitude; |
|||
|
|||
/** |
|||
* 应参加人数组长填入;此列也是应签到人数; |
|||
*/ |
|||
private Integer shouldAttend; |
|||
|
|||
/** |
|||
* 活动状态:已发布:published;已取消:canceled;已变更:changed;已关闭:closed |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 最后一次编辑时间;首次发布与CREATED_TIME一致 |
|||
*/ |
|||
private Date changedTime; |
|||
|
|||
/** |
|||
* 是否变更过(是:yes 否:no) |
|||
*/ |
|||
private String isChange; |
|||
|
|||
/** |
|||
* 签到开始时间 |
|||
*/ |
|||
private Date signInStartTime; |
|||
|
|||
/** |
|||
* 签到截止时间 |
|||
*/ |
|||
private Date signInEndTime; |
|||
|
|||
/** |
|||
* 是否填写总结?1:已填写;0:未填写 |
|||
*/ |
|||
private Integer summaryFlag; |
|||
|
|||
/** |
|||
* 已签到人数(有人签到自动+1) |
|||
*/ |
|||
private Integer signedInNum; |
|||
|
|||
/** |
|||
* 取消时间 |
|||
*/ |
|||
private Date canceledTime; |
|||
|
|||
/** |
|||
* 关闭时间 |
|||
*/ |
|||
private Date closedTime; |
|||
|
|||
/** |
|||
* 活动发布人用户id |
|||
*/ |
|||
private String publishUserId; |
|||
|
|||
/** |
|||
* 删除标识 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间(活动发布时间) |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
/** |
|||
* 应读人数 |
|||
*/ |
|||
private Integer shouldRead; |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 002、活动类别下拉框查询 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/19 14:16 |
|||
*/ |
|||
@Data |
|||
public class ActCategoryFormDTO implements Serializable { |
|||
|
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
/** |
|||
* 组Id |
|||
*/ |
|||
@NotBlank(message = "menuCode不能为空", groups = ActCategoryFormDTO.AddUserInternalGroup.class) |
|||
private String menuCode; |
|||
|
|||
@NotBlank(message = "tokenDto获取customerId为空", groups = ActCategoryFormDTO.AddUserInternalGroup.class) |
|||
private String customerId; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 015、点击分享链接,查看活动详情 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/21 11:14 |
|||
*/ |
|||
@Data |
|||
public class ActDetailByLinkFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 287086994875005175L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
@NotBlank(message = "invitationRecordId不能为空", groups = AddUserInternalGroup.class) |
|||
private String invitationRecordId; |
|||
|
|||
/** |
|||
* 当前用户id |
|||
*/ |
|||
@NotBlank(message = "tokenDto获取userId为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 004、活动详情 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/19 19:16 |
|||
*/ |
|||
@Data |
|||
public class ActDetailFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 9163803497503557861L; |
|||
public interface AddUserInternalGroup { |
|||
} |
|||
@NotBlank(message = "groupActId不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 当前用户id |
|||
*/ |
|||
@NotBlank(message = "tokenDto获取userId为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 工作端:gov; 居民端:resi |
|||
* 这个是代码里赋值的 |
|||
*/ |
|||
private String client; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 001、活动类别列表 入参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/19 13:13 |
|||
*/ |
|||
@Data |
|||
public class ActMenuFormDTO implements Serializable { |
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
/** |
|||
* 组Id |
|||
*/ |
|||
@NotBlank(message = "groupId不能为空", groups =AddUserInternalGroup.class) |
|||
private String groupId; |
|||
|
|||
@NotBlank(message = "tokenDto获取customerId为空", groups =AddUserInternalGroup.class) |
|||
private String customerId; |
|||
|
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 016、活动已读未读列表 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/19 19:36 |
|||
*/ |
|||
@Data |
|||
public class ActReadViewFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -7382937811770356934L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
@NotBlank(message = "groupActId不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 当前用户id |
|||
*/ |
|||
@NotBlank(message = "tokenDto获取userId为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
} |
|||
|
@ -0,0 +1,22 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 014、查看活动总结详情 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/21 14:14 |
|||
*/ |
|||
@Data |
|||
public class ActSummaryDetailFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 3937952227893070145L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
@NotBlank(message = "groupActId不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import com.epmet.resi.group.dto.topic.form.FileDTO; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 013、提交活动总结 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/21 12:58 |
|||
*/ |
|||
@Data |
|||
public class ActSummaryFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 6068480003626532767L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
@NotBlank(message = "groupActId不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 补充内容,限制1000字, |
|||
*/ |
|||
private List<String> textList; |
|||
|
|||
/** |
|||
* 补充图片列表 |
|||
*/ |
|||
private List<FileDTO> imgList; |
|||
|
|||
|
|||
/** |
|||
* 当前用户id |
|||
*/ |
|||
@NotBlank(message = "tokenDto获取userId为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 018、获取签到码图片 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/21 18:01 |
|||
*/ |
|||
@Data |
|||
public class BuildSignInCodeFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -2806512125925383053L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
@NotBlank(message = "groupActId不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 当前用户id |
|||
*/ |
|||
@NotBlank(message = "tokenDto获取userId为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
|
|||
@NotBlank(message = "tokenDto获取customerId为空", groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* 018、获取签到码图片 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/21 18:13 |
|||
*/ |
|||
@Data |
|||
public class BuildSignInCodeResultDTO { |
|||
private String signInCodeUrl; |
|||
} |
@ -0,0 +1,38 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 011、取消活动 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/20 12:04 |
|||
*/ |
|||
@Data |
|||
public class CancelActFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 6126854423030661426L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
public interface AddUserShowGroup extends CustomerClientShowGroup { |
|||
} |
|||
|
|||
@NotBlank(message = "groupActId不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
|
|||
@NotBlank(message = "取消原因不能为空", groups = AddUserShowGroup.class) |
|||
@Length(max = 300, message = "取消原因最多输入300字", groups = AddUserShowGroup.class) |
|||
private String reason; |
|||
|
|||
/** |
|||
* 当前用户id |
|||
*/ |
|||
@NotBlank(message = "tokenDto获取userId为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 017、关闭活动 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/21 15:18 |
|||
*/ |
|||
@Data |
|||
public class CloseGroupActFormDTO implements Serializable { |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
@NotBlank(message = "groupActId不能为空", groups = ActSummaryDetailFormDTO.AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 当前用户id |
|||
*/ |
|||
@NotBlank(message = "tokenDto获取userId为空", groups = ActReadViewFormDTO.AddUserInternalGroup.class) |
|||
private String userId; |
|||
} |
@ -0,0 +1,39 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 005、评论活动 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/20 12:35 |
|||
*/ |
|||
@Data |
|||
public class CommentFormDTO implements Serializable { |
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
public interface AddUserShowGroup extends CustomerClientShowGroup { |
|||
} |
|||
|
|||
@NotBlank(message = "groupActId不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
|
|||
@NotBlank(message = "评论内容不能为空", groups = AddUserShowGroup.class) |
|||
@Length(max = 500, message = "评论内容最多输入500字", groups = AddUserShowGroup.class) |
|||
private String commentContent; |
|||
|
|||
/** |
|||
* 当前用户id |
|||
*/ |
|||
@NotBlank(message = "tokenDto获取userId为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
|
|||
@NotBlank(message = "tokenDto获取customerId为空", groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 006、活动评论列表查询 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/20 12:55 |
|||
*/ |
|||
@Data |
|||
public class CommentQueryFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 4013876445914100561L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
@NotBlank(message = "groupActId不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
private Integer pageNo; |
|||
private Integer pageSize; |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 012、初始化活动总结模板 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/21 12:21 |
|||
*/ |
|||
@Data |
|||
public class InitTemplateFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 7608480584652986190L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
@NotBlank(message = "groupActId不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
} |
@ -0,0 +1,106 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import com.epmet.resi.group.dto.topic.form.FileDTO; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
|
|||
import javax.validation.constraints.Min; |
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 003、发布(编辑)组织活动 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/19 15:10 |
|||
*/ |
|||
@Data |
|||
public class PublishGroupActFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 3507465802034946254L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
public interface AddUserShowGroup extends CustomerClientShowGroup { |
|||
} |
|||
|
|||
@NotBlank(message = "tokenDto获取customerId为空", groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 活动发布人用户id |
|||
*/ |
|||
@NotBlank(message = "tokenDto获取userId为空", groups = AddUserInternalGroup.class) |
|||
private String publishUserId; |
|||
|
|||
@NotBlank(message = "groupId不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupId; |
|||
|
|||
/** |
|||
* 小组活动id,此列有值代表编辑 |
|||
*/ |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 类别编码 |
|||
*/ |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 类别编码所属的上一级编码 |
|||
*/ |
|||
private String parentCode; |
|||
|
|||
@NotBlank(message = "menuCode不能为空", groups = AddUserInternalGroup.class) |
|||
private String menuCode; |
|||
|
|||
/** |
|||
* 活动标题 |
|||
*/ |
|||
@NotBlank(message = "title不能为空,最多输入50个字", groups = AddUserShowGroup.class) |
|||
@Length(min = 1, max = 50, message = "title不能为空,最多输入50个字", groups = {AddUserShowGroup.class}) |
|||
private String title; |
|||
|
|||
/** |
|||
* 活动时间,格式:yyyy-MM-dd HH:mm |
|||
*/ |
|||
private String startTime; |
|||
|
|||
/** |
|||
* 活动地点 |
|||
*/ |
|||
@NotBlank(message = "活动地点不能为空", groups = AddUserShowGroup.class) |
|||
private String address; |
|||
|
|||
|
|||
/** |
|||
* 活动地点-经度 |
|||
*/ |
|||
private BigDecimal longitude; |
|||
|
|||
/** |
|||
* 活动地点-纬度 |
|||
*/ |
|||
private BigDecimal latitude; |
|||
|
|||
/** |
|||
* 应参加人数组长填入;此列也是应签到人数; |
|||
*/ |
|||
@Min(value = 1, message = "应参加人数需大于0", groups = AddUserShowGroup.class) |
|||
private Integer shouldAttend; |
|||
|
|||
/** |
|||
* 活动文本内容,目前只有一段,限制1000字 |
|||
*/ |
|||
private List<String> textList; |
|||
|
|||
/** |
|||
* 图片列表,最多3张 |
|||
*/ |
|||
private List<FileDTO> imgList; |
|||
|
|||
private String gridId; |
|||
} |
@ -0,0 +1,39 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 010、设置(修改)签到时间,生成签到码 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/20 13:34 |
|||
*/ |
|||
@Data |
|||
public class SetSignTimeFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 4134192208518833623L; |
|||
public interface AddUserInternalGroup { |
|||
} |
|||
/** |
|||
* 小组活动id |
|||
*/ |
|||
@NotBlank(message = "groupActId不能为空",groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 签到开始时间:yyyy-MM-dd HH:mm |
|||
*/ |
|||
@NotBlank(message = "开始时间不能为空",groups = AddUserInternalGroup.class) |
|||
private String signInStartTime; |
|||
|
|||
/** |
|||
* 签到截止时间:yyyy-MM-dd HH:mm |
|||
*/ |
|||
@NotBlank(message = "截止时间不能为空",groups = AddUserInternalGroup.class) |
|||
private String signInEndTime; |
|||
|
|||
@NotBlank(message = "tokenDto获取userId为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
} |
@ -0,0 +1,50 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 007、签到 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/20 15:14 |
|||
*/ |
|||
@Data |
|||
public class SignInFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 3632452994910057034L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
@NotBlank(message = "活动id不能为空",groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 签到地址 |
|||
*/ |
|||
@NotBlank(message = "签到地址不能为空",groups = AddUserInternalGroup.class) |
|||
private String signInAddress; |
|||
/** |
|||
* 签到地点-经度 |
|||
*/ |
|||
@NotNull(message ="经度不能为空",groups = AddUserInternalGroup.class) |
|||
private BigDecimal longitude; |
|||
|
|||
/** |
|||
* 签到地点-纬度 |
|||
*/ |
|||
@NotNull(message ="纬度不能为空",groups = AddUserInternalGroup.class) |
|||
private BigDecimal latitude; |
|||
|
|||
@NotBlank(message = "tokenDto获取userId为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
|
|||
@NotBlank(message = "tokenDto获取customerId为空", groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
|
|||
} |
|||
|
@ -0,0 +1,25 @@ |
|||
package com.epmet.resi.group.dto.act.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 009、签到记录列表 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/20 15:42 |
|||
*/ |
|||
@Data |
|||
public class SignInRecFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -144395799437468448L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
@NotBlank(message = "groupActId不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupActId; |
|||
private Integer pageNo; |
|||
private Integer pageSize; |
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.resi.group.dto.act.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* 015、点击分享链接,查看活动详情 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/21 11:16 |
|||
*/ |
|||
@Data |
|||
public class ActDetailByLinkResultDTO extends ActDetailResultDTO{ |
|||
/** |
|||
* 在组内:yes;不在组内:no |
|||
*/ |
|||
private String inGroup; |
|||
|
|||
private String invitationRecordId; |
|||
} |
@ -0,0 +1,177 @@ |
|||
package com.epmet.resi.group.dto.act.result; |
|||
|
|||
import com.epmet.resi.group.dto.topic.form.FileDTO; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 004、活动详情 返参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/19 19:24 |
|||
*/ |
|||
@Data |
|||
public class ActDetailResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 8912162789028312892L; |
|||
|
|||
|
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 小组id |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* 活动标题; |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 活动时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date startTime; |
|||
|
|||
/** |
|||
* 活动所属类别编码 |
|||
*/ |
|||
private String categoryCode; |
|||
|
|||
/** |
|||
* 上级类别编码 |
|||
*/ |
|||
private String parentCode; |
|||
|
|||
private String menuCode; |
|||
|
|||
/** |
|||
* 活动类别名称;eg:支部建设-三会一课 |
|||
*/ |
|||
private String allCategoryName; |
|||
|
|||
/** |
|||
* 活动地点 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 活动地点-经度 |
|||
*/ |
|||
private BigDecimal longitude; |
|||
|
|||
/** |
|||
* 活动地点-纬度 |
|||
*/ |
|||
private BigDecimal latitude; |
|||
|
|||
/** |
|||
* 应参加人数组长填入;此列也是应签到人数; |
|||
*/ |
|||
private Integer shouldAttend; |
|||
|
|||
/** |
|||
* 活动状态:已发布:published;已取消:canceled;已变更:changed;已关闭:closed |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 签到开始时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date signInStartTime; |
|||
|
|||
/** |
|||
* 签到截止时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date signInEndTime; |
|||
/** |
|||
* 是否填写总结?1:已填写;0:未填写 |
|||
*/ |
|||
private Integer summaryFlag; |
|||
|
|||
/** |
|||
* 取消时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date canceledTime; |
|||
|
|||
/** |
|||
* 关闭时间 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date closedTime; |
|||
|
|||
/** |
|||
* 活动发布人用户id |
|||
*/ |
|||
private String publishUserId; |
|||
|
|||
/** |
|||
* 内容列表 |
|||
*/ |
|||
private List<String> textList; |
|||
|
|||
/** |
|||
* 图片列表 |
|||
*/ |
|||
private List<String> imgArrayList; |
|||
|
|||
/** |
|||
* 图片列表,最多3张 |
|||
*/ |
|||
private List<FileDTO> imgList; |
|||
|
|||
//以下字段需要单独赋值
|
|||
/** |
|||
* 取消原因 |
|||
*/ |
|||
private String canceledReason; |
|||
|
|||
/** |
|||
* blank: 不显示; display:显示 |
|||
*/ |
|||
private String signInButton; |
|||
|
|||
/** |
|||
* 未签到时的描述,可能是签到时间未开始,可能是签到时间已经过 |
|||
*/ |
|||
private String signInDesc; |
|||
|
|||
/** |
|||
* member成员,leader群主 |
|||
*/ |
|||
private String userRole; |
|||
|
|||
/** |
|||
* 有签到后不可以修改活动时间:true可以修改,false不可以, |
|||
*/ |
|||
private Boolean startTimeEditFlag; |
|||
|
|||
/** |
|||
* 已签到人数(有人签到自动+1) |
|||
*/ |
|||
private Integer signedInNum; |
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 最后一次编辑时间;首次发布与CREATED_TIME一致 |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date changedTime; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.resi.group.dto.act.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 001、活动类别列表 返参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/19 13:14 |
|||
*/ |
|||
@Data |
|||
public class ActMenuResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 7376609450780826924L; |
|||
|
|||
/** |
|||
* 活动应参加人数 |
|||
*/ |
|||
private Integer shouldAttend; |
|||
|
|||
/** |
|||
* 一级菜单列表 |
|||
*/ |
|||
private List<CategoryDTO> categoryList; |
|||
|
|||
} |
@ -0,0 +1,33 @@ |
|||
package com.epmet.resi.group.dto.act.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 014、查看活动总结详情 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/21 14:17 |
|||
*/ |
|||
@Data |
|||
public class ActSummaryDetailResultDTO extends ActSummaryTemplateResultDTO{ |
|||
private static final long serialVersionUID = -6918035750154831223L; |
|||
|
|||
|
|||
/** |
|||
* 活动总结id |
|||
*/ |
|||
private String actSummaryId; |
|||
|
|||
/** |
|||
* 补充内容列表 |
|||
*/ |
|||
private List<String> extraTextList; |
|||
|
|||
/** |
|||
* 补充图片列表 |
|||
*/ |
|||
private List<String> extraImgList; |
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
package com.epmet.resi.group.dto.act.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 012、初始化活动总结模板 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/21 12:24 |
|||
*/ |
|||
@Data |
|||
public class ActSummaryTemplateResultDTO implements Serializable { |
|||
|
|||
/** |
|||
* 小组活动id |
|||
*/ |
|||
private String groupActId; |
|||
|
|||
/** |
|||
* 活动标题 |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 标签名称: 支部建设-三会一课 |
|||
*/ |
|||
private String allCategoryName; |
|||
|
|||
/** |
|||
* 活动时间:yyyy-MM-dd HH:mm |
|||
*/ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date startTime; |
|||
|
|||
/** |
|||
* 活动地点 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 应参加人数 |
|||
*/ |
|||
private Integer shouldAttend; |
|||
|
|||
/** |
|||
* 已签到人数 |
|||
*/ |
|||
private Integer signedInNum; |
|||
|
|||
/** |
|||
* 签到人员名单,、分隔开 |
|||
*/ |
|||
private String signedInUsers; |
|||
|
|||
/** |
|||
* 活动内容 |
|||
*/ |
|||
private List<String> textList; |
|||
|
|||
/** |
|||
* 活动图片 |
|||
*/ |
|||
private List<String> imgList; |
|||
|
|||
/** |
|||
* 是否填写总结:1:已填写;0:未填写 |
|||
*/ |
|||
private Integer summaryFlag; |
|||
|
|||
/** |
|||
* 签到用户id |
|||
*/ |
|||
private List<String> signedInUserIds; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.resi.group.dto.act.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 002、活动类别下拉框查询 返参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/19 14:18 |
|||
*/ |
|||
@Data |
|||
public class CategoryCodeResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 8615713807759844661L; |
|||
@JsonIgnore |
|||
private String customerId; |
|||
private String categoryCode; |
|||
private String categoryName; |
|||
private String parentCode; |
|||
private List<CategoryCodeResultDTO> children; |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.epmet.resi.group.dto.act.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 001、活动类别列表 返参-一级类别信息 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/19 13:28 |
|||
*/ |
|||
@Data |
|||
public class CategoryDTO implements Serializable { |
|||
private String menuCode; |
|||
private String categoryName; |
|||
private String parentCode; |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.epmet.resi.group.dto.act.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 006、活动评论列表查询 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/20 12:58 |
|||
*/ |
|||
@Data |
|||
public class CommentResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 6487668038520643604L; |
|||
private String commentId; |
|||
|
|||
private String commentContent; |
|||
|
|||
private String commentUserHeadPhoto; |
|||
|
|||
private String commentUserName; |
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") |
|||
private Date commentTime; |
|||
|
|||
private String commentUserId; |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.epmet.resi.group.dto.act.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 010、设置(修改)签到时间,生成签到码 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/20 13:46 |
|||
*/ |
|||
@Data |
|||
public class SetSignTimeResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -7444245554430563944L; |
|||
|
|||
private String groupActId; |
|||
private Date signInStartTime; |
|||
private Date signInEndTime; |
|||
} |
@ -0,0 +1,31 @@ |
|||
package com.epmet.resi.group.dto.act.result; |
|||
|
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 009、签到记录列表 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/20 15:43 |
|||
*/ |
|||
@Data |
|||
public class SignInRecResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -2847848186325667663L; |
|||
private Integer signedInNum; |
|||
private Integer shouldAttend; |
|||
private List<SignInDetail> list; |
|||
|
|||
@NoArgsConstructor |
|||
@Data |
|||
public static class SignInDetail { |
|||
private String signUserId; |
|||
private String signUserName; |
|||
private Date signInTime; |
|||
private String signInAddress; |
|||
} |
|||
} |
@ -0,0 +1,107 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.group; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 组内消息(话题、通知、活动)记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-22 |
|||
*/ |
|||
@Data |
|||
public class GroupMessageDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
private String groupId; |
|||
|
|||
/** |
|||
* 话题:topic; 通知:notice; 活动:act |
|||
*/ |
|||
private String type; |
|||
|
|||
/** |
|||
* 话题id , 通知id,活动id |
|||
*/ |
|||
private String messageId; |
|||
|
|||
/** |
|||
* 发布人用户id |
|||
*/ |
|||
private String publishUserId; |
|||
|
|||
/** |
|||
* 话题状态(讨论中 - discussing、 已屏蔽 - hidden、 已关闭 - closed) |
|||
* 活动状态:已发布:published;已取消:canceled;已变更:changed;已关闭:closed |
|||
* 通知:已发布:published |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 逻辑删除标识 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
private Date operateTime; |
|||
} |
@ -0,0 +1,101 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.group; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 建组设置 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-20 |
|||
*/ |
|||
@Data |
|||
public class ResiGroupSetupDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID,初始默认为default |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 默认小组头像 |
|||
*/ |
|||
private String logo; |
|||
|
|||
/** |
|||
* 小组名称 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 小组简介 |
|||
*/ |
|||
private String describe; |
|||
|
|||
/** |
|||
* 小组类型(ordinary:楼院小组 branch:支部小组) |
|||
*/ |
|||
private String groupType; |
|||
|
|||
/** |
|||
* 专用:dedicated;常用:common_used |
|||
*/ |
|||
private String category; |
|||
|
|||
/** |
|||
* 删除标记 0:未删除,1:已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,39 @@ |
|||
package com.epmet.resi.group.dto.group.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Min; |
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 所有小组查询-接口入参 |
|||
*/ |
|||
@Data |
|||
public class AllGroupListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
/** |
|||
* 网格Id |
|||
*/ |
|||
@NotBlank(message = "网格Id不能为空", groups = {AllGroupListFormDTO.GroupList.class}) |
|||
private String gridId; |
|||
/** |
|||
* 请求页码 |
|||
*/ |
|||
@Min(1) |
|||
private int pageNo = 1; |
|||
/** |
|||
* 每页多少条数据 |
|||
*/ |
|||
private int pageSize = 20; |
|||
|
|||
/** |
|||
* token中用户Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
public interface GroupList { |
|||
} |
|||
} |
@ -0,0 +1,41 @@ |
|||
package com.epmet.resi.group.dto.group.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 组员自主退群 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/4/30 15:06 |
|||
*/ |
|||
@Data |
|||
public class MemExitGroupFormDTO implements Serializable { |
|||
|
|||
|
|||
private static final long serialVersionUID = 3614704443675949069L; |
|||
|
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
/** |
|||
* 小组ID |
|||
*/ |
|||
@NotBlank(message = "小组Id不能为空", groups = AddUserInternalGroup.class) |
|||
private String groupId; |
|||
|
|||
|
|||
/** |
|||
* 当前客户id |
|||
*/ |
|||
@NotBlank(message = "tokenDto获取customerId不能为空", groups = AddUserInternalGroup.class) |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 当前用户id |
|||
*/ |
|||
@NotBlank(message = "tokenDto获取userId不能为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
} |
@ -0,0 +1,50 @@ |
|||
package com.epmet.resi.group.dto.group.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 所有小组查询-接口返参 |
|||
*/ |
|||
@Data |
|||
public class AllGroupListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -155229599412911489L; |
|||
/** |
|||
* 群组id |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* 群组头像 |
|||
*/ |
|||
private String groupHeadPhoto; |
|||
|
|||
/** |
|||
* 群组名称 |
|||
*/ |
|||
private String groupName; |
|||
|
|||
/** |
|||
* 成员总数 |
|||
*/ |
|||
private Integer totalMember; |
|||
|
|||
/** |
|||
* 党员总数 |
|||
*/ |
|||
private Integer totalPartyMember; |
|||
|
|||
/** |
|||
* under_auditting审核中、rejected已拒绝的前端显示加入 |
|||
*/ |
|||
private String status=""; |
|||
|
|||
/** |
|||
* 小组类型(ordinary:楼院小组 branch:支部小组) |
|||
*/ |
|||
private String groupType; |
|||
|
|||
} |
@ -0,0 +1,40 @@ |
|||
package com.epmet.resi.group.dto.group.result; |
|||
|
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class GroupTypeListResultDTO { |
|||
|
|||
/** |
|||
* 专用小组 |
|||
*/ |
|||
private List<SetUp> dedicatedGroup; |
|||
/** |
|||
* 常用小组 |
|||
*/ |
|||
private List<SetUp> commonUsedGroup; |
|||
|
|||
@NoArgsConstructor |
|||
@Data |
|||
public static class SetUp { |
|||
/** |
|||
* 小组类型(ordinary:楼院小组 branch:支部小组) |
|||
*/ |
|||
private String groupType; |
|||
/** |
|||
* 默认头像地址 |
|||
*/ |
|||
private String defaultGroupHead; |
|||
/** |
|||
* 小组介绍 |
|||
*/ |
|||
private String introduction; |
|||
/** |
|||
* 小组名称 |
|||
*/ |
|||
private String groupTypeName; |
|||
} |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.resi.group.dto.group.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/4/21 上午9:43 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class UserReadFlagResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -5727870985731706332L; |
|||
|
|||
/** |
|||
* 活动,通知 ID |
|||
*/ |
|||
private String id; |
|||
|
|||
private String userId; |
|||
|
|||
/** |
|||
* 阅读状态,read:已读,un_read:未读 |
|||
*/ |
|||
private String readFlag; |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.epmet.resi.group.dto.group.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/4/21 上午9:43 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class UserUnReadResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -5727870085731706332L; |
|||
|
|||
/** |
|||
* 活动,通知 ID |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 未读数量 |
|||
*/ |
|||
private Integer unRead; |
|||
} |
@ -0,0 +1,107 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.invitation; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 分享记录(话题、通知...后续支持增加) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-16 |
|||
*/ |
|||
@Data |
|||
public class InvitationRecordDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 小组所属的网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 小组id |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* act:活动;notice:通知 |
|||
*/ |
|||
private String sourceType; |
|||
|
|||
/** |
|||
* 活动id,或者通知id.... |
|||
*/ |
|||
private String sourceId; |
|||
|
|||
/** |
|||
* 分享人id |
|||
*/ |
|||
private String shareUserId; |
|||
|
|||
/** |
|||
* 分享内容 |
|||
*/ |
|||
private String inviteContent; |
|||
|
|||
/** |
|||
* 删除标识 0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.epmet.resi.group.dto.invitation.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 根据通知分享Id查询数据-接口入参 |
|||
*/ |
|||
@Data |
|||
public class GetInvitationFormDTO { |
|||
|
|||
/** |
|||
* 分享Id |
|||
*/ |
|||
@NotBlank(message = "分享Id不能为空",groups = {GetInvitationFormDTO.Invitation.class}) |
|||
private String invitationRecordId; |
|||
/** |
|||
* token中用户Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
public interface Invitation{} |
|||
} |
@ -0,0 +1,33 @@ |
|||
package com.epmet.resi.group.dto.invitation.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 小组通知、活动分享-接口入参 |
|||
*/ |
|||
@Data |
|||
public class ShareFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 7069116393380944951L; |
|||
/** |
|||
* 通知或活动Id |
|||
*/ |
|||
@NotBlank(message="通知或活动Id不能为空",groups = {ShareFormDTO.Add.class}) |
|||
private String id; |
|||
/** |
|||
* 类型(notice:通知 act:活动) |
|||
*/ |
|||
@NotBlank(message = "类型(notice:通知 act:活动)不能为空",groups = {ShareFormDTO.UserShow.class}) |
|||
private String type; |
|||
/** |
|||
* token中用户Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
public interface Add{} |
|||
public interface UserShow extends CustomerClientShowGroup {} |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.epmet.resi.group.dto.invitation.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 根据通知分享Id查询数据-接口返参 |
|||
*/ |
|||
@Data |
|||
public class GetInvitationResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 6136787210623326830L; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
/** |
|||
* 网格Id |
|||
*/ |
|||
private String gridId; |
|||
/** |
|||
* 小组Id |
|||
*/ |
|||
private String groupId; |
|||
/** |
|||
* 通知或活动Id |
|||
*/ |
|||
private String sourceId; |
|||
/** |
|||
* notice:通知 act:活动 |
|||
*/ |
|||
private String sourceType; |
|||
/** |
|||
* notice:通知 act:活动 |
|||
*/ |
|||
private String shareUserId; |
|||
/** |
|||
* 当前人员是否在组内:yes;不在组内:no |
|||
*/ |
|||
private String inGroup = "yes"; |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.resi.group.dto.invitation.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 小组通知、活动分享-接口返参 |
|||
*/ |
|||
@Data |
|||
public class ShareResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 6136787210623326830L; |
|||
|
|||
/** |
|||
* 分享Id |
|||
*/ |
|||
private String invitationRecordId; |
|||
} |
@ -0,0 +1,121 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.notice; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 小组通知附件表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-19 |
|||
*/ |
|||
@Data |
|||
public class NoticeAttachmentDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 通知Id |
|||
*/ |
|||
private String noticeId; |
|||
|
|||
/** |
|||
* 文件名 |
|||
*/ |
|||
private String fileName; |
|||
|
|||
/** |
|||
* 附件名(uuid随机生成) |
|||
*/ |
|||
private String attachmentName; |
|||
|
|||
/** |
|||
* 文件大小,单位b |
|||
*/ |
|||
private Integer attachmentSize; |
|||
|
|||
/** |
|||
* 文件格式(JPG、PNG、PDF、JPEG、BMP、MP4、WMA、M4A、MP3、DOC、DOCX、XLS) |
|||
*/ |
|||
private String attachmentFormat; |
|||
|
|||
/** |
|||
* 附件类型((图片 - image、 视频 - video、 语音 - voice、 文档 - doc)) |
|||
*/ |
|||
private String attachmentType; |
|||
|
|||
/** |
|||
* 附件地址 |
|||
*/ |
|||
private String attachmentUrl; |
|||
|
|||
/** |
|||
* 排序字段 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 语音或视频时长,秒 |
|||
*/ |
|||
private Integer duration; |
|||
|
|||
/** |
|||
* 删除标记 0:未删除,1:已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,116 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.notice; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 小组通知表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-19 |
|||
*/ |
|||
@Data |
|||
public class NoticeDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织机构Id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 小组所属网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 小组Id |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* 通知标题 |
|||
*/ |
|||
private String title; |
|||
|
|||
/** |
|||
* 通知内容 |
|||
*/ |
|||
private String content; |
|||
|
|||
/** |
|||
* 是否变更过(是:yes 否:no) |
|||
*/ |
|||
private String isChange; |
|||
|
|||
/** |
|||
* 通知变更时间,初始值为首次创建时间 |
|||
*/ |
|||
private Date changeTime; |
|||
|
|||
/** |
|||
* 通知过期时间(此时间需大于变更时间) |
|||
*/ |
|||
private Date expirationTime; |
|||
|
|||
/** |
|||
* 删除标记 0:未删除,1:已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,106 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.resi.group.dto.notice; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 小组通知组成员阅读记录表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-04-19 |
|||
*/ |
|||
@Data |
|||
public class NoticeReadRecordDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 小组所属网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 小组id |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* 通知Id |
|||
*/ |
|||
private String noticeId; |
|||
|
|||
/** |
|||
* 用户id |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* (通知过期前的阅读状态)read已读、un_read未读 |
|||
*/ |
|||
private String readFlag; |
|||
|
|||
/** |
|||
* (通知过期后的阅读状态)已读:read未读:un_read; |
|||
*/ |
|||
private String viewDetail; |
|||
|
|||
/** |
|||
* 删除标识 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,62 @@ |
|||
package com.epmet.resi.group.dto.notice.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 小组通知保存-接口入参 |
|||
*/ |
|||
@Data |
|||
public class AddNoticeFormDTO { |
|||
|
|||
/** |
|||
* 小组Id |
|||
*/ |
|||
@NotBlank(message = "小组Id不能为空",groups = {AddNoticeFormDTO.Add.class}) |
|||
private String groupId; |
|||
/** |
|||
* 通知标题 |
|||
*/ |
|||
@NotBlank(message = "通知标题不能为空",groups = {AddNoticeFormDTO.AddUserShow.class}) |
|||
@Length(max = 20, message = "通知标题不能超过20个字符",groups = {AddNoticeFormDTO.AddUserShow.class}) |
|||
private String title; |
|||
/** |
|||
* 通知内容 |
|||
*/ |
|||
@NotBlank(message = "通知内容不能为空",groups = {AddNoticeFormDTO.AddUserShow.class}) |
|||
@Length(max = 1000, message = "通知内容不能超过1000个字符",groups = {AddNoticeFormDTO.AddUserShow.class}) |
|||
private String content; |
|||
/** |
|||
* 通知过期时间(此时间需大于变更时间) |
|||
*/ |
|||
@NotNull(message = "过期时间不能为空",groups = AddNoticeFormDTO.AddUserShow.class) |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date expirationTime; |
|||
/** |
|||
* 图片附件集合 |
|||
*/ |
|||
private List<NoticeFileDTO> imageList; |
|||
/** |
|||
* 文件附件url集合 |
|||
*/ |
|||
private List<NoticeFileDTO> docList; |
|||
/** |
|||
* token中用户Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
public interface Add{} |
|||
public interface AddUserShow extends CustomerClientShowGroup {} |
|||
|
|||
|
|||
} |
@ -0,0 +1,62 @@ |
|||
package com.epmet.resi.group.dto.notice.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 小组通知编辑-接口入参 |
|||
*/ |
|||
@Data |
|||
public class EditNoticeFormDTO { |
|||
|
|||
/** |
|||
* 通知Id |
|||
*/ |
|||
@NotBlank(message = "通知Id不能为空",groups = {EditNoticeFormDTO.Edit.class}) |
|||
private String noticeId; |
|||
/** |
|||
* 通知标题 |
|||
*/ |
|||
@NotBlank(message = "通知标题不能为空",groups = {EditNoticeFormDTO.EditUserShow.class}) |
|||
@Length(max = 20, message = "通知标题不能超过20个字符",groups = {EditNoticeFormDTO.EditUserShow.class}) |
|||
private String title; |
|||
/** |
|||
* 通知内容 |
|||
*/ |
|||
@NotBlank(message = "通知内容不能为空",groups = {EditNoticeFormDTO.EditUserShow.class}) |
|||
@Length(max = 1000, message = "通知内容不能超过1000个字符",groups = {EditNoticeFormDTO.EditUserShow.class}) |
|||
private String content; |
|||
/** |
|||
* 通知过期时间(此时间需大于变更时间) |
|||
*/ |
|||
@NotNull(message = "过期时间不能为空",groups = AddNoticeFormDTO.AddUserShow.class) |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date expirationTime; |
|||
/** |
|||
* 图片附件集合 |
|||
*/ |
|||
private List<NoticeFileDTO> imageList; |
|||
/** |
|||
* 文件附件url集合 |
|||
*/ |
|||
private List<NoticeFileDTO> docList; |
|||
|
|||
/** |
|||
* token中用户Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
public interface Edit{} |
|||
public interface EditUserShow extends CustomerClientShowGroup {} |
|||
|
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.epmet.resi.group.dto.notice.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 小组通知编辑-接口入参 |
|||
*/ |
|||
@Data |
|||
public class NoticeCommentFormDTO { |
|||
|
|||
/** |
|||
* 通知Id |
|||
*/ |
|||
@NotBlank(message = "通知Id不能为空",groups = {NoticeCommentFormDTO.Comment.class}) |
|||
private String noticeId; |
|||
/** |
|||
* 评论内容300 |
|||
*/ |
|||
@NotBlank(message = "评论内容不能为空",groups = {NoticeCommentFormDTO.UserShow.class}) |
|||
@Length(max = 20, message = "评论内容不能超过300个字符",groups = {NoticeCommentFormDTO.UserShow.class}) |
|||
private String commentContent; |
|||
|
|||
/** |
|||
* token中用户Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
public interface Comment{} |
|||
public interface UserShow extends CustomerClientShowGroup {} |
|||
} |
@ -0,0 +1,33 @@ |
|||
package com.epmet.resi.group.dto.notice.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Min; |
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 通知评论列表查询-接口入参 |
|||
*/ |
|||
@Data |
|||
public class NoticeCommentListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
/** |
|||
* 通知Id |
|||
*/ |
|||
@NotBlank(message = "通知Id不能为空",groups = {NoticeCommentListFormDTO.CommentList.class}) |
|||
private String noticeId; |
|||
/** |
|||
* 请求页码 |
|||
* */ |
|||
@Min(1) |
|||
private int pageNo = 1; |
|||
/** |
|||
* 每页多少条数据 |
|||
* */ |
|||
private int pageSize = 20; |
|||
|
|||
public interface CommentList{} |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.epmet.resi.group.dto.notice.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 小组通知详情-接口入参 |
|||
*/ |
|||
@Data |
|||
public class NoticeDetailFormDTO { |
|||
|
|||
/** |
|||
* 通知Id |
|||
*/ |
|||
@NotBlank(message = "通知Id不能为空",groups = {NoticeDetailFormDTO.Detail.class}) |
|||
private String noticeId; |
|||
|
|||
public interface Detail{} |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.epmet.resi.group.dto.notice.form; |
|||
|
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 小组通知保存、变更-接口入参 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class NoticeFileDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3930520724652521552L; |
|||
private String name; |
|||
private String url; |
|||
private String type; |
|||
private String format; |
|||
private Integer size; |
|||
private Integer duration; |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.epmet.resi.group.dto.notice.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 通知已读未读列表查询-接口入参 |
|||
*/ |
|||
@Data |
|||
public class NoticeReadListFormDTO { |
|||
|
|||
/** |
|||
* 通知Id |
|||
*/ |
|||
@NotBlank(message = "通知Id不能为空",groups = {NoticeReadListFormDTO.List.class}) |
|||
private String noticeId; |
|||
|
|||
public interface List{} |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.epmet.resi.group.dto.notice.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 通知已读未读列表查询-接口入参 |
|||
*/ |
|||
@Data |
|||
public class ReadTypeFormDTO { |
|||
|
|||
/** |
|||
* 通知Id |
|||
*/ |
|||
@NotBlank(message = "通知Id不能为空",groups = {ReadTypeFormDTO.Read.class}) |
|||
private String noticeId; |
|||
|
|||
/** |
|||
* token中用户Id |
|||
*/ |
|||
private String userId; |
|||
|
|||
public interface Read{} |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.resi.group.dto.notice.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/4/21 下午4:17 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class UnReadListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 2312033892813352767L; |
|||
|
|||
public interface UnReadListForm{} |
|||
|
|||
@NotBlank(message = "小组ID不能为空",groups = UnReadListForm.class) |
|||
private String groupId; |
|||
|
|||
private String userId; |
|||
} |
@ -0,0 +1,45 @@ |
|||
package com.epmet.resi.group.dto.notice.result; |
|||
|
|||
import com.alibaba.fastjson.annotation.JSONField; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @Author sun |
|||
* @Description 通知评论列表查询-接口返参 |
|||
*/ |
|||
@Data |
|||
public class NoticeCommentListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 评论Id |
|||
* */ |
|||
private String noticeCommentId; |
|||
/** |
|||
* 评论内容 |
|||
* */ |
|||
private String commentContent; |
|||
/** |
|||
* 评论者头像 |
|||
* */ |
|||
private String commentUserHeadPhoto; |
|||
/** |
|||
* 评论者姓名 |
|||
* */ |
|||
private String commentUserName; |
|||
/** |
|||
* 评论时间 yyyy-MM-dd HH:mm |
|||
* */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
|||
private Date commentTime; |
|||
/** |
|||
* 用户Id 评论者Id |
|||
* */ |
|||
private String userId; |
|||
|
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue