This commit is contained in:
shuo.wang
2025-07-04 10:16:43 +08:00
parent 8228731004
commit 3066251022

View File

@@ -0,0 +1,31 @@
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("getUnReadMessageNum")
public ResponseResult<Object> getUnReadMessageNum(@RequestParam(value = "partnerId", required = true,defaultValue = "0") String partnerId) {
return ResponseResult.success(pushService.getUnReadMessageNum(partnerId));
}
}