23 lines
415 B
Java
23 lines
415 B
Java
|
|
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 "";
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|