package com.mtz.qqbot.Controller;

import com.mtz.qqbot.Listener.HandleMessageListener;
import com.mtz.qqbot.Listener.RecallMessageListener;
import com.mtz.qqbot.Listener.ReceiveGroupListener;
import com.mtz.qqbot.Listener.fishListener;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class listController {

    @GetMapping("/messagelist")
    public String list() {
        return "今日好友消息：[" + HandleMessageListener.friendMessageCount + "]条<br>" +
                "今日群聊1消息：[" + HandleMessageListener.group1MessageCount + "]条<br>" +
                "今日群聊2消息：[" + HandleMessageListener.group2MessageCount + "]条<br>" +
                "今日收到的群聊临时会话消息：[" + HandleMessageListener.groupTempMessageCount + "]条<br><br>" +
                "今日群聊1违禁消息：[" + RecallMessageListener.group1InvalidCount + "]条<br>" +
                "今日群聊2违禁消息：[" + RecallMessageListener.group2InvalidCount + "]条<br>" +
                "今日群聊1违禁超过5次的QQ号名单：" + RecallMessageListener.group1InvalidMember + "<br>" +
                "今日群聊2违禁超过5次的QQ号名单：" + RecallMessageListener.group2InvalidMember + "<br><br>" +
                "今日机器人被骚扰次数：[" + ReceiveGroupListener.receiveCount + "]<br>" +
                "今日钓鱼次数：[" + fishListener.fishCount + "]<br><br>" +
                "<a href='index.html'>返回标题页面</a>";
    }
}
