package com.fdkankan.ucenter.controller.api;

import com.fdkankan.ucenter.annotation.VerifySign;
import com.fdkankan.ucenter.common.BaseController;
import com.fdkankan.ucenter.common.Result;
import com.fdkankan.ucenter.service.IFusionService;
import com.fdkankan.ucenter.vo.request.SceneParam;
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.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ucenter/fusion")
public class FusionController extends BaseController {

    @Autowired
    IFusionService fusionService;


    /**
     * 只需获取v4场景数据,无需文件夹
     */
    @PostMapping("/scene/list")
    @VerifySign
    public Result sceneList(@RequestBody SceneParam param){
        String token = request.getHeader("token");
        return Result.success(fusionService.scenePageOnlyV4List(param,token));
    }


}
