package com.gkhy.safePlatform.goalManage.controller;
|
|
import com.gkhy.safePlatform.goalManage.service.DemoService;
|
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("/goal/demo")
|
public class DemoController {
|
|
@Autowired
|
private DemoService demoService;
|
|
@RequestMapping(value = "/test/rpc",method = RequestMethod.GET)
|
public Object testRpc(String name,String email){
|
return demoService.getUserDescInfo(name,email);
|
}
|
}
|