package com.chenyang.nse.bussiness.controller;

import com.chenyang.nse.bussiness.annot.PassToken;
import com.chenyang.nse.bussiness.init.DataInitLoad;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"/notice"})
public class NoticeController {
   @Autowired
   DataInitLoad dataInitLoad;

   @GetMapping({"/classifyAndLevelAndAreaChange"})
   @PassToken
   public void classifyAndLevelAndAreaChange(String dataSystemId, String schemaName, String tableName, String columnName) throws IOException {
      System.out.println("=============接收分类分级数据域变更通知=============");
      this.dataInitLoad.initColumnAndClassifyAndLevelAndAreaRelation();
   }
}
