新建模块

This commit is contained in:
Mrking 2024-06-30 17:23:49 +08:00
parent ac398daa72
commit 7f378a36d1
11 changed files with 140 additions and 2 deletions

View File

@ -16,13 +16,14 @@
<module name="hangtag-spring-boot-starter-job" />
<module name="hangtag-spring-boot-starter-redis" />
<module name="hangtag-spring-boot-starter-test" />
<module name="hangtag-module-gkbiz-biz" />
<module name="hangtag-spring-boot-starter-biz-ip" />
<module name="hangtag-spring-boot-starter-security" />
<module name="hangtag-module-system-api" />
<module name="hangtag-spring-boot-starter-protection" />
<module name="hangtag-module-infra-biz" />
<module name="hangtag-server" />
<module name="hangtag-spring-boot-starter-web" />
<module name="hangtag-server" />
<module name="hangtag-spring-boot-starter-websocket" />
<module name="hangtag-spring-boot-starter-biz-tenant" />
<module name="hangtag-module-system-biz" />

View File

@ -33,6 +33,10 @@
<file url="file://$PROJECT_DIR$/hangtag-framework/hangtag-spring-boot-starter-websocket/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/hangtag-framework/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/hangtag-framework/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/hangtag-module-gkbiz/hangtag-module-gkbiz-biz/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/hangtag-module-gkbiz/hangtag-module-gkbiz-biz/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/hangtag-module-gkbiz/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/hangtag-module-gkbiz/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/hangtag-module-infra/hangtag-module-infra-api/src/main/java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/hangtag-module-infra/hangtag-module-infra-api/src/main/resources" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/hangtag-module-infra/hangtag-module-infra-biz/src/main/java" charset="UTF-8" />

View File

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>cn.hangtag</groupId>
<artifactId>hangtag-module-gkbiz</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hangtag-module-gkbiz-biz</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<dependencies>
<!-- 业务组件 -->
<!-- Web 相关 -->
<dependency>
<groupId>cn.hangtag</groupId>
<artifactId>hangtag-spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>cn.hangtag</groupId>
<artifactId>hangtag-spring-boot-starter-security</artifactId>
</dependency>
<!-- DB 相关 -->
<dependency>
<groupId>cn.hangtag</groupId>
<artifactId>hangtag-spring-boot-starter-mybatis</artifactId>
</dependency>
<!-- Test 测试相关 -->
<dependency>
<groupId>cn.hangtag</groupId>
<artifactId>hangtag-spring-boot-starter-test</artifactId>
</dependency>
<!-- 工具类相关 -->
<dependency>
<groupId>cn.hangtag</groupId>
<artifactId>hangtag-spring-boot-starter-excel</artifactId>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,6 @@
/**
* 属于 product 模块的 framework 封装
*
* @author 芋道源码
*/
package cn.hangtag.module.biz.framework;

View File

@ -0,0 +1,24 @@
package cn.hangtag.module.biz.framework.web.config;
import cn.hangtag.framework.swagger.config.HangtagSwaggerAutoConfiguration;
import org.springdoc.core.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* gkbiz 模块的 web 组件的 Configuration
*
* @author 芋道源码
*/
@Configuration(proxyBeanMethods = false)
public class ProductWebConfiguration {
/**
* gkbiz 模块的 API 分组
*/
@Bean
public GroupedOpenApi productGroupedOpenApi() {
return HangtagSwaggerAutoConfiguration.buildGroupedOpenApi("gkbiz");
}
}

View File

@ -0,0 +1,4 @@
/**
* product 模块的 web 配置
*/
package cn.hangtag.module.biz.framework.web;

View File

@ -0,0 +1,8 @@
/**
* product 模块主要实现交易相关功能
* 例如订单退款购物车等功能
*
* 1. Controller URL /product/ 开头避免和其它 Module 冲突
* 2. DataObject 表名 product_ 开头方便在数据库中区分
*/
package cn.hangtag.module.biz;

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>cn.hangtag</groupId>
<artifactId>hangtag</artifactId>
<version>${revision}</version>
</parent>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<artifactId>hangtag-module-gkbiz</artifactId>
<modules>
<module>hangtag-module-gkbiz-biz</module>
</modules>
</project>

View File

@ -0,0 +1,11 @@
<script setup lang="ts">
</script>
<template>
</template>
<style scoped lang="scss">
</style>

View File

@ -0,0 +1,11 @@
<script setup lang="ts">
</script>
<template>
</template>
<style scoped lang="scss">
</style>

View File

@ -15,7 +15,8 @@
<!-- 各种 module 拓展 -->
<module>hangtag-module-system</module>
<module>hangtag-module-infra</module>
<!-- <module>hangtag-module-member</module>-->
<module>hangtag-module-gkbiz</module>
<!-- <module>hangtag-module-member</module>-->
<!-- <module>hangtag-module-bpm</module>-->
<!-- <module>hangtag-module-report</module>-->
<!-- <module>hangtag-module-mp</module>-->