package com.artfess.rescue.base.controller;


import com.artfess.base.annotation.ApiGroup;
import com.artfess.base.constants.ApiGroupConsts;
import com.artfess.base.model.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.artfess.base.controller.BaseController;
import com.artfess.rescue.base.model.BizBaseTunnel;
import com.artfess.rescue.base.manager.BizBaseTunnelManager;


/**
 * 隧道信息表 前端控制器
 *
 * @company 阿特菲斯信息技术有限公司
 * @author 系统管理员
 * @since 2024-07-24
 */
@RestController
@RequestMapping("/bizBaseTunnel/v1/")
@Api(tags = "隧道信息")
@ApiGroup(group = {ApiGroupConsts.GROUP_BIZ_RESCUE})
public class BizBaseTunnelController extends BaseController<BizBaseTunnelManager, BizBaseTunnel> {

    @RequestMapping(value = "SynchronizeData", method = RequestMethod.GET, produces = {"application/json; charset=utf-8"})
    @ApiOperation(value = "同步数据", httpMethod = "GET", notes = "同步数据")
    public CommonResult<String> SynchronizeData(){
         baseService.SynchronizeData();
        return new CommonResult<>("同步成功");
    }
}
