package com.gkhy.safePlatform.safeCheck.controller; import com.gkhy.safePlatform.account.rpc.apimodel.AccountAuthService; import com.gkhy.safePlatform.safeCheck.entity.SafeCheckWorkBak20220718; import com.gkhy.safePlatform.safeCheck.service.SafeCheckService; import org.apache.dubbo.config.annotation.DubboReference; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping(value = "/safe_t") public class SafeCheckTestController { @DubboReference(check = false) private AccountAuthService nameService; @Autowired private SafeCheckService safeCheckService; // @Autowired // private SafeCheckWorkService safeCheckWorkService; @RequestMapping(value = "/t/get/id",method = RequestMethod.GET) public Object test(Long id){ SafeCheckWorkBak20220718 work = safeCheckService.getById(id); return work; } // @RequestMapping(value = "/t/get/id2",method = RequestMethod.GET) // public Object testForBaseService(Long id){ // SafeCheckWork work = safeCheckWorkService.getById(id); // return work; // } @RequestMapping(value = "/h2") public Object test2(){ return "hhh"; } @RequestMapping(value = "/t/rpc",method = RequestMethod.GET) public Object testRpc(String id){ return nameService.sayName(id); } }