| | |
| | | import cc.mrbird.febs.mall.vo.MallGoodsCommentVo; |
| | | import cc.mrbird.febs.mall.vo.MallGoodsDetailsVo; |
| | | import cc.mrbird.febs.mall.vo.MallGoodsListVo; |
| | | import cc.mrbird.febs.websocket.WsSessionManager; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | |
| | | @Slf4j |
| | | @Validated |
| | | @RestController |
| | | @CrossOrigin("*") |
| | | @RequiredArgsConstructor |
| | | @RequestMapping(value = "/api/goods") |
| | | @Api(value = "ApiMallGoodsController", tags = "商城商品接口类") |
| | |
| | | return new FebsResponse().success().data(mallGoodsService.findMallGoodsCommentByGoodsId(queryDto)); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * TODO 测试 |
| | | */ |
| | | |
| | | @ApiOperation(value = "模拟服务器给链接的websocket发送消息", notes = "模拟服务器给链接的websocket发送消息") |
| | | @GetMapping(value = "/token//{inviteId}/{text}") |
| | | public FebsResponse token(@PathVariable String inviteId, @PathVariable String text) { |
| | | WsSessionManager.sendMsgToOne(inviteId,text); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | } |