控制器基类
尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负
- 作者:
- Yazhi Li
-
-
方法概要
Result<org.springframework.data.domain.Page<E>>
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
HiverBaseController
public HiverBaseController()
-
方法详细资料
-
-
get
@GetMapping("/get/{id}")
@ResponseBody
public Result<E> get(@PathVariable
ID id)
-
getAll
@GetMapping("/getAll")
@ResponseBody
public Result<List<E>> getAll()
-
getByPage
@GetMapping("/getByPage")
@ResponseBody
public Result<org.springframework.data.domain.Page<E>> getByPage(PageVo page)
-
save
@PostMapping("/save")
@ResponseBody
public Result<E> save(E entity)
-
update
@PutMapping("/update")
@ResponseBody
public Result<E> update(E entity)
-
delByIds
@PostMapping("/delByIds")
@ResponseBody
public Result<Object> delByIds(ID[] ids)