package cn.wisenergy.web.admin.controller.app;


import cn.wisenergy.service.app.AccountService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 86187
 */
@Api(tags = "表镜像管理")
@RestController
@RequestMapping("/image")
@Slf4j
public class LastAccountController {
    @Autowired
    private AccountService accountService;

    @ApiOperation(value = "复制表-结构和数据", notes = "复制表-结构和数据", httpMethod = "PUT")
    @PutMapping("/add")
    public void copyTable(){
        accountService.mirrorImage();
    }
}
