# CrewFaxController.java

    package cloud.wconnect.frontoffice.controller.clc;

    import cloud.wconnect.commonlib.annotation.ApiId;
    import cloud.wconnect.commonlib.component.SessionContext;
    import cloud.wconnect.frontoffice.pojo.dto.clc.ClcPropertyDTO;
    import cloud.wconnect.frontoffice.pojo.query.clc.CrewFaxQuery;
    import cloud.wconnect.frontoffice.service.clc.IClcSiteCrewFaxService;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.web.bind.annotation.GetMapping;
    import org.springframework.web.bind.annotation.RequestMapping;
    import org.springframework.web.bind.annotation.RestController;

    import java.util.List;

    /**
     * 控制层：Crew Fax
     *
     * @author yyt
     * 2023/7/25
     */
    @RestController
    @RequestMapping("/clc/crew-fax")
    public class CrewFaxController {

        @Autowired
        private IClcSiteCrewFaxService clcSiteCrewFaxService;
        @Autowired
        private SessionContext sessionContext;

        /**
         * 获取 crew fax 列表数据
         *
         * @param property 资产标识
         * @param query    查询条件
         * @return crew fax 列表数据
         * @author yyt
         * @date 2023/7/25
         */
        @ApiId(486)
        @GetMapping
        public List<ClcPropertyDTO> listCrewFax(String property, CrewFaxQuery query) {
            return clcSiteCrewFaxService.listCrewFax(sessionContext.getPropertyId(property), sessionContext.getPropertyIds(), query);
        }

    }