diff --git a/coolstore-partner-web/src/main/java/com/cool/store/controller/webc/AskBotController.java b/coolstore-partner-web/src/main/java/com/cool/store/controller/webc/AskBotController.java new file mode 100644 index 000000000..d5786f2d1 --- /dev/null +++ b/coolstore-partner-web/src/main/java/com/cool/store/controller/webc/AskBotController.java @@ -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 getUnReadMessageNum(@RequestParam(value = "partnerId", required = true,defaultValue = "0") String partnerId) { + return ResponseResult.success(pushService.getUnReadMessageNum(partnerId)); + } + + +}