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;

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