7 changed files with 234 additions and 134 deletions
@ -1,16 +1,21 @@ |
|||
package com.huaxing; |
|||
|
|||
import org.mybatis.spring.annotation.MapperScan; |
|||
import org.springframework.boot.SpringApplication; |
|||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|||
import org.springframework.context.annotation.ComponentScan; |
|||
|
|||
@SpringBootApplication |
|||
public class IotDataBridgeApplication { |
|||
|
|||
public static void main(String[] args) { |
|||
SpringApplication.run(IotDataBridgeApplication.class, args); |
|||
System.out.println("================= iot-data-bridge started! ================="); |
|||
String banner = |
|||
"===========================================\n" + |
|||
" 中联创信低碳科技有限公司 \n" + |
|||
" http://localhost:8088 \n" + |
|||
" iot-data-bridge started! \n" + |
|||
"===========================================\n"; |
|||
System.out.println(banner); |
|||
|
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,21 @@ |
|||
package com.huaxing.data.tablemanagement.service; |
|||
|
|||
/** |
|||
* 表创建模板 |
|||
* @author 孟剑 |
|||
* @date 2025-01-20 10:32 |
|||
*/ |
|||
public interface ITableTemplateService { |
|||
|
|||
// 创建dfs表模板
|
|||
String createDfsTableTemplate(String tableName, String columnName, String columnDefinition); |
|||
|
|||
// 创建流表模板
|
|||
String createStreamTableTemplate(String tableName, String columnName, String columnDefinition); |
|||
|
|||
// 取消订阅流表模板
|
|||
String unsubscribeStreamTableTemplate(String tableName, String columnName, String columnDefinition); |
|||
|
|||
// 订阅流表模板
|
|||
String subscribeStreamTableTemplate(String tableName, String columnName, String columnDefinition); |
|||
} |
@ -0,0 +1,61 @@ |
|||
package com.huaxing.data.tablemanagement.service.impl; |
|||
|
|||
import com.huaxing.data.tablemanagement.service.ITableTemplateService; |
|||
|
|||
/** |
|||
* @ProjectName: data-bridge |
|||
* @Package: com.huaxing.data.tablemanagement.service.impl |
|||
* @ClassName: TableTemplateServiceImpl |
|||
* @Author: swordmeng8@163.com |
|||
* @Description: 表操作模板 |
|||
* @Date: 2025/1/20 10:38 |
|||
* @Version: 1.0 |
|||
*/ |
|||
|
|||
public class TableTemplateServiceImpl implements ITableTemplateService { |
|||
|
|||
/** |
|||
* @Description 创建 DFS 表模板 |
|||
* @Author swordmeng8@163.com |
|||
* @Date 2025/1/20 10:46 |
|||
* @Version v1.0 |
|||
**/ |
|||
@Override |
|||
public String createDfsTableTemplate(String tableName, String columnName, String columnDefinition) { |
|||
|
|||
return null; |
|||
} |
|||
|
|||
/** |
|||
* @Description 创建流表模板 |
|||
* @Author swordmeng8@163.com |
|||
* @Date 2025/1/20 10:46 |
|||
* @Version v1.0 |
|||
**/ |
|||
@Override |
|||
public String createStreamTableTemplate(String tableName, String columnName, String columnDefinition) { |
|||
return null; |
|||
} |
|||
|
|||
/** |
|||
* @Description 取消订阅流表模板 |
|||
* @Author swordmeng8@163.com |
|||
* @Date 2025/1/20 10:46 |
|||
* @Version v1.0 |
|||
**/ |
|||
@Override |
|||
public String unsubscribeStreamTableTemplate(String tableName, String columnName, String columnDefinition) { |
|||
return null; |
|||
} |
|||
|
|||
/** |
|||
* @Description 订阅流表模板 |
|||
* @Author swordmeng8@163.com |
|||
* @Date 2025/1/20 10:46 |
|||
* @Version v1.0 |
|||
**/ |
|||
@Override |
|||
public String subscribeStreamTableTemplate(String tableName, String columnName, String columnDefinition) { |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,8 @@ |
|||
________ ________ _________ ________ ________ _________ ________ ________ ________ ________ _______ |
|||
|\ ___ \|\ __ \|\___ ___\\ __ \ |\ ____\|\___ ___\\ __ \|\ __ \|\ __ \|\ ____\|\ ___ \ |
|||
\ \ \_|\ \ \ \|\ \|___ \ \_\ \ \|\ \ ____________\ \ \___|\|___ \ \_\ \ \|\ \ \ \|\ \ \ \|\ \ \ \___|\ \ __/| |
|||
\ \ \ \\ \ \ __ \ \ \ \ \ \ __ \|\____________\ \_____ \ \ \ \ \ \ \\\ \ \ _ _\ \ __ \ \ \ __\ \ \_|/__ |
|||
\ \ \_\\ \ \ \ \ \ \ \ \ \ \ \ \ \|____________|\|____|\ \ \ \ \ \ \ \\\ \ \ \\ \\ \ \ \ \ \ \|\ \ \ \_|\ \ |
|||
\ \_______\ \__\ \__\ \ \__\ \ \__\ \__\ ____\_\ \ \ \__\ \ \_______\ \__\\ _\\ \__\ \__\ \_______\ \_______\ |
|||
\|_______|\|__|\|__| \|__| \|__|\|__| |\_________\ \|__| \|_______|\|__|\|__|\|__|\|__|\|_______|\|_______| |
|||
\|_________| |
Loading…
Reference in new issue