package cn.autoform.web.controller.formoperation;
|
|
import java.util.List;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMethod;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import cn.autoform.db.entity.FormOperationEntity;
|
import cn.autoform.db.entity.TenantEntity;
|
import cn.autoform.fw.exception.RestResult;
|
import cn.autoform.fw.utility.RestResultGenerator;
|
import cn.autoform.web.service.formoperation.FormOperationInfoService;
|
|
/**
|
*
|
* @author huaixun.zhang
|
*
|
*/
|
@RestController
|
public class FormOperationController {
|
|
@Autowired
|
private FormOperationInfoService formOperationInfoService = null;
|
|
/**
|
* 获取维护表单基本信息
|
* @param tenantID
|
* @return 维护表单基本信息
|
*/
|
@RequestMapping(value = "${requset.formOperation01}", method = RequestMethod.POST)
|
public RestResult<List<FormOperationEntity>> getFormOperationInfoService(@RequestBody TenantEntity tenant) {
|
List<FormOperationEntity> entity = formOperationInfoService.receiveFormOperationInfo(tenant.getTenantID());
|
return RestResultGenerator.genSuccessResult(entity);
|
}
|
}
|