package com.vci.web.controller;
|
|
import com.vci.corba.common.PLException;
|
import com.vci.pagemodel.UIContentVO;
|
import com.vci.pagemodel.UIFormDefineVO;
|
import com.vci.pagemodel.UITableDefineVO;
|
import com.vci.starter.web.annotation.controller.VciUnCheckRight;
|
import com.vci.starter.web.annotation.log.VciBusinessLog;
|
import com.vci.web.service.UIEngineServiceI;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* 界面控制器
|
* @author weidy
|
* @date 2021-3-1
|
*/
|
@VciBusinessLog(modelName="界面控制器",notStore=true)
|
@RestController
|
@RequestMapping("/webUIController")
|
public class WebUIController {
|
|
/**
|
* 界面的服务
|
*/
|
@Autowired
|
private UIEngineServiceI uiService;
|
|
/**
|
* 获取UI上下文的定义
|
* @param btmType 业务类型
|
* @param id 编号
|
* @return UI上下文
|
*/
|
@GetMapping("/getUIContentByBtmTypeAndId")
|
@VciUnCheckRight
|
public UIContentVO getUIContentByBtmTypeAndId(String btmType,String id){
|
return uiService.getUIContentByBtmTypeAndId(btmType,id);
|
}
|
|
/**
|
* 使用表单的编号获取定义的对象
|
* @param btmType 业务类型
|
* @param id 表单的编号
|
* @return 表单的定义
|
*/
|
@GetMapping("/getFormDefineById")
|
@VciUnCheckRight
|
public UIFormDefineVO getFormDefineById(String btmType,String id){
|
return uiService.getFormById(btmType,id);
|
}
|
|
/**
|
* 使用表格的编号获取定义的对象
|
* @param btmType 业务类型
|
* @param id 表单的编号
|
* @return 表单的定义
|
*/
|
@GetMapping("/getTableDefineById")
|
public UITableDefineVO getTableDefineById(String btmType,String id) throws PLException {
|
return uiService.getTableById(btmType,id);
|
}
|
|
|
}
|