|
@@ -34,7 +34,7 @@ public class LiveWatchUserController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 查询直播间观看用户列表
|
|
* 查询直播间观看用户列表
|
|
|
*/
|
|
*/
|
|
|
-// @PreAuthorize("@ss.hasPermi('live:liveWatchUser:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('live:liveWatchUser:list')")
|
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(LiveWatchUser liveWatchUser)
|
|
public TableDataInfo list(LiveWatchUser liveWatchUser)
|
|
|
{
|
|
{
|
|
@@ -43,6 +43,7 @@ public class LiveWatchUserController extends BaseController
|
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('live:liveWatchUser:list')")
|
|
|
@GetMapping("/liveUserTotals")
|
|
@GetMapping("/liveUserTotals")
|
|
|
public R liveUserTotals(LiveWatchUser liveWatchUser)
|
|
public R liveUserTotals(LiveWatchUser liveWatchUser)
|
|
|
{
|
|
{
|
|
@@ -50,7 +51,7 @@ public class LiveWatchUserController extends BaseController
|
|
|
return liveWatchUserService.liveUserTotals(liveWatchUser);
|
|
return liveWatchUserService.liveUserTotals(liveWatchUser);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // @PreAuthorize("@ss.hasPermi('live:liveWatchUser:list')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('live:liveWatchUser:list')")
|
|
|
@GetMapping("/watchUserList")
|
|
@GetMapping("/watchUserList")
|
|
|
public TableDataInfo watchUserList(@RequestParam Map<String,Object> param) {
|
|
public TableDataInfo watchUserList(@RequestParam Map<String,Object> param) {
|
|
|
|
|
|
|
@@ -59,6 +60,7 @@ public class LiveWatchUserController extends BaseController
|
|
|
return getDataTable(onLineUserList);
|
|
return getDataTable(onLineUserList);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('live:liveWatchUser:list')")
|
|
|
@GetMapping("/dashBoardWatchUserList")
|
|
@GetMapping("/dashBoardWatchUserList")
|
|
|
public TableDataInfo dashBoardWatchUserList(@RequestParam Map<String,Object> param) {
|
|
public TableDataInfo dashBoardWatchUserList(@RequestParam Map<String,Object> param) {
|
|
|
|
|
|
|
@@ -70,7 +72,7 @@ public class LiveWatchUserController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 导出直播间观看用户列表
|
|
* 导出直播间观看用户列表
|
|
|
*/
|
|
*/
|
|
|
-// @PreAuthorize("@ss.hasPermi('live:liveWatchUser:export')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('live:liveWatchUser:export')")
|
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.EXPORT)
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.EXPORT)
|
|
|
@GetMapping("/export")
|
|
@GetMapping("/export")
|
|
|
public AjaxResult export(LiveWatchUser liveWatchUser)
|
|
public AjaxResult export(LiveWatchUser liveWatchUser)
|
|
@@ -83,7 +85,7 @@ public class LiveWatchUserController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 获取直播间观看用户详细信息
|
|
* 获取直播间观看用户详细信息
|
|
|
*/
|
|
*/
|
|
|
-// @PreAuthorize("@ss.hasPermi('live:liveWatchUser:query')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('live:liveWatchUser:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
{
|
|
{
|
|
@@ -93,7 +95,7 @@ public class LiveWatchUserController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 新增直播间观看用户
|
|
* 新增直播间观看用户
|
|
|
*/
|
|
*/
|
|
|
-// @PreAuthorize("@ss.hasPermi('live:liveWatchUser:add')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('live:liveWatchUser:add')")
|
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.INSERT)
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody LiveWatchUser liveWatchUser)
|
|
public AjaxResult add(@RequestBody LiveWatchUser liveWatchUser)
|
|
@@ -104,7 +106,7 @@ public class LiveWatchUserController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 修改直播间观看用户
|
|
* 修改直播间观看用户
|
|
|
*/
|
|
*/
|
|
|
-// @PreAuthorize("@ss.hasPermi('live:liveWatchUser:edit')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('live:liveWatchUser:edit')")
|
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.UPDATE)
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody LiveWatchUser liveWatchUser)
|
|
public AjaxResult edit(@RequestBody LiveWatchUser liveWatchUser)
|
|
@@ -115,7 +117,7 @@ public class LiveWatchUserController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 删除直播间观看用户
|
|
* 删除直播间观看用户
|
|
|
*/
|
|
*/
|
|
|
-// @PreAuthorize("@ss.hasPermi('live:liveWatchUser:remove')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('live:liveWatchUser:remove')")
|
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.DELETE)
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
@@ -126,7 +128,7 @@ public class LiveWatchUserController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 修改直播间用户禁言状态
|
|
* 修改直播间用户禁言状态
|
|
|
*/
|
|
*/
|
|
|
-// @PreAuthorize("@ss.hasPermi('live:liveWatchUser:edit')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('live:liveWatchUser:edit')")
|
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.UPDATE)
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/changeUserState")
|
|
@PutMapping("/changeUserState")
|
|
|
public AjaxResult changeUserState(@RequestParam Long liveId, @RequestParam Long userId) {
|
|
public AjaxResult changeUserState(@RequestParam Long liveId, @RequestParam Long userId) {
|
|
@@ -136,7 +138,7 @@ public class LiveWatchUserController extends BaseController
|
|
|
/**
|
|
/**
|
|
|
* 封禁用户账号
|
|
* 封禁用户账号
|
|
|
*/
|
|
*/
|
|
|
-// @PreAuthorize("@ss.hasPermi('live:liveWatchUser:edit')")
|
|
|
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('live:liveWatchUser:edit')")
|
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.UPDATE)
|
|
@Log(title = "直播间观看用户", businessType = BusinessType.UPDATE)
|
|
|
@GetMapping("/blockUser/{userId}")
|
|
@GetMapping("/blockUser/{userId}")
|
|
|
public AjaxResult blockUser(@PathVariable Long userId) {
|
|
public AjaxResult blockUser(@PathVariable Long userId) {
|