zhangf
2024-05-08 0414ddb0b2b3a7199ae6181a770f97ac140dbd73
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.gkhy.safePlatform.emergency.controller;
 
import com.gkhy.safePlatform.account.rpc.apimodel.AccountAuthService;
import com.gkhy.safePlatform.account.rpc.apimodel.AccountAuthService;
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("/emgc")
public class Test {
 
    @DubboReference(check = false)
    private AccountAuthService accountAuthService;
 
//    @Autowired
//    private DemoService demoService;
//
//    @RequestMapping(value = "/t/rpc",method = RequestMethod.GET)
//    public Object testRpc(String id){
//        String resp = userAccountService.sayName(id);
//        return resp;
//    }
//
//    @RequestMapping(value = "/t/get",method = RequestMethod.GET)
//    public Object testEmergencyGetById(Long id){
//        return demoService.getById(id);
//    }
}