Commit e0af3c19 authored by 技术部-任文超's avatar 技术部-任文超

扩展用户全量信息查询接口,增加了扩展信息

parent 81981fa6
...@@ -8,7 +8,11 @@ public enum IncomeEnum { ...@@ -8,7 +8,11 @@ public enum IncomeEnum {
CASH("现金计算"), CASH("现金计算"),
PAY_CARD("工资卡"), PAY_CARD("工资卡"),
CASH_AND_PAY_CARD("混合"); CASH_AND_PAY_CARD("混合");
private String desc; private String desc;
public String getDesc() {
return desc;
}
IncomeEnum(String desc) { IncomeEnum(String desc) {
this.desc = desc; this.desc = desc;
......
...@@ -15,6 +15,9 @@ public enum IncomeRangeEnum { ...@@ -15,6 +15,9 @@ public enum IncomeRangeEnum {
ABOVE_20000("大于20000元"); ABOVE_20000("大于20000元");
private String desc; private String desc;
public String getDesc() {
return desc;
}
IncomeRangeEnum(String desc) { IncomeRangeEnum(String desc) {
this.desc = desc; this.desc = desc;
......
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package cn.quantgroup.xyqb.model;
import javax.xml.bind.annotation.XmlTransient;
@javax.xml.bind.annotation.XmlRootElement
public class ApiResponse {
public static final int ERROR = 1;
public static final int WARNING = 2;
public static final int INFO = 3;
public static final int OK = 4;
public static final int TOO_BUSY = 5;
int code;
String type;
String message;
public ApiResponse(){}
public ApiResponse(int code, String message){
this.code = code;
switch(code){
case ERROR:
setType("error");
break;
case WARNING:
setType("warning");
break;
case INFO:
setType("info");
break;
case OK:
setType("ok");
break;
case TOO_BUSY:
setType("too busy");
break;
default:
setType("unknown");
break;
}
this.message = message;
}
@XmlTransient
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
}
package cn.quantgroup.xyqb.model; package cn.quantgroup.xyqb.model;
import cn.quantgroup.user.enums.EducationEnum;
import cn.quantgroup.user.enums.IncomeEnum;
import cn.quantgroup.user.enums.IncomeRangeEnum;
import cn.quantgroup.user.enums.OccupationEnum;
import cn.quantgroup.xyqb.entity.Address; import cn.quantgroup.xyqb.entity.Address;
import cn.quantgroup.xyqb.entity.Contact; import cn.quantgroup.xyqb.entity.Contact;
import lombok.Data; import lombok.Data;
import javax.persistence.Column;
import java.io.Serializable; import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -24,12 +29,28 @@ public class UserAssociationModel implements Serializable { ...@@ -24,12 +29,28 @@ public class UserAssociationModel implements Serializable {
private String idNo; private String idNo;
private String name; private String name;
private String gender; private String gender;
private String marryStatus;
private String educationEnum;
private String occupationEnum;
private String qq; private String qq;
private String email;
private Long registerFrom; private Long registerFrom;
private Long merchantId; private Long merchantId;
// 婚姻状态
private String marryStatus;
// 受教育程度
private String educationEnum;
// 职业
private String occupationEnum;
// 收入水平范围
private String incomeRangeEnum;
// 收入方式
private String incomeEnum;
// 是否有车
private Boolean hasCar;
// 是否有社保
private Boolean hasSocialSecurity;
// 是否有房
private Boolean hasHouse;
// 是否有信用卡
private Boolean hasCreditCard;
private List<AddressModel> addressList; private List<AddressModel> addressList;
private List<ContactModel> contactList; private List<ContactModel> contactList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment