package com.playlet.web.controller.app;

import com.playlet.common.core.domain.Result;
import com.playlet.system.domain.PlayletPlatformFlow;
import com.playlet.web.service.app.PlayletFlowAppService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api(tags = "短剧*挂载配置")
@RestController
@RequestMapping(value = "/app/flow")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PlayletPlatformFlowAppController {

    private final PlayletFlowAppService playletFlowAppService;

    @ResponseBody
    @PostMapping("/getList")
    @ApiOperation(value = "查询挂载配置列表")
    public Result<List<PlayletPlatformFlow>> getList(@RequestBody PlayletPlatformFlow platformFlow) {
        return Result.success(playletFlowAppService.getFlowList(platformFlow));
    }

}
