package com.cico.nest.lcdp.boot.core.infra.api.file;

import com.cico.nest.lcdp.boot.api.infra.file.FileApi;
import com.cico.nest.lcdp.boot.core.infra.service.file.FileService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;


/**
 * 文件 API 实现类
 *
 * @author zws
 */
@Service
@Validated
public class FileApiImpl implements FileApi {

    @Resource
    private FileService fileService;

    @Override
    public String createFile(String name, String path, byte[] content) {
        return fileService.createFile(name, path, content);
    }

}
