package com.liquidnet.service.platform.controller;

import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.kylin.service.other.DamaiService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/platform/damai")
public class PlatformDamaiController {

    @Autowired
    private DamaiService damaiService;


    @ApiOperation("定时同步大麦（扫描所有开启同步的演出）")
    @PostMapping(value = "/scheduledSync")
    public ResponseDto<Boolean> scheduledSyncDamai() {
        return damaiService.scheduledSyncDamai();
    }
}
