package com.liquidnet.service.platform.controller.kylin;

import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.platform.service.impl.kylin.DataImpl;
import io.swagger.annotations.Api;
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.RequestParam;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "数据迁移 (会重复)")
@RestController
@RequestMapping("data")
public class DataController {

    @Autowired
    private DataImpl data;


    @PostMapping("initScore")
    @ApiOperation("积分数据迁移")
    public ResponseDto<Boolean> initScore(@RequestParam("page") int page, @RequestParam("size") int size) {
        Boolean result = data.initScore(page,size);
        return ResponseDto.success(result);
    }
}
