ludc
2024-10-15 aecacfb404d19749260189ab1d4ee90efc92ae24
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
33
package com.vci.web.controller;
 
import com.vci.starter.web.pagemodel.BaseResult;
import com.vci.web.service.WebActionServiceI;
import com.vci.web.util.WebUtil;
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.ResponseBody;
 
/**
 * 平台定义的action
 * @author weidy
 * @date 2019/9/9 9:39
 */
@Controller
@RequestMapping("/webActionController")
public class WebActionController  {
 
    @Autowired
    private WebActionServiceI actionService;
 
 
    @RequestMapping("/getActionByOid")
    @ResponseBody
    public BaseResult getActionByOid(String oid){
        try{
            return BaseResult.success(actionService.getActionByOid(oid));
        }catch (Exception e){
            return BaseResult.fail(WebUtil.getErrorMsg(e));
        }
    }
}