Package net.risesoft.controller
Class BusinessController
- java.lang.Object
-
- net.risesoft.controller.BusinessController
-
@Validated @RestController @RequestMapping(value="/api/rest/business", produces="application/json") public class BusinessController extends Object
-
-
Constructor Summary
Constructors Constructor Description BusinessController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.risesoft.pojo.Y9Result<String>deleteData(String id)删除业务分类数据net.risesoft.pojo.Y9Result<List<net.risesoft.y9public.entity.DataBusinessEntity>>findAll()获取业务分类列表net.risesoft.pojo.Y9Page<net.risesoft.y9public.entity.DataBusinessEntity>getAll(String name, String parentId, Integer page, Integer size)分页获取业务分类net.risesoft.pojo.Y9Result<net.risesoft.y9public.entity.DataBusinessEntity>getDataById(String id)根据id获取业务分类信息net.risesoft.pojo.Y9Result<net.risesoft.y9public.entity.DataBusinessEntity>saveData(net.risesoft.y9public.entity.DataBusinessEntity entity)保存业务分类信息
-
-
-
Method Detail
-
getAll
@GetMapping("/getAll") public net.risesoft.pojo.Y9Page<net.risesoft.y9public.entity.DataBusinessEntity> getAll(String name, String parentId, Integer page, Integer size)分页获取业务分类- Parameters:
name-parentId-page-size-- Returns:
-
findAll
@GetMapping("/findAll") public net.risesoft.pojo.Y9Result<List<net.risesoft.y9public.entity.DataBusinessEntity>> findAll()获取业务分类列表- Returns:
-
saveData
@PostMapping("/saveData") public net.risesoft.pojo.Y9Result<net.risesoft.y9public.entity.DataBusinessEntity> saveData(net.risesoft.y9public.entity.DataBusinessEntity entity)保存业务分类信息- Parameters:
entity-- Returns:
-
getDataById
@GetMapping("/getDataById") public net.risesoft.pojo.Y9Result<net.risesoft.y9public.entity.DataBusinessEntity> getDataById(@RequestParam String id)根据id获取业务分类信息- Parameters:
id-- Returns:
-
-