package com.cpop.system.business.controller.mini;

import com.cpop.core.base.R;
import com.cpop.core.config.CpopConfig;
import com.cpop.core.config.ServerConfig;
import com.cpop.core.handler.TencentCosHandler;
import com.cpop.core.utils.file.FileUploadUtils;
import com.cpop.core.utils.file.FileUtils;
import com.cpop.system.business.bo.SyncBrandAndStoreBo;
import com.cpop.system.business.service.StoreService;
import com.cpop.system.business.vo.SysFileVo;
import com.qcloud.cos.model.UploadResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author DB
 * @createTime 2023/09/13 15:10
 * @description 通用接口
 */
@Slf4j
@Api(tags = "通用接口")
@RestController
@RequestMapping("/mini/sysCommon")
public class MiniSysCommonController {

    @Autowired
    private StoreService storeService;

    /**
     * 小程序同步品牌和校区
     * @author DB
     * @since 2023/12/21
     * @param bo 请求参数
     * @return R<SysFileVo>
     */
    @Deprecated
    @ApiOperation("小程序同步品牌和校区")
    @PostMapping("/miniSyncBrandAndStore")
    public R<Void> miniSyncBrandAndStore(@RequestBody SyncBrandAndStoreBo bo) {
        storeService.miniSyncBrandAndStore(bo);
        return R.ok();
    }
}
