package com.sqx.modules.interviewRecord.controller;


import com.sqx.common.utils.Result;
import com.sqx.modules.app.annotation.Login;
import com.sqx.modules.interviewRecord.entity.InterviewRecord;
import com.sqx.modules.interviewRecord.service.InterviewRecordService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 面试邀约记录
 * </p>
 *
 * @author wuchang
 * @since 2023-02-08
 */
@RestController
@RequestMapping("/admin/interviewRecord/")
public class AdminInterviewRecordController {
    @Autowired
    private InterviewRecordService recordService;

    @ApiOperation("获取面试记录列表")
    @GetMapping("interviewList")
    public Result interviewList(Integer page, Integer limit, InterviewRecord interviewRecord) {
        return Result.success().put("data", recordService.interviewList(page, limit, interviewRecord));
    }

    @ApiOperation("获取面试记录信息")
    @GetMapping("getInterviewInfo")
    public Result getInterviewInfo(Long recordId){
        return Result.success().put("data", recordService.getInterviewInfo(recordId));
    }


}

