package com.uas.controller; import com.uas.service.SyncOrgElementsBaseInfoService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import java.util.HashMap; import java.util.Map; /** * @author koul * @email koul@usoftchina.com * @date 2021-05-17 13:39 */ @Controller @RequestMapping("/org") public class SyncOrgElementsBaseInfoController { @Autowired private SyncOrgElementsBaseInfoService syncOrgElementsBaseInfoService; /** * */ @RequestMapping(value = "/syncOrgElementsBaseInfo/sendSyncOrgElementsBaseInfo",method = RequestMethod.GET) @ResponseBody public Map sendSyncOrgElementsBaseInfo() { Map modelMap = new HashMap(); modelMap.put("log", syncOrgElementsBaseInfoService.sendSyncOrgElementsBaseInfo()); modelMap.put("success", true); return modelMap; } @RequestMapping(value = "/test") @ResponseBody public String test() { return "test"; } }