package com.usoftchina.bi.server.controller.common;

import com.github.pagehelper.PageInfo;
import com.usoftchina.bi.core.base.RepCode;
import com.usoftchina.bi.core.base.RepEntity;
import com.usoftchina.bi.core.base.TestPage;
import com.usoftchina.bi.server.model.po.MessageLog;
import com.usoftchina.bi.server.model.po.RefreshData;
import com.usoftchina.bi.server.model.po.SyncData;
import com.usoftchina.bi.server.model.pojo.annotation.CheckToken;
import com.usoftchina.bi.server.service.common.MessageLogService;
import com.usoftchina.bi.server.service.common.UASService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;

/**
 * @Author hy
 * @Date 2019-05-15
 */
@RestController
@RequestMapping("/uas")
@Api(description = "UAS调用接口")
public class UASController {

    @Autowired
    private UASService uasService;

    @PostMapping("/refreshData")
    public String refreshData(@RequestBody RefreshData refreshData){
        return uasService.refreshData(refreshData);
    }

    @PostMapping("/sync")
    public String sync(@RequestBody SyncData syncData){
        return uasService.sync(syncData);
    }

}
