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)); } } }