-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
朱培杰
committed
Dec 19, 2018
1 parent
1f9245e
commit bdb97f3
Showing
20 changed files
with
635 additions
and
130 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/com/github/unclecatmyself/bootstrap/BootstrapServer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/java/com/github/unclecatmyself/bootstrap/NettyBootstrapServer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
src/main/java/com/github/unclecatmyself/bootstrap/data/InChatToDataBaseService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package com.github.unclecatmyself.bootstrap.data; | ||
|
||
import com.github.unclecatmyself.common.bean.InChatMessage; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* Created by MySelf on 2018/12/3. | ||
*/ | ||
public interface InChatToDataBaseService { | ||
|
||
Boolean writeMapToDB(Map<String,Object> maps); | ||
Boolean writeMapToDB(InChatMessage message); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
src/main/java/com/github/unclecatmyself/common/bean/InChatMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
package com.github.unclecatmyself.common.bean; | ||
|
||
import java.util.Date; | ||
|
||
/** | ||
* Created by MySelf on 2018/12/19. | ||
*/ | ||
public class InChatMessage { | ||
|
||
private Date time; | ||
|
||
private String type; | ||
|
||
private String value; | ||
|
||
private String token; | ||
|
||
private String groudId; | ||
|
||
private String online; | ||
|
||
private String one; | ||
|
||
public Date getTime() { | ||
return time; | ||
} | ||
|
||
public void setTime(Date time) { | ||
this.time = time; | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getToken() { | ||
return token; | ||
} | ||
|
||
public void setToken(String token) { | ||
this.token = token; | ||
} | ||
|
||
public String getGroudId() { | ||
return groudId; | ||
} | ||
|
||
public void setGroudId(String groudId) { | ||
this.groudId = groudId; | ||
} | ||
|
||
public String getOnline() { | ||
return online; | ||
} | ||
|
||
public void setOnline(String online) { | ||
this.online = online; | ||
} | ||
|
||
public String getOne() { | ||
return one; | ||
} | ||
|
||
public void setOne(String one) { | ||
this.one = one; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "InChatMessage{" + | ||
"time=" + time + | ||
", type='" + type + '\'' + | ||
", value='" + value + '\'' + | ||
", token='" + token + '\'' + | ||
", groudId='" + groudId + '\'' + | ||
", online='" + online + '\'' + | ||
", one='" + one + '\'' + | ||
'}'; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...atmyself/common/properties/InitNetty.java → ...unclecatmyself/common/bean/InitNetty.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
src/main/java/com/github/unclecatmyself/common/pool/Scheduled.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/main/java/com/github/unclecatmyself/common/utils/MessageChangeUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.github.unclecatmyself.common.utils; | ||
|
||
import com.github.unclecatmyself.common.bean.InChatMessage; | ||
|
||
import java.util.Date; | ||
import java.util.Map; | ||
|
||
/** | ||
* Created by MySelf on 2018/12/19. | ||
*/ | ||
public class MessageChangeUtil { | ||
|
||
public static InChatMessage Change(Map<String,Object> maps){ | ||
InChatMessage message = new InChatMessage(); | ||
if (maps.containsKey(ConstansUtil.TOKEN)){ | ||
message.setToken((String) maps.get(ConstansUtil.TOKEN)); | ||
} | ||
if (maps.containsKey(ConstansUtil.TIME)){ | ||
message.setTime((Date) maps.get(ConstansUtil.TIME)); | ||
} | ||
if (maps.containsKey(ConstansUtil.VALUE)){ | ||
message.setValue((String)maps.get(ConstansUtil.VALUE)); | ||
} | ||
if (maps.containsKey(ConstansUtil.TYPE)){ | ||
message.setType((String)maps.get(ConstansUtil.TYPE)); | ||
} | ||
if (maps.containsKey(ConstansUtil.ONE)){ | ||
message.setOne((String)maps.get(ConstansUtil.ONE)); | ||
} | ||
if (maps.containsKey(ConstansUtil.GROUPID)){ | ||
message.setGroudId((String)maps.get(ConstansUtil.GROUPID)); | ||
} | ||
if (maps.containsKey(ConstansUtil.ON_ONLINE)){ | ||
message.setOnline((String)maps.get(ConstansUtil.ON_ONLINE)); | ||
} | ||
return message; | ||
} | ||
|
||
} |
42 changes: 0 additions & 42 deletions
42
src/main/java/com/github/unclecatmyself/common/utils/SpringBeanUtils.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/java/com/github/unclecatmyself/common/utils/TimeUtil.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.