package com.unis.biz.modular.common.controller;

import com.unis.common.pojo.CommonResult;
import com.unis.dev.api.DevFileApi;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

/**
 * 公共接口
 *
 * @author ybw
 * @version V1.0
 * @className UploadController
 * @date 2024/4/18
 **/
@RestController
@Validated
public class CommonController {

    @Resource
    private DevFileApi devFileApi;

//    /**
//     * 上传文件，返回访问地址
//     * 上传文件到minio
//     *
//     * @param file
//     * @methodName: storageFileWithReturnUrlMinio
//     * @return: java.lang.String
//     * @author: ybw
//     * @date: 2024/4/11
//     **/
//    @PostMapping("/common/storageFileWithReturnUrlMinio")
//    public CommonResult<String> storageFileWithReturnUrlMinio(MultipartFile file) {
//        return CommonResult.data(devFileApi.storageFileWithReturnUrlMinio(file));
//    }
}
