package com.jwipc.order.controller.pc;

import com.jwipc.order.logic.PcnManagerLogic;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.jwipc.order.constant.ModuleConst.MODULE_ROOT;

/**
 * <p>
 * PCN文件表 前端控制器
 * </p>
 *
 * @author zx
 * @since 2024-03-20
 */
@RestController
@RequestMapping(MODULE_ROOT + "/pcn/files/rest")
@RequiredArgsConstructor
@Slf4j
public class PcnChangeFileRestController {


    @Autowired
    PcnManagerLogic pcnManagerLogic;

    @RequestMapping("/getFileList")
    public ResponseEntity getFileList(Long appListId) {

        return ResponseEntity.ok(pcnManagerLogic.getFileList(appListId));

    }

}
