Commit 1546f950 by 吕明尚

房间详情增加默认值

parent ceeec72c
...@@ -51,7 +51,7 @@ public class SRoomController extends BaseController { ...@@ -51,7 +51,7 @@ public class SRoomController extends BaseController {
*/ */
@ApiOperation(value = "房间详情") @ApiOperation(value = "房间详情")
@RequestMapping(value = "/info", method = RequestMethod.GET) @RequestMapping(value = "/info", method = RequestMethod.GET)
public R<SRoomVo> getInfo(@RequestParam("id") Long id, @RequestParam("type") Long type) { public R<SRoomVo> getInfo(@RequestParam("id") Long id, @RequestParam(value = "type", defaultValue = "0") Long type) {
return R.ok(sRoomService.queryById(id, type)); return R.ok(sRoomService.queryById(id, type));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment