package com.ruoyi.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.page.PageResult;
import com.ruoyi.controller.resp.RefereeUserPageResp;
import com.ruoyi.frequency.refereeuser.service.RefereeUserService;
import com.ruoyi.response.ResponseData;
import com.ruoyi.vo.PageBasic;
import com.ruoyi.vo.RyController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 邀请用户
 */
@CrossOrigin
@RestController
@RequestMapping("/api/refereeUser")
@Api(tags = "邀请用户")
public class ApiRefereeUserController extends RyController {

    @Autowired
    private RefereeUserService refereeUserService;

    @PostMapping("/refereeUserPage")
    @ApiOperation(value = "邀请用户列表", notes = "邀请用户列表")
    public ResponseData<PageResult<Page<RefereeUserPageResp>>> refereeUserPage(@RequestBody PageBasic req) {
        return refereeUserService.refereeUserPage(req, getUserVo());
    }

}