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