6 changed files with 198 additions and 0 deletions
@ -0,0 +1,69 @@ |
|||
package com.elink.esua.epdc.dto; |
|||
|
|||
|
|||
import com.elink.esua.epdc.commons.tools.constant.NumConstant; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 产品接口返回对象 |
|||
* |
|||
* @author work@yujt.net.cn |
|||
*/ |
|||
public class EpmetResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 5696381943457769245L; |
|||
|
|||
private String code; |
|||
private String data; |
|||
private String msg; |
|||
private String internalMsg; |
|||
|
|||
|
|||
public boolean success() { |
|||
return NumConstant.ZERO_STR.equals(code); |
|||
} |
|||
|
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code; |
|||
} |
|||
|
|||
public String getData() { |
|||
return data; |
|||
} |
|||
|
|||
public void setData(String data) { |
|||
this.data = data; |
|||
} |
|||
|
|||
public String getMsg() { |
|||
return msg; |
|||
} |
|||
|
|||
public void setMsg(String msg) { |
|||
this.msg = msg; |
|||
} |
|||
|
|||
public String getInternalMsg() { |
|||
return internalMsg; |
|||
} |
|||
|
|||
public void setInternalMsg(String internalMsg) { |
|||
this.internalMsg = internalMsg; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return "EpmetResultDTO{" + |
|||
"code='" + code + '\'' + |
|||
", data=" + data + |
|||
", msg='" + msg + '\'' + |
|||
", internalMsg='" + internalMsg + '\'' + |
|||
'}'; |
|||
} |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.elink.esua.epdc.dto.epdc.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author yinzuomei |
|||
* @Date 2019/12/4 19:37 |
|||
*/ |
|||
@Data |
|||
public class UserSysDeptAreaCodeFormDTO implements Serializable { |
|||
|
|||
/** |
|||
* 必传,根节点的地区编码 |
|||
*/ |
|||
private String rootAreaCode; |
|||
|
|||
/** |
|||
* 省级:province; 市级: city; 区县级: district ;乡(镇、街道)级:street ;社区级:community |
|||
*/ |
|||
private String rootAreaLevel; |
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.elink.esua.epdc.dto.epdc.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 无下级的areaCode对象 |
|||
* |
|||
* @author zhy |
|||
* @date 2021/1/11 17:59 |
|||
*/ |
|||
@Data |
|||
public class AreaCodeChildResultDTO implements Serializable { |
|||
|
|||
/** |
|||
* 编码 |
|||
*/ |
|||
private String code; |
|||
|
|||
/** |
|||
* 名称 |
|||
*/ |
|||
private String name; |
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.elink.esua.epdc.dto.epdc.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 有下级的areaCode对象 |
|||
* |
|||
* @author zhy |
|||
* @date 2021/1/11 18:00 |
|||
*/ |
|||
@Data |
|||
public class AreaCodeParentResultDTO implements Serializable { |
|||
|
|||
/** |
|||
* 编码 |
|||
*/ |
|||
private String code; |
|||
|
|||
/** |
|||
* 名称 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 下一级 |
|||
*/ |
|||
private List children; |
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.elink.esua.epdc.dto.epdc.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 用于转换产品返回的json |
|||
* |
|||
* @author zhy |
|||
* @date 2021/1/11 17:58 |
|||
*/ |
|||
@Data |
|||
public class UserSysDeptAreaCodeResultDTO implements Serializable { |
|||
|
|||
/** |
|||
* 编码 |
|||
*/ |
|||
private String code; |
|||
|
|||
/** |
|||
* 名称 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 下一级 |
|||
*/ |
|||
private List<UserSysDeptAreaCodeResultDTO> children; |
|||
|
|||
} |
Loading…
Reference in new issue