Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
849aceec
Commit
849aceec
authored
Jul 05, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注册接口修改
parent
8e6d2e7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
UserBiz.java
...erver/src/main/java/com/xxfc/platform/im/biz/UserBiz.java
+1
-1
User.java
...server/src/main/java/com/xxfc/platform/im/model/User.java
+6
-5
No files found.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/UserBiz.java
View file @
849aceec
...
...
@@ -66,7 +66,7 @@ public class UserBiz {
}
else
{
json
.
put
(
"password"
,
mgt
.
getPassword
());
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
params
.
put
(
"userId"
,
mgt
.
get
User
Id
());
params
.
put
(
"userId"
,
mgt
.
getId
());
json
.
put
(
"data"
,
params
);
result
=
json
.
toJSONString
();
/*Map<String,Object>params = new HashMap<String,Object>();
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/model/User.java
View file @
849aceec
...
...
@@ -4,6 +4,7 @@ import java.util.List;
import
java.util.Map
;
import
com.xxfc.platform.im.utils.DateUtil
;
import
org.bson.types.ObjectId
;
import
org.mongodb.morphia.annotations.Embedded
;
import
org.mongodb.morphia.annotations.Entity
;
import
org.mongodb.morphia.annotations.Id
;
...
...
@@ -27,7 +28,7 @@ import lombok.Setter;
public
class
User
{
@Id
private
Integer
userI
d
;
// 用户Id
private
ObjectId
i
d
;
// 用户Id
//@JSONField(serialize = false)
...
...
@@ -188,8 +189,8 @@ public class User {
// ********************引用字段********************
public
Integer
getUser
Id
()
{
return
userI
d
;
public
ObjectId
get
Id
()
{
return
i
d
;
}
...
...
@@ -209,8 +210,8 @@ public class User {
this
.
num
=
num
;
}
public
void
set
UserId
(
Integer
userI
d
)
{
this
.
userId
=
userI
d
;
public
void
set
id
(
ObjectId
i
d
)
{
this
.
id
=
i
d
;
}
public
String
getUserKey
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment