8 changed files with 245 additions and 145 deletions
@ -1,100 +0,0 @@ |
|||||
package com.epmet.dto; |
|
||||
|
|
||||
import lombok.Data; |
|
||||
|
|
||||
import java.io.Serializable; |
|
||||
import java.util.Date; |
|
||||
|
|
||||
|
|
||||
/** |
|
||||
* 组织发布消息(烟台) |
|
||||
* |
|
||||
* @author generator generator@elink-cn.com |
|
||||
* @since v1.0.0 2023-05-04 |
|
||||
*/ |
|
||||
@Data |
|
||||
public class OrganizationMessageDTO implements Serializable { |
|
||||
|
|
||||
private static final long serialVersionUID = 1L; |
|
||||
|
|
||||
/** |
|
||||
* 主键 |
|
||||
*/ |
|
||||
private String id; |
|
||||
|
|
||||
/** |
|
||||
* 客户Id |
|
||||
*/ |
|
||||
private String customerId; |
|
||||
|
|
||||
/** |
|
||||
* 发布渠道:0:专属app |
|
||||
*/ |
|
||||
private String publishDitch; |
|
||||
|
|
||||
/** |
|
||||
* 消息内容;最多输入500 |
|
||||
*/ |
|
||||
private String content; |
|
||||
|
|
||||
/** |
|
||||
* 发布人staffId |
|
||||
*/ |
|
||||
private String publishStaffId; |
|
||||
|
|
||||
/** |
|
||||
* 发布人姓名 |
|
||||
*/ |
|
||||
private String publishStaffName; |
|
||||
|
|
||||
/** |
|
||||
* 发布人所属组织id |
|
||||
*/ |
|
||||
private String publishOrgId; |
|
||||
|
|
||||
/** |
|
||||
* org_id_path |
|
||||
*/ |
|
||||
private String publishOrgIdPath; |
|
||||
|
|
||||
/** |
|
||||
* 发布人所属组织名称 |
|
||||
*/ |
|
||||
private String publishOrgName; |
|
||||
|
|
||||
/** |
|
||||
* 发布时间 |
|
||||
*/ |
|
||||
private Date publishTime; |
|
||||
|
|
||||
/** |
|
||||
* 删除标识:0.未删除 1.已删除 |
|
||||
*/ |
|
||||
private Integer delFlag; |
|
||||
|
|
||||
/** |
|
||||
* 乐观锁 |
|
||||
*/ |
|
||||
private Integer revision; |
|
||||
|
|
||||
/** |
|
||||
* 创建人 |
|
||||
*/ |
|
||||
private String createdBy; |
|
||||
|
|
||||
/** |
|
||||
* 创建时间 |
|
||||
*/ |
|
||||
private Date createdTime; |
|
||||
|
|
||||
/** |
|
||||
* 更新人 |
|
||||
*/ |
|
||||
private String updatedBy; |
|
||||
|
|
||||
/** |
|
||||
* 更新时间 |
|
||||
*/ |
|
||||
private Date updatedTime; |
|
||||
|
|
||||
} |
|
@ -0,0 +1,52 @@ |
|||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotEmpty; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 组织发布消息(烟台) |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2023-05-04 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OrganizationMessageFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public interface AddShowGroup extends CustomerClientShowGroup { |
||||
|
} |
||||
|
/** |
||||
|
* 发布渠道:0:专属app |
||||
|
*/ |
||||
|
@NotBlank(message = "发布渠道不能为空", groups = {AddShowGroup.class}) |
||||
|
private String publishDitch; |
||||
|
|
||||
|
/** |
||||
|
* 消息内容;最多输入500 |
||||
|
*/ |
||||
|
@NotBlank(message = "内容不能为空", groups = {AddShowGroup.class}) |
||||
|
@Length(max = 500, message = "内容输入500字", groups = {AddShowGroup.class}) |
||||
|
private String content; |
||||
|
|
||||
|
@Valid |
||||
|
@NotEmpty(message = "发布范围不能为空", groups = {AddShowGroup.class}) |
||||
|
private List<OrganizationMessagePublishRangeDTO> rangeList; |
||||
|
|
||||
|
/** |
||||
|
* 客户Id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
/** |
||||
|
* 发布人staffId |
||||
|
*/ |
||||
|
private String publishStaffId; |
||||
|
} |
Loading…
Reference in new issue