forked from luyan/epmet-cloud-lingshan
9 changed files with 328 additions and 20 deletions
@ -0,0 +1,33 @@ |
|||||
|
package com.epmet.dto; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Author yzm |
||||
|
* @Date 2023/3/2 13:52 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class TagScopeDTO implements Serializable { |
||||
|
/** |
||||
|
* 标签ID |
||||
|
*/ |
||||
|
private String tagId; |
||||
|
|
||||
|
/** |
||||
|
* 应用范围,这里只能是社区id |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* agency_id全路径,包含自身 |
||||
|
*/ |
||||
|
private String orgIdPath; |
||||
|
|
||||
|
/** |
||||
|
* 组织名称 |
||||
|
*/ |
||||
|
private String agencyName; |
||||
|
} |
||||
|
|
@ -0,0 +1,56 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import com.epmet.dto.TagScopeDTO; |
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Description |
||||
|
* @Author yzm |
||||
|
* @Date 2023/3/2 12:47 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class TagCustomerFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -5631868409077026783L; |
||||
|
|
||||
|
public interface AddUserInternalGroup { |
||||
|
} |
||||
|
|
||||
|
public interface AddUserShowGroup extends CustomerClientShowGroup { |
||||
|
} |
||||
|
|
||||
|
public interface UpdateUserInternalGroup { |
||||
|
} |
||||
|
|
||||
|
public interface UpdateUserShowGroup extends CustomerClientShowGroup { |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 主键ID |
||||
|
*/ |
||||
|
@NotBlank(message = "id不能为空", groups = {UpdateUserInternalGroup.class}) |
||||
|
private String id; |
||||
|
|
||||
|
/** |
||||
|
* 标签名称 |
||||
|
*/ |
||||
|
@Length(max = 30, message = "标签名称最多输入30字", groups = {AddUserShowGroup.class, UpdateUserShowGroup.class}) |
||||
|
@NotBlank(message = "标签名称不能为空", groups = {AddUserShowGroup.class, UpdateUserShowGroup.class}) |
||||
|
private String tagName; |
||||
|
|
||||
|
/** |
||||
|
* 应用范围,只能选社区 |
||||
|
*/ |
||||
|
private List<TagScopeDTO> agencyIds; |
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
} |
||||
|
|
@ -0,0 +1,44 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description pc标签管理-分页查询入参 |
||||
|
* @Author yzm |
||||
|
* @Date 2023/3/2 11:34 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class TagCustomerPageFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -2311491158902019019L; |
||||
|
|
||||
|
public interface PageUserInternalGroup { |
||||
|
} |
||||
|
|
||||
|
public interface PageUserShowGroup extends CustomerClientShowGroup { |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
@NotBlank(message = "customerId不能为空", groups = PageUserInternalGroup.class) |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 标签名称 |
||||
|
*/ |
||||
|
private String tagName; |
||||
|
|
||||
|
|
||||
|
@NotNull(message = "页码不能为空", groups = PageUserInternalGroup.class) |
||||
|
private Integer pageNo; |
||||
|
|
||||
|
@NotNull(message = "每页数量不能为空", groups = PageUserInternalGroup.class) |
||||
|
private Integer pageSize; |
||||
|
} |
||||
|
|
Loading…
Reference in new issue