11 changed files with 323 additions and 9 deletions
@ -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,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; |
||||
|
} |
Loading…
Reference in new issue