forked from rongchao/epmet-cloud-rizhao
26 changed files with 563 additions and 10 deletions
@ -0,0 +1,23 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @ClassName ResiCommonUserIdFormDTO |
|||
* @Auth wangc |
|||
* @Date 2020-07-22 14:07 |
|||
*/ |
|||
@Data |
|||
public class ResiCommonUserIdFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -1961545266124776452L; |
|||
|
|||
public interface UserId extends CustomerClientShowGroup{} |
|||
|
|||
@NotBlank(message = "获取不到用户Id",groups = UserId.class) |
|||
private String userId; |
|||
} |
@ -0,0 +1,33 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Min; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 查询用户积分总排行、周排行、月排行参数 |
|||
* @ClassName ResiPointRankParam |
|||
* @Auth wangc |
|||
* @Date 2020-07-21 16:22 |
|||
*/ |
|||
@Data |
|||
public class ResiPointRankFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 1534061512200591149L; |
|||
|
|||
/** |
|||
* 页码 |
|||
* */ |
|||
@Min(1) |
|||
private Integer pageNo; |
|||
|
|||
/** |
|||
* 每页数据条数 |
|||
* */ |
|||
private Integer pageSize; |
|||
|
|||
/** |
|||
* 时间维度 week month |
|||
* */ |
|||
private String timeDimension; |
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 居民端用户查询累计积分、可用积分 |
|||
* @ClassName ResiPointDetailResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-07-21 11:06 |
|||
*/ |
|||
@Data |
|||
public class ResiPointDetailResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -4909273528724428776L; |
|||
|
|||
/** |
|||
* 累计积分 |
|||
* */ |
|||
private Integer accumulatedPoint; |
|||
|
|||
/** |
|||
* 可用积分 |
|||
* */ |
|||
private Integer usablePoint; |
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 用户积分记录列表返参DTO |
|||
* @ClassName ResiPointLogListResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-07-22 14:03 |
|||
*/ |
|||
@Data |
|||
public class ResiPointLogListResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 5316430104874305245L; |
|||
/** |
|||
* 日期 yyyy-MM-dd 字符串 |
|||
* */ |
|||
private String date; |
|||
|
|||
/** |
|||
* 当日积分记录列表 |
|||
* */ |
|||
private List<ResiPointLogPeriodResultDTO> dailyList; |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 用户积分记录时段DTO |
|||
* @ClassName ResiPointLogPeriodResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-07-22 10:54 |
|||
*/ |
|||
@Data |
|||
public class ResiPointLogPeriodResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -7686828993714392843L; |
|||
|
|||
/** |
|||
* 日期 yyyy-MM-dd |
|||
* */ |
|||
private String date; |
|||
|
|||
/** |
|||
* 时段 HH:mm |
|||
* */ |
|||
private String time; |
|||
|
|||
/** |
|||
* +100 -25 |
|||
* */ |
|||
private String point; |
|||
|
|||
/** |
|||
* 标题 |
|||
* */ |
|||
private String title; |
|||
|
|||
/** |
|||
* 备注内容 |
|||
* */ |
|||
private String remark; |
|||
|
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 居民端积分总排行、周排行、月排行接口返参DTO |
|||
* @ClassName ResiPointRankListResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-07-21 16:48 |
|||
*/ |
|||
@Data |
|||
public class ResiPointRankListResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 685408245193506541L; |
|||
|
|||
/** |
|||
* 当前用户昵称 |
|||
* */ |
|||
private String myNickname; |
|||
|
|||
/** |
|||
* 当前用户积分 |
|||
* */ |
|||
private Integer myPoint; |
|||
|
|||
/** |
|||
* 当前用户排名 |
|||
* */ |
|||
private Integer myRanking; |
|||
|
|||
/** |
|||
* 积分排名列表 |
|||
* */ |
|||
private List<ResiPointRankingResultDTO> rankList; |
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.regex.Matcher; |
|||
import java.util.regex.Pattern; |
|||
|
|||
|
|||
/** |
|||
* @Description 用户积分排名DTO |
|||
* @ClassName ResiPointRankResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-07-21 14:52 |
|||
*/ |
|||
@Data |
|||
public class ResiPointRankResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 2095785598460202838L; |
|||
|
|||
private Integer rank; |
|||
|
|||
private String userId; |
|||
|
|||
private String customerId; |
|||
|
|||
private Integer totalPoint; |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @ClassName ResiPointRankingResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-07-21 16:38 |
|||
*/ |
|||
@Data |
|||
public class ResiPointRankingResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -5073341813089351068L; |
|||
|
|||
private String nickname; |
|||
|
|||
private Integer ranking; |
|||
|
|||
private Integer point; |
|||
|
|||
} |
Loading…
Reference in new issue