Commit 849aceec authored by jiaorz's avatar jiaorz

注册接口修改

parent 8e6d2e7b
...@@ -66,7 +66,7 @@ public class UserBiz { ...@@ -66,7 +66,7 @@ public class UserBiz {
}else{ }else{
json.put("password",mgt.getPassword()); json.put("password",mgt.getPassword());
Map<String,Object> params = new HashMap<String,Object>(); Map<String,Object> params = new HashMap<String,Object>();
params.put("userId",mgt.getUserId()); params.put("userId",mgt.getId());
json.put("data",params); json.put("data",params);
result = json.toJSONString(); result = json.toJSONString();
/*Map<String,Object>params = new HashMap<String,Object>(); /*Map<String,Object>params = new HashMap<String,Object>();
......
...@@ -4,6 +4,7 @@ import java.util.List; ...@@ -4,6 +4,7 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import com.xxfc.platform.im.utils.DateUtil; import com.xxfc.platform.im.utils.DateUtil;
import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Embedded; import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.annotations.Entity; import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id; import org.mongodb.morphia.annotations.Id;
...@@ -27,7 +28,7 @@ import lombok.Setter; ...@@ -27,7 +28,7 @@ import lombok.Setter;
public class User { public class User {
@Id @Id
private Integer userId;// 用户Id private ObjectId id;// 用户Id
//@JSONField(serialize = false) //@JSONField(serialize = false)
...@@ -188,8 +189,8 @@ public class User { ...@@ -188,8 +189,8 @@ public class User {
// ********************引用字段******************** // ********************引用字段********************
public Integer getUserId() { public ObjectId getId() {
return userId; return id;
} }
...@@ -209,8 +210,8 @@ public class User { ...@@ -209,8 +210,8 @@ public class User {
this.num = num; this.num = num;
} }
public void setUserId(Integer userId) { public void setid(ObjectId id) {
this.userId = userId; this.id = id;
} }
public String getUserKey() { public String getUserKey() {
......
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