初始化
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.tongran.agenttcp.server.basics;
|
||||
|
||||
|
||||
import com.tongran.agenttcp.server.model.UpMsgResponse;
|
||||
|
||||
public interface AgentMsgHandler {
|
||||
|
||||
/**
|
||||
* 处理终端传入的消息, 然后进行返回
|
||||
*
|
||||
* @return 需要发送给终端的消息
|
||||
*/
|
||||
|
||||
default UpMsgResponse upHandle(String data) {
|
||||
return null;
|
||||
}
|
||||
|
||||
default String downHandle(String data) {
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user