zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
commit | author | age
a18bfa 1 package cn.autoform.web.controller.formoperation;
Z 2
3 import java.util.List;
4
5 import org.springframework.beans.factory.annotation.Autowired;
6 import org.springframework.web.bind.annotation.RequestBody;
7 import org.springframework.web.bind.annotation.RequestMapping;
8 import org.springframework.web.bind.annotation.RequestMethod;
9 import org.springframework.web.bind.annotation.RestController;
10
11 import cn.autoform.db.entity.FormOperationEntity;
12 import cn.autoform.db.entity.TenantEntity;
13 import cn.autoform.fw.exception.RestResult;
14 import cn.autoform.fw.utility.RestResultGenerator;
15 import cn.autoform.web.service.formoperation.FormOperationInfoService;
16
17 /**
18  * 
19  * @author huaixun.zhang
20  *
21  */
22 @RestController
23 public class FormOperationController {
24     
25     @Autowired
26     private FormOperationInfoService formOperationInfoService = null;
27     
28     /**
29      * 获取维护表单基本信息
30      * @param tenantID
31      * @return 维护表单基本信息
32      */
33     @RequestMapping(value = "${requset.formOperation01}", method = RequestMethod.POST)
34     public RestResult<List<FormOperationEntity>> getFormOperationInfoService(@RequestBody TenantEntity tenant) {
35         List<FormOperationEntity> entity = formOperationInfoService.receiveFormOperationInfo(tenant.getTenantID());
36         return RestResultGenerator.genSuccessResult(entity);
37     }
38 }