86 changed files with 2809 additions and 125 deletions
@ -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,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,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,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,47 @@ |
|||||
|
package com.epmet.resi.group.dto.act.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
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; |
||||
|
/** |
||||
|
* 签到地点-经度 |
||||
|
*/ |
||||
|
private BigDecimal longitude; |
||||
|
|
||||
|
/** |
||||
|
* 签到地点-纬度 |
||||
|
*/ |
||||
|
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; |
||||
|
} |
@ -1,10 +1,149 @@ |
|||||
package com.epmet.resi.group.dto.act.result; |
package com.epmet.resi.group.dto.act.result; |
||||
|
|
||||
|
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 |
* @author yinzuomei@elink-cn.com |
||||
* @date 2021/4/19 19:24 |
* @date 2021/4/19 19:24 |
||||
*/ |
*/ |
||||
public class ActDetailResultDTO { |
@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; |
||||
|
|
||||
|
/** |
||||
|
* 活动类别名称;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> imgList; |
||||
|
|
||||
|
//以下字段需要单独赋值
|
||||
|
/** |
||||
|
* 取消原因 |
||||
|
*/ |
||||
|
private String canceledReason; |
||||
|
|
||||
|
/** |
||||
|
* blank: 不显示; display:显示 |
||||
|
*/ |
||||
|
private String signInButton; |
||||
|
|
||||
|
/** |
||||
|
* 未签到时的描述,可能是签到时间未开始,可能是签到时间已经过 |
||||
|
*/ |
||||
|
private String signInDesc; |
||||
|
|
||||
|
/** |
||||
|
* member成员,leader群主 |
||||
|
*/ |
||||
|
private String userRole; |
||||
|
|
||||
|
/** |
||||
|
* 有签到后不可以修改活动时间:true可以修改,false不可以, |
||||
|
*/ |
||||
|
private Boolean startTimeEditFlag; |
||||
|
|
||||
} |
} |
||||
|
@ -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,22 @@ |
|||||
|
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; |
||||
|
private String signInCodeUrl; |
||||
|
} |
@ -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,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,34 @@ |
|||||
|
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; |
||||
|
/** |
||||
|
* 每页多少条数据 |
||||
|
*/ |
||||
|
private int pageSize = 20; |
||||
|
|
||||
|
public interface GroupList { |
||||
|
} |
||||
|
} |
@ -0,0 +1,51 @@ |
|||||
|
package com.epmet.resi.group.dto.group.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 推荐小组查询返参 |
||||
|
* @Author yinzuomei |
||||
|
* @Date 2020/3/28 17:11 |
||||
|
*/ |
||||
|
@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,28 @@ |
|||||
|
package com.epmet.resi.group.dto.notice.form; |
||||
|
|
||||
|
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.Comment.class}) |
||||
|
@Length(max = 20, message = "评论内容不能超过300个字符") |
||||
|
private String commentContent; |
||||
|
|
||||
|
public interface Comment{} |
||||
|
} |
@ -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; |
||||
|
/** |
||||
|
* 每页多少条数据 |
||||
|
* */ |
||||
|
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 ReadTypeFormDTO { |
||||
|
|
||||
|
/** |
||||
|
* 通知Id |
||||
|
*/ |
||||
|
@NotBlank(message = "通知Id不能为空",groups = {ReadTypeFormDTO.Read.class}) |
||||
|
private String noticeId; |
||||
|
|
||||
|
public interface Read{} |
||||
|
} |
@ -0,0 +1,44 @@ |
|||||
|
package com.epmet.resi.group.dto.notice.result; |
||||
|
|
||||
|
import com.alibaba.fastjson.annotation.JSONField; |
||||
|
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 |
||||
|
* */ |
||||
|
@JSONField(format="yyyy-MM-dd HH:mm") |
||||
|
private Date commentTime; |
||||
|
/** |
||||
|
* 用户Id 评论者Id |
||||
|
* */ |
||||
|
private String userId; |
||||
|
|
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package com.epmet.resi.group.dto.topic.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/4/20 下午2:23 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GetLatestV2FormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -5212709032157867124L; |
||||
|
|
||||
|
public interface GetLatestV2Form{} |
||||
|
|
||||
|
@NotBlank(message = "小组ID不能为空",groups = GetLatestV2Form.class) |
||||
|
private String groupId; |
||||
|
|
||||
|
private String userId; |
||||
|
} |
@ -0,0 +1,47 @@ |
|||||
|
package com.epmet.resi.group.dto.topic.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/4/20 下午2:34 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class GetLatestV2ResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1386600583326358070L; |
||||
|
|
||||
|
/** |
||||
|
* 当前人员组内角色(member成员,leader群主) |
||||
|
*/ |
||||
|
private String userRole; |
||||
|
|
||||
|
/** |
||||
|
* 小组类型(ordinary:楼院小组 branch:支部小组) |
||||
|
*/ |
||||
|
private String groupType; |
||||
|
|
||||
|
/** |
||||
|
* 是否显示通知按钮 |
||||
|
*/ |
||||
|
private String noticeBut; |
||||
|
|
||||
|
/** |
||||
|
* 是否显示活动按钮 |
||||
|
*/ |
||||
|
private String actBut; |
||||
|
|
||||
|
/** |
||||
|
* 是否存在未读消息 |
||||
|
*/ |
||||
|
private Boolean unReadNews; |
||||
|
|
||||
|
/** |
||||
|
* 近十条数据 |
||||
|
*/ |
||||
|
private List<LatestTenResultDTO> list; |
||||
|
} |
@ -0,0 +1,104 @@ |
|||||
|
package com.epmet.resi.group.dto.topic.result; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.NumConstant; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/4/20 下午2:45 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class LatestTenResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -8447212650446365613L; |
||||
|
|
||||
|
/** |
||||
|
* 话题、通知、活动Id |
||||
|
*/ |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 话题、通知、活动Id发布人的id |
||||
|
*/ |
||||
|
private String userId; |
||||
|
|
||||
|
/** |
||||
|
* 发布者的全称(街道-姓氏先生/女士)【专项组显示真实名】 |
||||
|
*/ |
||||
|
private String releaseUserName; |
||||
|
|
||||
|
/** |
||||
|
* 话题发布者的头像Url |
||||
|
*/ |
||||
|
private String releaseUserHeadPhoto; |
||||
|
|
||||
|
/** |
||||
|
* 发布时间yyyy-MM-dd HH:mm |
||||
|
*/ |
||||
|
private String releaseTimed; |
||||
|
|
||||
|
/** |
||||
|
* 内容 |
||||
|
*/ |
||||
|
private String content; |
||||
|
|
||||
|
/** |
||||
|
* 话题状态(discussing进行中、closed已关闭) |
||||
|
*/ |
||||
|
private String status; |
||||
|
|
||||
|
/** |
||||
|
* 是否本人 |
||||
|
*/ |
||||
|
private String releaseUserFlag; |
||||
|
|
||||
|
/** |
||||
|
* 如果有图片,后台只返回第一张,没有图片此列为空 |
||||
|
*/ |
||||
|
private String firstPhoto; |
||||
|
|
||||
|
/** |
||||
|
* 议题id |
||||
|
*/ |
||||
|
private String issueId; |
||||
|
|
||||
|
/** |
||||
|
* 是否被转为议题true,false |
||||
|
*/ |
||||
|
private Boolean shiftIssueFlag; |
||||
|
|
||||
|
/** |
||||
|
* 数据类型(topic:话题 notice:通知 act:活动) |
||||
|
*/ |
||||
|
private String contentType; |
||||
|
|
||||
|
/** |
||||
|
* 本人已读未读状态(read已读 unread未读) |
||||
|
*/ |
||||
|
private String readOrUnRead; |
||||
|
|
||||
|
/** |
||||
|
* 通知或活动未读人员数 |
||||
|
*/ |
||||
|
private Integer unReadCount; |
||||
|
|
||||
|
public LatestTenResultDTO() { |
||||
|
this.id = ""; |
||||
|
this.userId = ""; |
||||
|
this.releaseUserName = ""; |
||||
|
this.releaseUserHeadPhoto = ""; |
||||
|
this.releaseTimed = ""; |
||||
|
this.content = ""; |
||||
|
this.status = ""; |
||||
|
this.releaseUserFlag = ""; |
||||
|
this.firstPhoto = ""; |
||||
|
this.issueId = ""; |
||||
|
this.shiftIssueFlag = false; |
||||
|
this.contentType = ""; |
||||
|
this.readOrUnRead = ""; |
||||
|
this.unReadCount = NumConstant.ZERO; |
||||
|
} |
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
/** |
||||
|
* 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.modules.group.controller; |
||||
|
|
||||
|
import com.epmet.modules.group.service.ResiGroupSetupService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 建组设置 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-04-20 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("resigroupsetup") |
||||
|
public class ResiGroupSetupController { |
||||
|
|
||||
|
@Autowired |
||||
|
private ResiGroupSetupService resiGroupSetupService; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
/** |
||||
|
* 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.modules.group.dao; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.modules.group.entity.ResiGroupSetupEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
/** |
||||
|
* 建组设置 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-04-20 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface ResiGroupSetupDao extends BaseDao<ResiGroupSetupEntity> { |
||||
|
|
||||
|
} |
@ -0,0 +1,71 @@ |
|||||
|
/** |
||||
|
* 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.modules.group.entity; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* 建组设置 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-04-20 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("resi_group_setup") |
||||
|
public class ResiGroupSetupEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户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,0 +1,47 @@ |
|||||
|
/** |
||||
|
* 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.modules.group.redis; |
||||
|
|
||||
|
import com.epmet.commons.tools.redis.RedisUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* 建组设置 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-04-20 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class ResiGroupSetupRedis { |
||||
|
@Autowired |
||||
|
private RedisUtils redisUtils; |
||||
|
|
||||
|
public void delete(Object[] ids) { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public void set(){ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public String get(String id){ |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
/** |
||||
|
* 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.modules.group.service; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.modules.group.entity.ResiGroupSetupEntity; |
||||
|
|
||||
|
/** |
||||
|
* 建组设置 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-04-20 |
||||
|
*/ |
||||
|
public interface ResiGroupSetupService extends BaseService<ResiGroupSetupEntity> { |
||||
|
|
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
/** |
||||
|
* 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.modules.group.service.impl; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.modules.group.dao.ResiGroupSetupDao; |
||||
|
import com.epmet.modules.group.entity.ResiGroupSetupEntity; |
||||
|
import com.epmet.modules.group.redis.ResiGroupSetupRedis; |
||||
|
import com.epmet.modules.group.service.ResiGroupSetupService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* 建组设置 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-04-20 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class ResiGroupSetupServiceImpl extends BaseServiceImpl<ResiGroupSetupDao, ResiGroupSetupEntity> implements ResiGroupSetupService { |
||||
|
|
||||
|
@Autowired |
||||
|
private ResiGroupSetupRedis resiGroupSetupRedis; |
||||
|
|
||||
|
} |
@ -0,0 +1,7 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.ResiGroupSetupDao"> |
||||
|
|
||||
|
|
||||
|
</mapper> |
Loading…
Reference in new issue