package com.red.circle.console.adapter.app.sys;


import com.red.circle.console.app.dto.clienobject.sys.SysReportedUserCO;
import com.red.circle.console.app.service.app.sys.SysReportedUserService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.inner.model.cmd.sys.SysReportedQryCmd;
import lombok.RequiredArgsConstructor;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 被举报用户 前端控制器
 * </p>
 *
 * @author pengliang
 * @since 2019-11-08
 */
@RestController
@RequestMapping(value = "/sys/reported/user", produces = MediaType.APPLICATION_JSON_VALUE)
@RequiredArgsConstructor
public class SysReportedUserRestController extends BaseController {

  private final SysReportedUserService sysReportedUserService;

  /**
   * 举报分页列表.
   */
  @GetMapping("/page")
  public PageResult<SysReportedUserCO> pageSysReportedUser(
      SysReportedQryCmd sysReportedQuery) {
    return sysReportedUserService.pageSysReportedUserVO(sysReportedQuery);
  }
}
