package com.cool.store.controller.webc;

import com.cool.store.response.ResponseResult;
import com.cool.store.service.OSSService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author suzhuhong
 * @Date 2024/3/28 14:25
 * @Version 1.0
 */
@RestController
@Api(tags ="小程序OSS配置")
@RequestMapping({"/mini/oss"})
@Slf4j
public class MiniOssClientController {

    @Resource
    OSSService ossService;

    @GetMapping("/getUploadFileConfig")
    public ResponseResult getUploadFileConfig(){
        return ResponseResult.success(ossService.getUploadFileConfig());
    }
}
