package com.cool.store.controller.webc;

import com.cool.store.response.ResponseResult;
import com.cool.store.service.PushService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: WangShuo
 * @Date: 2025/07/04/10:16
 * @Version 1.0
 * @注释:
 */
@RestController
@RequestMapping("/mini/askBot")
public class AskBotController {
    @Resource
    private PushService pushService;
    @GetMapping("/getUnReadMessageNum")
    @ApiOperation("获取未读数量")
    public ResponseResult<Object> getUnReadMessageNum(@RequestParam(value = "partnerId", required = true,defaultValue = "0") String partnerId) {
        return ResponseResult.success(pushService.getUnReadMessageNum(partnerId));
    }


}
