编写测试连接的代码
parent
ad75e66218
commit
4ca14c415c
|
@ -0,0 +1,18 @@
|
||||||
|
package com.muyu.source.controller;
|
||||||
|
|
||||||
|
import com.muyu.common.core.web.controller.BaseController;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Lenovo
|
||||||
|
* @ Tool:IntelliJ IDEA
|
||||||
|
* @ Author:CHX
|
||||||
|
* @ Date:2024-08-23-20:02
|
||||||
|
* @ Version:1.0
|
||||||
|
* @ Description:数据库类型控制层
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/type")
|
||||||
|
public class DataTypeController extends BaseController {
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package com.muyu.source.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.muyu.source.domain.DataType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Lenovo
|
||||||
|
* @ Tool:IntelliJ IDEA
|
||||||
|
* @ Author:CHX
|
||||||
|
* @ Date:2024-08-23-20:01
|
||||||
|
* @ Version:1.0
|
||||||
|
* @ Description:数据库类型持久层
|
||||||
|
*/
|
||||||
|
public interface DataTypeMapper extends BaseMapper<DataType> {
|
||||||
|
}
|
|
@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
import com.muyu.source.domain.DataType;
|
import com.muyu.source.domain.DataType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @author Lenovo
|
||||||
* @ Tool:IntelliJ IDEA
|
* @ Tool:IntelliJ IDEA
|
||||||
* @ Author:CHX
|
* @ Author:CHX
|
||||||
* @ Date:2024-08-23-18:59
|
* @ Date:2024-08-23-18:59
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.muyu.source.service.Impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.muyu.source.domain.DataType;
|
||||||
|
import com.muyu.source.mapper.DataTypeMapper;
|
||||||
|
import com.muyu.source.service.DataTypeService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Lenovo
|
||||||
|
* @ Tool:IntelliJ IDEA
|
||||||
|
* @ Author:CHX
|
||||||
|
* @ Date:2024-08-23-20:00
|
||||||
|
* @ Version:1.0
|
||||||
|
* @ Description:数据库类型业务实现层
|
||||||
|
*/
|
||||||
|
public class DataTypeServiceImpl extends ServiceImpl<DataTypeMapper, DataType> implements DataTypeService {
|
||||||
|
}
|
Loading…
Reference in New Issue