# HkEfficiencyS3Controller.java

    package cloud.wconnect.workperformance.controller.hkefficiency;

    import cloud.wconnect.commonlib.annotation.ApiId;
    import cloud.wconnect.commonlib.pojo.query.s3.DownloadFileUrlQuery;
    import cloud.wconnect.commonlib.util.S3ControllerUtil;
    import jakarta.validation.Valid;
    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.Map;

    /**
     * S3 控制层
     *
     * @author lichen
     * @date 2023/11/2
     */
    @RestController
    @RequestMapping("/housekeeping-efficiency")
    public class HkEfficiencyS3Controller {

        @Autowired
        private S3ControllerUtil s3ControllerUtil;

        /**
         * 获取s3下载文件的url
         *
         * @param downloadFileUrlQuery 查询对象
         * @return java.util.Map
         * @author lichen
         * @date 2023/11/2
         */
        @ApiId(1509)
        @GetMapping("/s3/download-file-url")
        public Map getDownloadFileUrl(@Valid DownloadFileUrlQuery downloadFileUrlQuery) {
            return s3ControllerUtil.getDownloadFileUrl(downloadFileUrlQuery);
        }

    }