package com.ruoyi.cms.controller.cms;


import com.ruoyi.common.core.domain.entity.CompanyContact;
import com.ruoyi.cms.service.CompanyContactService;
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/companycontact")
@Api(tags = "后台：公司联系人")
public class CompanyContactController extends BaseController {
    @Autowired
    private CompanyContactService companyContactService;

    /**
     * 列表
     */
    @ApiOperation("公司联系人列表")
    @PreAuthorize("@ss.hasPermi('cms:companycontact:list')")
    @RequestMapping("/list")
    public TableDataInfo list(CompanyContact companyContact){
        List<CompanyContact> list=companyContactService.getSelectList(companyContact);
        return getDataTable(list);
    }

}
