master
zzh 2024-08-21 20:00:00 +08:00
parent 602d30c514
commit b42906b1d0
3 changed files with 16 additions and 3 deletions

View File

@ -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 ;

View File

@ -10,8 +10,21 @@ import lombok.Data;
* @Date2024/8/21 15:09 * @Date2024/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;
} }

View File

@ -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));
} }