21 changed files with 388 additions and 11 deletions
@ -0,0 +1,27 @@ |
|||||
|
package com.epmet.dto.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 描述一下 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/4/13 14:36 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AddAreaCodeFormDTO implements Serializable { |
||||
|
|
||||
|
@NotBlank(message = "currentAreaLevel不能为空") |
||||
|
private String currentAreaLevel; |
||||
|
@NotBlank(message = "parentAreaCode不能为空") |
||||
|
private String parentAreaCode; |
||||
|
|
||||
|
/** |
||||
|
* 新增的街道或者社区名称 |
||||
|
*/ |
||||
|
@NotBlank(message = "name不能为空") |
||||
|
private String name; |
||||
|
} |
@ -0,0 +1,86 @@ |
|||||
|
package com.epmet.dto.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; |
||||
|
|
||||
|
/** |
||||
|
* 添加组织V2 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/4/13 11:08 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AddAgencyV2FormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -8951334902226679043L; |
||||
|
|
||||
|
public interface AddUserInternalGroup { |
||||
|
} |
||||
|
|
||||
|
public interface DefaultUserShowGroup extends CustomerClientShowGroup { |
||||
|
} |
||||
|
|
||||
|
public interface AreaCodeGroup extends CustomerClientShowGroup { |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@NotBlank(message = "上级组织ID不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String parentAgencyId; |
||||
|
|
||||
|
/** |
||||
|
* 机构组织名称 |
||||
|
*/ |
||||
|
@NotBlank(message = "组织名称不能为空", groups = DefaultUserShowGroup.class) |
||||
|
@Length(max = 50, message = "组织名称不能超过50个字", groups = DefaultUserShowGroup.class) |
||||
|
private String agencyName; |
||||
|
|
||||
|
/** |
||||
|
* 机关级别(社区级:community, |
||||
|
* 乡(镇、街道)级:street, |
||||
|
* 区县级: district, |
||||
|
* 市级: city |
||||
|
* 省级:province) |
||||
|
*/ |
||||
|
@NotBlank(message = "组织级别不能为空;社区级:community,乡(镇、街道)级:street,区县级: district,市级: city省级:province", groups = AddUserInternalGroup.class) |
||||
|
private String level; |
||||
|
|
||||
|
/** |
||||
|
* open: 选择地区编码必填;closed: 无需选择地区编码;0409新增返参 |
||||
|
*/ |
||||
|
@NotBlank(message = "areaCodeSwitch不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String areaCodeSwitch; |
||||
|
|
||||
|
/** |
||||
|
* 地区编码 |
||||
|
*/ |
||||
|
@NotBlank(message = "请选择组织区划", groups = AreaCodeGroup.class) |
||||
|
private String areaCode; |
||||
|
|
||||
|
/** |
||||
|
* 省份 |
||||
|
*/ |
||||
|
private String province; |
||||
|
|
||||
|
/** |
||||
|
* 城市 |
||||
|
*/ |
||||
|
private String city; |
||||
|
|
||||
|
/** |
||||
|
* 区县 |
||||
|
*/ |
||||
|
private String district; |
||||
|
|
||||
|
/** |
||||
|
* 区域编码字典中的【街道】名称;来源于【/data/aggregator/org/nextlevelareacodelist】接口里的areaName |
||||
|
*/ |
||||
|
private String street; |
||||
|
|
||||
|
/** |
||||
|
* 区域编码字典中的【社区】名称;来源于【/data/aggregator/org/nextlevelareacodelist】接口里的areaName |
||||
|
*/ |
||||
|
private String community; |
||||
|
} |
Loading…
Reference in new issue