package cn.autoform.web.controller.tabConfiguration; 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.web.service.tabConfiguration.TabConfigurationService; import cn.autoform.db.entity.TabConfigurationEntity; import cn.autoform.fw.exception.RestResult; import cn.autoform.fw.utility.RestResultGenerator; @RestController public class TabConfigurationController { @Autowired TabConfigurationService tabConfigurationService; @RequestMapping(value="${requset.tabConfiguration01}", method=RequestMethod.POST) public RestResult saveTabConfiguration(@RequestBody TabConfigurationEntity tabConEntity){ tabConfigurationService.saveTabConfiguration(tabConEntity); return RestResultGenerator.genSuccessResult(null); } @RequestMapping(value="${requset.tabConfiguration02}", method=RequestMethod.POST) public RestResult> queryTabConfiguration(@RequestBody TabConfigurationEntity tabConEntity){ return RestResultGenerator.genSuccessResult(tabConfigurationService.queryTabConfiguration(tabConEntity)); } }