0821
parent
602d30c514
commit
b42906b1d0
|
@ -25,7 +25,7 @@ import java.util.Date;
|
||||||
public class DataSources extends BaseEntity {
|
public class DataSources extends BaseEntity {
|
||||||
/** id */
|
/** id */
|
||||||
@TableId
|
@TableId
|
||||||
private Integer id ;
|
private Long id ;
|
||||||
|
|
||||||
/** 数据来源类型 */
|
/** 数据来源类型 */
|
||||||
private String type ;
|
private String type ;
|
||||||
|
|
|
@ -10,8 +10,21 @@ import lombok.Data;
|
||||||
* @Date:2024/8/21 15:09
|
* @Date:2024/8/21 15:09
|
||||||
* 不准抄代码,添加注释,清楚每一行代码意思
|
* 不准抄代码,添加注释,清楚每一行代码意思
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
@TableName(value="data_type")
|
@TableName(value="data_type")
|
||||||
public class DataType {
|
public class DataType {
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String driverClass;
|
||||||
|
|
||||||
|
private String prefix;
|
||||||
|
|
||||||
|
private String suffix;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class DataSourcesController {
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 实例对象
|
* @return 实例对象
|
||||||
*/
|
*/
|
||||||
@GetMapping("{id}")
|
@GetMapping("/{id}")
|
||||||
public Result<DataSources> queryById(@PathVariable Integer id){
|
public Result<DataSources> queryById(@PathVariable Integer id){
|
||||||
return Result.success(dataSourcesService.getById(id));
|
return Result.success(dataSourcesService.getById(id));
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ public class DataSourcesController {
|
||||||
* @param id 主键
|
* @param id 主键
|
||||||
* @return 是否成功
|
* @return 是否成功
|
||||||
*/
|
*/
|
||||||
@DeleteMapping("{id}")
|
@DeleteMapping("/{id}")
|
||||||
public Result<Boolean> deleteById(@PathVariable Integer id){
|
public Result<Boolean> deleteById(@PathVariable Integer id){
|
||||||
return Result.success(dataSourcesService.removeById(id));
|
return Result.success(dataSourcesService.removeById(id));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue