SZH
2022-06-29 00a4338443d09932ed4c56266d8c4e73ff60b46c
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
32
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);
    }
 
    @RequestMapping(value = "/test/get",method = RequestMethod.GET)
    public Object testDataSourceGet(Long id){
        return demoService.getById(id);
    }
 
    @RequestMapping(value = "/test/save",method = RequestMethod.GET)
    public Object testDataSourceSave(String title){
        return demoService.saveOne(title);
    }
 
 
}