package com.ruoyi.cms.controller.cms;

import com.ruoyi.cms.domain.JobContact;
import com.ruoyi.cms.service.JobContactService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;


import java.util.List;


/**
 * 岗位联系人
 *
 * @author 
 * @email 
 * @date 2025-09-30 15:57:06
 */
@RestController
@RequestMapping("/cms/jobcontact")
@Api(tags = "后台：岗位联系人")
public class JobContactController extends BaseController {
    @Autowired
    private JobContactService jobContactService;

    /**
     * 列表
     */
    @ApiOperation("岗位联系人列表")
    @PreAuthorize("@ss.hasPermi('cms:jobcontact:list')")
    @RequestMapping("/list")
    public TableDataInfo list(JobContact jobContact){
        startPage();
        List<JobContact> list = jobContactService.getSelectList(jobContact);
        return getDataTable(list);
    }

}
