13 changed files with 1412 additions and 5 deletions
@ -0,0 +1,68 @@ |
|||||
|
/** |
||||
|
* 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.dto.form.resi; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.Min; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 活动列表(标准) 入参 |
||||
|
* |
||||
|
* @author zhangyong |
||||
|
* @since v1.0.0 2020-07-20 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ResiActBaseFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
//>>>>>>>>>>>>>>>>>校验分组开始>>>>>>>>>>>>>>>>>>>>>
|
||||
|
/** |
||||
|
* 添加用户操作的内部异常分组 |
||||
|
* 出现错误会提示给前端7000错误码,返回信息为:服务器开小差... |
||||
|
*/ |
||||
|
public interface AddUserInternalGroup {} |
||||
|
|
||||
|
// <<<<<<<<<<<<<<<<<<<校验分组结束<<<<<<<<<<<<<<<<<<<<<<<<
|
||||
|
|
||||
|
/** |
||||
|
* 客户Id |
||||
|
*/ |
||||
|
@NotBlank(message = "客户Id不能为空", groups = { AddUserInternalGroup.class }) |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 页码,从1开始 |
||||
|
*/ |
||||
|
@Min(value = 1, message = "页码必须大于0", groups = { AddUserInternalGroup.class }) |
||||
|
private Integer pageNo; |
||||
|
|
||||
|
/** |
||||
|
* 页容量,默认20页 |
||||
|
*/ |
||||
|
@Min(value = 1, message = "每页条数必须大于必须大于0", groups = { AddUserInternalGroup.class }) |
||||
|
private Integer pageSize; |
||||
|
|
||||
|
/** |
||||
|
* 用户id |
||||
|
*/ |
||||
|
private String userId; |
||||
|
} |
@ -0,0 +1,57 @@ |
|||||
|
/** |
||||
|
* 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.dto.form.resi; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.Min; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 最新活动列表 入参 |
||||
|
* |
||||
|
* @author zhangyong |
||||
|
* @since v1.0.0 2020-07-21 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ResiLatestActFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
//>>>>>>>>>>>>>>>>>校验分组开始>>>>>>>>>>>>>>>>>>>>>
|
||||
|
/** |
||||
|
* 添加用户操作的内部异常分组 |
||||
|
* 出现错误会提示给前端7000错误码,返回信息为:服务器开小差... |
||||
|
*/ |
||||
|
public interface AddUserInternalGroup {} |
||||
|
|
||||
|
// <<<<<<<<<<<<<<<<<<<校验分组结束<<<<<<<<<<<<<<<<<<<<<<<<
|
||||
|
|
||||
|
/** |
||||
|
* 客户Id |
||||
|
*/ |
||||
|
@NotBlank(message = "客户Id不能为空", groups = { AddUserInternalGroup.class }) |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 页容量,默认20页 |
||||
|
*/ |
||||
|
@Min(value = 1, message = "每页条数必须大于必须大于0", groups = { AddUserInternalGroup.class }) |
||||
|
private Integer num; |
||||
|
} |
@ -0,0 +1,62 @@ |
|||||
|
/** |
||||
|
* 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.dto.form.resi; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.Min; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 我的活动列表 入参 |
||||
|
* |
||||
|
* @author zhangyong |
||||
|
* @since v1.0.0 2020-07-20 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ResiMyActFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
//>>>>>>>>>>>>>>>>>校验分组开始>>>>>>>>>>>>>>>>>>>>>
|
||||
|
/** |
||||
|
* 添加用户操作的内部异常分组 |
||||
|
* 出现错误会提示给前端7000错误码,返回信息为:服务器开小差... |
||||
|
*/ |
||||
|
public interface AddUserInternalGroup {} |
||||
|
|
||||
|
// <<<<<<<<<<<<<<<<<<<校验分组结束<<<<<<<<<<<<<<<<<<<<<<<<
|
||||
|
|
||||
|
/** |
||||
|
* 页码,从1开始 |
||||
|
*/ |
||||
|
@Min(value = 1, message = "页码必须大于0", groups = { AddUserInternalGroup.class }) |
||||
|
private Integer pageNo; |
||||
|
|
||||
|
/** |
||||
|
* 页容量,默认20页 |
||||
|
*/ |
||||
|
@Min(value = 1, message = "每页条数必须大于必须大于0", groups = { AddUserInternalGroup.class }) |
||||
|
private Integer pageSize; |
||||
|
|
||||
|
/** |
||||
|
* 用户id |
||||
|
*/ |
||||
|
private String userId; |
||||
|
} |
@ -0,0 +1,90 @@ |
|||||
|
/** |
||||
|
* 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.dto.result.resi; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 活动列表(标准) 返回值 |
||||
|
* |
||||
|
* @author zhangyong |
||||
|
* @since v1.0.0 2020-07-20 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ResiActInfoResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 活动ID |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 标题 |
||||
|
*/ |
||||
|
private String title; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 活动封面 |
||||
|
*/ |
||||
|
private String coverPic; |
||||
|
|
||||
|
/** |
||||
|
* 活动开始时间 |
||||
|
*/ |
||||
|
private String actStartTime; |
||||
|
|
||||
|
/** |
||||
|
* 活动结束时间 |
||||
|
*/ |
||||
|
private String actEndTime; |
||||
|
|
||||
|
/** |
||||
|
* 活动地点 |
||||
|
*/ |
||||
|
private String actAddress; |
||||
|
|
||||
|
/** |
||||
|
* 活动名额类型(true:固定名额(1) false: 不限制名额(0)) |
||||
|
*/ |
||||
|
private Boolean actQuotaCategory; |
||||
|
|
||||
|
/** |
||||
|
* 活动名额 |
||||
|
*/ |
||||
|
private Integer actQuota; |
||||
|
|
||||
|
/** |
||||
|
* 已报名人数 |
||||
|
*/ |
||||
|
private Integer signupNum; |
||||
|
|
||||
|
/** |
||||
|
* 活动状态:(报名中:signing_up;已报满:enough;截止报名: end_sign_up; 已开始: in_progress; 已结束:finished;取消报名canceld;) |
||||
|
*/ |
||||
|
private String actCurrentState; |
||||
|
|
||||
|
/** |
||||
|
*用户报名状态(no_signed_up: 未报名,signed_up: 已报名) |
||||
|
*/ |
||||
|
private String signupFlag; |
||||
|
} |
@ -0,0 +1,44 @@ |
|||||
|
/** |
||||
|
* 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.dto.result.resi; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 即将进行/正在进行中的活动 返回值 |
||||
|
* |
||||
|
* @author zhangyong |
||||
|
* @since v1.0.0 2020-07-21 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ResiInProgressActResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 标题 |
||||
|
*/ |
||||
|
private String title; |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
/** |
||||
|
* 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.dto.result.resi; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 最新活动列表 返回值 |
||||
|
* |
||||
|
* @author zhangyong |
||||
|
* @since v1.0.0 2020-07-20 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ResiLatestActResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 标题 |
||||
|
*/ |
||||
|
private String title; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 活动封面 |
||||
|
*/ |
||||
|
private String coverPic; |
||||
|
|
||||
|
/** |
||||
|
* 活动开始时间 |
||||
|
*/ |
||||
|
private String actStartTime; |
||||
|
|
||||
|
/** |
||||
|
* 活动结束时间 |
||||
|
*/ |
||||
|
private String actEndTime; |
||||
|
|
||||
|
/** |
||||
|
* 活动地点 |
||||
|
*/ |
||||
|
private String actAddress; |
||||
|
|
||||
|
/** |
||||
|
* 活动名额类型(true:固定名额(1) false: 不限制名额(0)) |
||||
|
*/ |
||||
|
private Boolean actQuotaCategory; |
||||
|
|
||||
|
/** |
||||
|
* 活动名额 |
||||
|
*/ |
||||
|
private Integer actQuota; |
||||
|
|
||||
|
/** |
||||
|
* 已报名人数 |
||||
|
*/ |
||||
|
private Integer signupNum; |
||||
|
|
||||
|
/** |
||||
|
* 活动状态:(报名中:signing_up;已报满:enough;截止报名: end_sign_up; 已开始: in_progress;) |
||||
|
*/ |
||||
|
private String actCurrentState; |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
/** |
||||
|
* 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.dto.result.resi; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 活动回顾列表 返回值 |
||||
|
* |
||||
|
* @author zhangyong |
||||
|
* @since v1.0.0 2020-07-20 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ResiLookBackActResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 标题 |
||||
|
*/ |
||||
|
private String title; |
||||
|
|
||||
|
/** |
||||
|
* 活动封面 |
||||
|
*/ |
||||
|
private String coverPic; |
||||
|
|
||||
|
/** |
||||
|
* 活动开始时间 |
||||
|
*/ |
||||
|
private String actStartTime; |
||||
|
|
||||
|
/** |
||||
|
* 活动结束时间 |
||||
|
*/ |
||||
|
private String actEndTime; |
||||
|
|
||||
|
/** |
||||
|
* 活动地点 |
||||
|
*/ |
||||
|
private String actAddress; |
||||
|
|
||||
|
/** |
||||
|
* 活动状态:(已结束:finished;) |
||||
|
*/ |
||||
|
private String actCurrentState; |
||||
|
} |
@ -0,0 +1,85 @@ |
|||||
|
/** |
||||
|
* 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.dto.result.resi; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 我的活动列表 返回值 |
||||
|
* |
||||
|
* @author zhangyong |
||||
|
* @since v1.0.0 2020-07-20 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ResiMyActResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String actId; |
||||
|
|
||||
|
/** |
||||
|
* 标题 |
||||
|
*/ |
||||
|
private String title; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 活动封面 |
||||
|
*/ |
||||
|
private String coverPic; |
||||
|
|
||||
|
/** |
||||
|
* 活动开始时间 |
||||
|
*/ |
||||
|
private String actStartTime; |
||||
|
|
||||
|
/** |
||||
|
* 活动结束时间 |
||||
|
*/ |
||||
|
private String actEndTime; |
||||
|
|
||||
|
/** |
||||
|
* 活动地点 |
||||
|
*/ |
||||
|
private String actAddress; |
||||
|
|
||||
|
/** |
||||
|
* 活动名额类型(true:固定名额(1) false: 不限制名额(0)) |
||||
|
*/ |
||||
|
private Boolean actQuotaCategory; |
||||
|
|
||||
|
/** |
||||
|
* 活动名额 |
||||
|
*/ |
||||
|
private Integer actQuota; |
||||
|
|
||||
|
/** |
||||
|
* 已报名人数 |
||||
|
*/ |
||||
|
private Integer signupNum; |
||||
|
|
||||
|
/** |
||||
|
* 活动当前状态(审核中auditing,审核通过passed,审核不通过refused,已结束canceld) |
||||
|
*/ |
||||
|
private String actCurrentState; |
||||
|
} |
@ -0,0 +1,168 @@ |
|||||
|
package com.epmet.controller; |
||||
|
|
||||
|
import com.epmet.commons.tools.annotation.LoginUser; |
||||
|
import com.epmet.commons.tools.security.dto.TokenDto; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.dto.form.resi.*; |
||||
|
import com.epmet.dto.result.resi.*; |
||||
|
import com.epmet.service.ActInfoService; |
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 居民端-活动列表相关api |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2020/7/19 23:17 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("/resi/act") |
||||
|
public class ResiActListController { |
||||
|
|
||||
|
@Autowired |
||||
|
private ActInfoService actInfoService; |
||||
|
|
||||
|
/** |
||||
|
* 活动列表(包含状态:报名中:signing_up;已报满:enough;截止报名: end_sign_up; 已开始: in_progress; 已结束:finished;) |
||||
|
* |
||||
|
* @param tokenDto |
||||
|
* @param formDto |
||||
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.resi.ResiActInfoResultDTO>> |
||||
|
* @Author zhangyong |
||||
|
* @Date 13:39 2020-07-21 |
||||
|
**/ |
||||
|
@PostMapping("list") |
||||
|
public Result<List<ResiActInfoResultDTO>> listAct(@LoginUser TokenDto tokenDto, @RequestBody ResiActBaseFormDTO formDto) { |
||||
|
return actInfoService.listAct(tokenDto, formDto); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 我的活动-审核中 |
||||
|
* |
||||
|
* @param tokenDto |
||||
|
* @param formDto |
||||
|
* @return java.util.List<com.epmet.dto.result.resi.ResiMyActResultDTO> |
||||
|
* @Author zhangyong |
||||
|
* @Date 13:53 2020-07-21 |
||||
|
**/ |
||||
|
@PostMapping("list/auditing") |
||||
|
public Result<List<ResiMyActResultDTO>> listAuditing(@LoginUser TokenDto tokenDto, @RequestBody ResiMyActFormDTO formDto) { |
||||
|
return actInfoService.myActListAuditing(tokenDto, formDto); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 我的活动-未通过 |
||||
|
* |
||||
|
* @param tokenDto |
||||
|
* @param formDto |
||||
|
* @return java.util.List<com.epmet.dto.result.resi.ResiMyActResultDTO> |
||||
|
* @Author zhangyong |
||||
|
* @Date 13:53 2020-07-21 |
||||
|
**/ |
||||
|
@PostMapping("list/refused") |
||||
|
public Result<List<ResiMyActResultDTO>> listRefused(@LoginUser TokenDto tokenDto, @RequestBody ResiMyActFormDTO formDto) { |
||||
|
return actInfoService.myActListRefused(tokenDto, formDto); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 我的活动-已通过 |
||||
|
* |
||||
|
* @param tokenDto |
||||
|
* @param formDto |
||||
|
* @return java.util.List<com.epmet.dto.result.resi.ResiMyActResultDTO> |
||||
|
* @Author zhangyong |
||||
|
* @Date 13:53 2020-07-21 |
||||
|
**/ |
||||
|
@PostMapping("list/passed") |
||||
|
public Result<List<ResiMyActResultDTO>> listPassed(@LoginUser TokenDto tokenDto, @RequestBody ResiMyActFormDTO formDto) { |
||||
|
return actInfoService.myActListPassed(tokenDto, formDto); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 我的活动-已结束 |
||||
|
* |
||||
|
* @param tokenDto |
||||
|
* @param formDto |
||||
|
* @return java.util.List<com.epmet.dto.result.resi.ResiMyActResultDTO> |
||||
|
* @Author zhangyong |
||||
|
* @Date 13:53 2020-07-21 |
||||
|
**/ |
||||
|
@PostMapping("list/canceld") |
||||
|
public Result<List<ResiMyActResultDTO>> listcanceld(@LoginUser TokenDto tokenDto, @RequestBody ResiMyActFormDTO formDto) { |
||||
|
return actInfoService.myActListCanceld(tokenDto, formDto); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 最新活动列表 |
||||
|
* |
||||
|
* @param formDto |
||||
|
* @return java.util.List<com.epmet.dto.result.resi.ResiLatestActResultDTO> |
||||
|
* @Author zhangyong |
||||
|
* @Date 13:53 2020-07-21 |
||||
|
**/ |
||||
|
@PostMapping("list/latestact") |
||||
|
public Result<List<ResiLatestActResultDTO>> latestAct(@RequestBody ResiLatestActFormDTO formDto) { |
||||
|
return actInfoService.latestAct(formDto); |
||||
|
} |
||||
|
|
||||
|
/* |
||||
|
* 正在进行中的活动 |
||||
|
* 进入活动的快捷入口, 前端只取第一条 |
||||
|
* |
||||
|
* @param tokenDto |
||||
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.resi.ResiInProgressActResultDTO>> |
||||
|
* @Author zhangyong |
||||
|
* @Date 14:56 2020-07-21 |
||||
|
**/ |
||||
|
@PostMapping("inprogress") |
||||
|
public Result<List<ResiInProgressActResultDTO>> inProgressAct(@LoginUser TokenDto tokenDto) { |
||||
|
return actInfoService.inProgressAct(tokenDto); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 活动回顾列表(包含状态:已结束:finished;) |
||||
|
* @param formDto |
||||
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.resi.ResiLookBackActResultDTO>> |
||||
|
* @Author zhangyong |
||||
|
* @Date 13:39 2020-07-21 |
||||
|
**/ |
||||
|
@PostMapping("actlookback") |
||||
|
public Result<List<ResiLookBackActResultDTO>> actLookBack(@RequestBody ResiActBaseFormDTO formDto) { |
||||
|
return actInfoService.actLookBack(formDto); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 取消活动报名 |
||||
|
* |
||||
|
* @param tokenDto |
||||
|
* @param formDTO |
||||
|
* @return com.epmet.commons.tools.utils.Result |
||||
|
* @Author zhangyong |
||||
|
* @Date 09:29 2020-07-20 |
||||
|
**/ |
||||
|
@PostMapping("cancelsignup") |
||||
|
public Result cancelSignUp(@LoginUser TokenDto tokenDto, @RequestBody ResiActUserCancelSignUpFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO); |
||||
|
return actInfoService.cancelSignUp(tokenDto, formDTO); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 重新定位 |
||||
|
* 根据活动id、前端传的实时经纬度,与活动设置的经纬度相比较,判断用户是否已到达打卡地点 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @return javax.xml.transform.Result |
||||
|
* @Author zhangyong |
||||
|
* @Date 16:48 2020-07-20 |
||||
|
**/ |
||||
|
@PostMapping("checksigninaddress") |
||||
|
public Result cancelSignUp(@RequestBody ResiActCaculateDistanceFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO); |
||||
|
return actInfoService.checkSignInAddress(formDTO); |
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue