package com.xxfc.platform.im.rest;

import com.alibaba.fastjson.JSONArray;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.mongodb.DBCursor;
import com.xxfc.platform.im.biz.MsgBiz;
import com.xxfc.platform.im.biz.UserBiz;
import com.xxfc.platform.im.model.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("msg")
public class MsgController {

    @Autowired
    private MsgBiz msgBiz;

    @PostMapping(value = "/app/unauth/list")
    public ObjectRestResponse getMsgList(@RequestBody Map<String,Object> map)throws Exception{
        return msgBiz.getMsgList(map);
    }

    @PostMapping(value = "/hotMsg/list")
    public ObjectRestResponse getHotMsgList(Map<String, Object> map) {
        return msgBiz.getHotMsgList(map);
    }
}
