From daeb20def142706671a25d4a89086d2370fac189 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Tue, 23 Jun 2020 13:22:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E8=AE=B2=E5=9D=9B=C2=A0-?= =?UTF-8?q?=C2=A0=E5=B1=85=E6=B0=91=E7=AB=AF=E8=8E=B7=E5=8F=96=E7=A4=BE?= =?UTF-8?q?=E5=8C=BA=E8=AE=B2=E5=9D=9B=E5=88=97=E8=A1=A8DTO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epdc/dto/activity/ActivityInfoDTO.java | 10 ++ .../activity/form/ActivityInfoFormDTO.java | 69 ++++++++++++++ .../result/ActivityInfoResultDTO.java | 91 +++++++++++++++++++ 3 files changed, 170 insertions(+) create mode 100644 epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/form/ActivityInfoFormDTO.java create mode 100644 epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/result/ActivityInfoResultDTO.java diff --git a/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/ActivityInfoDTO.java b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/ActivityInfoDTO.java index ea1465b..cba76b9 100644 --- a/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/ActivityInfoDTO.java +++ b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/ActivityInfoDTO.java @@ -64,6 +64,11 @@ public class ActivityInfoDTO implements Serializable { */ private String categoryName; + /** + * 前端样式 + */ + private String frontStyle; + /** * 报名开始时间 */ @@ -114,6 +119,11 @@ public class ActivityInfoDTO implements Serializable { */ private Integer signUpNum; + /** + * 当前用户是否已报名此活动 + */ + private String signUpFlag; + /** * 联系人 */ diff --git a/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/form/ActivityInfoFormDTO.java b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/form/ActivityInfoFormDTO.java new file mode 100644 index 0000000..900260e --- /dev/null +++ b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/form/ActivityInfoFormDTO.java @@ -0,0 +1,69 @@ +/** + * Copyright 2018 人人开源 https://www.renren.io + *

+ * 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. + *

+ * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.dto.activity.form; + +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +/** + * 社区活动信息表 + * + * @author zhangyuan qu@elink-cn.com + * @since v1.0.0 2020-06-22 + */ +@Data +public class ActivityInfoFormDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 用户ID + */ + private String userId; + + // ---------------------- 前端上送字段 + /** + * 页码 + */ + @NotNull(message = "页码不能为空") + private Integer pageIndex; + + /** + * 页容量 + */ + @NotNull(message = "页容量不能为空") + private Integer pageSize; + + /** + * 第一页查询发起时的时间 + */ + @NotBlank(message = "查询时间戳不能为空") + private String timestamp; + + /** + * 活动发布状态(0-下架,1上架) + */ + @NotBlank(message = "活动发布状态不能为空") + private String activityState; + +} \ No newline at end of file diff --git a/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/result/ActivityInfoResultDTO.java b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/result/ActivityInfoResultDTO.java new file mode 100644 index 0000000..a59ae42 --- /dev/null +++ b/epdc-cloud-property-client/src/main/java/com/elink/esua/epdc/dto/activity/result/ActivityInfoResultDTO.java @@ -0,0 +1,91 @@ +/** + * Copyright 2018 人人开源 https://www.renren.io + *

+ * 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. + *

+ * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.dto.activity.result; + +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * 社区活动信息表 + * + * @author zhangyuan qu@elink-cn.com + * @since v1.0.0 2020-06-22 + */ +@Data +public class ActivityInfoResultDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + private String id; + + /** + * 标题 + */ + private String title; + + /** + * 活动头图 + */ + private String headPic; + + /** + * 前端样式 + */ + private String frontStyle; + + /** + * 所属类别名称 + */ + private String categoryName; + + /** + * 活动开始时间 + */ + private Date actStartTime; + + /** + * 活动结束时间 + */ + private Date actEndTime; + + /** + * 是否限制名额(0-不限名额,1-固定名额) + */ + private String actQuotaFlag; + + /** + * 活动名额 + */ + private Integer actQuota; + + /** + * 已报名人数 + */ + private Integer signUpNum; + + /** + * 当前用户是否已报名此活动 + */ + private String signUpFlag; + +} \ No newline at end of file