# CardDataController.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.CardDataQuery;
    import cloud.wconnect.frontoffice.service.clc.IClcCardDataService;
    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;

    /**
     * 控制层：Card Data
     *
     * @author yyt
     * 2023/7/25
     */
    @RestController
    @RequestMapping("/clc/card-data")
    public class CardDataController {

        @Autowired
        private IClcCardDataService clcCardDataService;
        @Autowired
        private SessionContext sessionContext;

        /**
         * 获取 clc card 列表数据
         *
         * @param property 资产标识
         * @param query 查询条件
         * @return clc card 列表数据
         * @author yyt
         * @date 2023/7/25
         */
        @ApiId(485)
        @GetMapping
        public List<ClcPropertyDTO> listCardData(String property, CardDataQuery query) {
            return clcCardDataService.listCardDataDTO(sessionContext.getPropertyId(property), sessionContext.getPropertyIds(), query);
        }

    }