@RestController @RequestMapping(value="/fooBar") public class FooBarController extends BaseController
FooBar 前端控制器
| Constructor and Description |
|---|
FooBarController() |
| Modifier and Type | Method and Description |
|---|---|
ApiResult<Boolean> |
addFooBar(@Valid FooBar fooBar)
添加FooBar
|
ApiResult<Boolean> |
deleteFooBar(Long id)
删除FooBar
|
ApiResult<FooBarQueryVo> |
getFooBar(Long id)
获取FooBar
|
ApiResult<Paging<FooBarQueryVo>> |
getFooBarPageList(@Valid FooBarQueryParam fooBarQueryParam)
FooBar分页列表
|
ApiResult<Boolean> |
updateFooBar(@Valid FooBar fooBar)
修改FooBar
|
getRequest, getResponsefail, fail, ok@PostMapping(value="/add") public ApiResult<Boolean> addFooBar(@Valid @RequestBody @Valid FooBar fooBar) throws Exception
Exception@PostMapping(value="/update") public ApiResult<Boolean> updateFooBar(@Valid @RequestBody @Valid FooBar fooBar) throws Exception
Exception@PostMapping(value="/delete/{id}")
public ApiResult<Boolean> deleteFooBar(@PathVariable(value="id")
Long id)
throws Exception
Exception@GetMapping(value="/info/{id}")
public ApiResult<FooBarQueryVo> getFooBar(@PathVariable(value="id")
Long id)
throws Exception
Exception@PostMapping(value="/getPageList") public ApiResult<Paging<FooBarQueryVo>> getFooBarPageList(@Valid @RequestBody @Valid FooBarQueryParam fooBarQueryParam) throws Exception
ExceptionCopyright © 2019. All rights reserved.