【会话操作枚举】
This commit is contained in:
parent
50bb136082
commit
b25d0ab80d
@ -35,7 +35,6 @@ public class Operation {
|
||||
public final static int FAULT = 1;
|
||||
public final static int OTHER = 2;
|
||||
|
||||
|
||||
/**
|
||||
* 操作类型
|
||||
*/
|
||||
@ -1316,7 +1315,37 @@ public class Operation {
|
||||
/**
|
||||
* 给出票据
|
||||
*/
|
||||
RAIL_GIVE_TICKET_TO(Operation.OTHER);
|
||||
RAIL_GIVE_TICKET_TO(Operation.OTHER),
|
||||
|
||||
//----------------------------会话信息------------------------------
|
||||
/**
|
||||
* 获取会话信息
|
||||
*/
|
||||
Conversation_Get_Info(Operation.CLIENT),
|
||||
/**
|
||||
* 会话列表信息
|
||||
*/
|
||||
Conversation_List(Operation.CLIENT),
|
||||
/**
|
||||
* 发起会话
|
||||
*/
|
||||
Conversation_Start(Operation.CLIENT),
|
||||
/**
|
||||
* 接受会话
|
||||
*/
|
||||
Conversation_Accept(Operation.CLIENT),
|
||||
/**
|
||||
* 结束会话
|
||||
*/
|
||||
Conversation_Over(Operation.CLIENT),
|
||||
/**
|
||||
* 发送会话消息(语音输入)
|
||||
*/
|
||||
Conversation_Chat_Audio(Operation.CLIENT),
|
||||
/**
|
||||
* 发送会话消息(文字输入)
|
||||
*/
|
||||
Conversation_Chat_Text(Operation.CLIENT);
|
||||
|
||||
int index;
|
||||
|
||||
|
@ -0,0 +1,82 @@
|
||||
package club.joylink.rtss.simulation.cbtc.conversation;
|
||||
|
||||
import club.joylink.rtss.simulation.cbtc.ATS.operation.Operation;
|
||||
import club.joylink.rtss.simulation.cbtc.ATS.operation.annotation.OperateHandler;
|
||||
import club.joylink.rtss.simulation.cbtc.ATS.operation.annotation.OperateHandlerMapping;
|
||||
import club.joylink.rtss.simulation.cbtc.Simulation;
|
||||
import club.joylink.rtss.simulation.cbtc.data.vo.ConversationVO;
|
||||
import club.joylink.rtss.simulation.cbtc.member.SimulationMember;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 会话操作
|
||||
*/
|
||||
@OperateHandler
|
||||
@Slf4j
|
||||
public class ConversationOperateHandler {
|
||||
@Autowired
|
||||
private ConversationManagerService conversationManagerService;
|
||||
|
||||
/**
|
||||
* 获取会话信息
|
||||
*/
|
||||
@OperateHandlerMapping(type = Operation.Type.Conversation_Get_Info)
|
||||
public ConversationVO getConversation(Simulation simulation, SimulationMember member, String id){
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 会话列表信息
|
||||
*/
|
||||
@OperateHandlerMapping(type = Operation.Type.Conversation_List)
|
||||
public List<ConversationVO> getAllConversations(Simulation simulation, SimulationMember member){
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 发起会话
|
||||
*/
|
||||
@OperateHandlerMapping(type = Operation.Type.Conversation_Start)
|
||||
public ConversationVO startConversation(Simulation simulation, SimulationMember member
|
||||
, CommunicationObject object, List<String> memberIds){
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 接受会话
|
||||
*/
|
||||
@OperateHandlerMapping(type = Operation.Type.Conversation_Accept)
|
||||
public ConversationVO acceptConversationInvite(Simulation simulation, SimulationMember member, String id){
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 结束会话
|
||||
*/
|
||||
@OperateHandlerMapping(type = Operation.Type.Conversation_Over)
|
||||
public ConversationVO overConversation(Simulation simulation, SimulationMember member, String id){
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送会话消息(语音输入)
|
||||
*/
|
||||
@OperateHandlerMapping(type = Operation.Type.Conversation_Chat_Audio)
|
||||
public ConversationVO audioChat(Simulation simulation, SimulationMember member, String id){
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送会话消息(文字输入)
|
||||
*/
|
||||
@OperateHandlerMapping(type = Operation.Type.Conversation_Chat_Text)
|
||||
public ConversationVO textChat(Simulation simulation, SimulationMember member, String id){
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user