@RestController @RequestMapping(value="/devtools/customObj") public class CustomObjController extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
SchemaService |
schemaService |
TableService |
tableService |
| 构造器和说明 |
|---|
CustomObjController() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.http.ResponseEntity |
add(String tableId,
String tableType)
添加自定义对象
|
org.springframework.http.ResponseEntity |
delete(String ids)
批量删除自定义对象
|
org.springframework.http.ResponseEntity |
form(String id)
根据id查询数据
|
org.springframework.http.ResponseEntity |
getByValue(String value) |
org.springframework.http.ResponseEntity<com.baomidou.mybatisplus.core.metadata.IPage<CustomObj>> |
list(CustomObj customObj,
com.baomidou.mybatisplus.extension.plugins.pagination.Page<CustomObj> page)
自定义对象列表数据
|
org.springframework.http.ResponseEntity |
save(CustomObjDTO customObjDTO)
保存自定义对象
|
@Autowired public SchemaService schemaService
@Autowired public TableService tableService
@GetMapping(value="list") public org.springframework.http.ResponseEntity<com.baomidou.mybatisplus.core.metadata.IPage<CustomObj>> list(CustomObj customObj, com.baomidou.mybatisplus.extension.plugins.pagination.Page<CustomObj> page) throws Exception
Exception@GetMapping(value="queryById")
public org.springframework.http.ResponseEntity form(@RequestParam(value="id")
String id)
@PostMapping(value="save")
public org.springframework.http.ResponseEntity save(@RequestBody
CustomObjDTO customObjDTO)
@PostMapping(value="add")
public org.springframework.http.ResponseEntity add(@RequestParam(name="tableId",required=false)
String tableId,
@RequestParam(name="tableType",required=false)
String tableType)
@GetMapping(value="getByValue")
public org.springframework.http.ResponseEntity getByValue(@RequestParam(value="value")
String value)
@DeleteMapping(value="delete")
public org.springframework.http.ResponseEntity delete(@RequestParam(value="ids")
String ids)
Copyright © 2022. All rights reserved.