xiaoyong931011
2020-05-30 d2e6c0aba08b697ca5618affc2c34af9a37bbe2b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.xcong.excoin.netty.logic.impl;
 
import com.xcong.excoin.netty.bean.RequestBean;
import com.xcong.excoin.netty.common.Contans;
import com.xcong.excoin.netty.logic.MsgLogic;
import com.xcong.excoin.netty.logic.WebSocketLogic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
 
/**
 * @author wzy
 * @date 2019-05-09
 */
@Component
public class MsgLogicImpl implements MsgLogic {
 
    @Autowired
    private WebSocketLogic webSocketLogic;
 
    @Override
    public void webSocketMsgLogic(RequestBean requestBean) {
        switch (requestBean.getType()) {
            case Contans.WEB_REQ_CONNECTION :
                webSocketLogic.webReqConnection(requestBean);
                break;
            case Contans.HOME_SYMBOLS:
                webSocketLogic.reqHomeSymbols(requestBean);
            default:
                webSocketLogic.defaultReq(requestBean);
                break;
        }
    }
 
 
}