package com.njcn.gather.tool.parsepqdif.service.impl;

import com.njcn.gather.tool.parsepqdif.pojo.vo.PqdifParseResponse;
import com.njcn.gather.tool.parsepqdif.service.ParsePqdifService;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * PQDIF 解析服务实现。
 */
@Service
public class ParsePqdifServiceImpl implements ParsePqdifService {

    private static final String STATUS_NOT_SUPPORTED = "NOT_SUPPORTED";

    @Override
    public PqdifParseResponse parse(MultipartFile pqdifFile) {
        PqdifParseResponse response = new PqdifParseResponse();
        response.setStatus(STATUS_NOT_SUPPORTED);
        response.setMessage("PQDIF解析功能待实现");
        response.setFileName(pqdifFile == null ? null : pqdifFile.getOriginalFilename());
        return response;
    }
}
