From ece6712d699c1031f60fa53b278618580702b4aa Mon Sep 17 00:00:00 2001 From: shuaidawang Date: Sat, 23 Apr 2022 23:22:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=90=A5=E9=94=80=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E3=80=91=E6=96=B0=E5=BB=BA=E6=A8=A1=E5=9D=97yudao-module-marke?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 1 + yudao-module-market/pom.xml | 26 ++++++++ .../yudao-module-market-api/pom.xml | 26 ++++++++ .../yudao-module-market-biz/pom.xml | 61 +++++++++++++++++++ .../admin/MarketTestController.java | 25 ++++++++ .../app/AppMarketTestController.java | 24 ++++++++ .../yudao/module/market/package-info.java | 8 +++ yudao-server/pom.xml | 5 ++ 8 files changed, 176 insertions(+) create mode 100644 yudao-module-market/pom.xml create mode 100644 yudao-module-market/yudao-module-market-api/pom.xml create mode 100644 yudao-module-market/yudao-module-market-biz/pom.xml create mode 100644 yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/controller/admin/MarketTestController.java create mode 100644 yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/controller/app/AppMarketTestController.java create mode 100644 yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/package-info.java diff --git a/pom.xml b/pom.xml index b3ea38a1af..0ba239d5d8 100644 --- a/pom.xml +++ b/pom.xml @@ -18,6 +18,7 @@ yudao-module-system yudao-module-infra yudao-module-pay + yudao-module-market ${project.artifactId} diff --git a/yudao-module-market/pom.xml b/yudao-module-market/pom.xml new file mode 100644 index 0000000000..448986c6ef --- /dev/null +++ b/yudao-module-market/pom.xml @@ -0,0 +1,26 @@ + + + + yudao + cn.iocoder.boot + ${revision} + + 4.0.0 + + yudao-module-market + pom + + ${project.artifactId} + + + market模块,主要实现营销相关功能 + 例如:营销活动、banner广告、优惠券、优惠码等功能。 + + + yudao-module-market-api + yudao-module-market-biz + + + diff --git a/yudao-module-market/yudao-module-market-api/pom.xml b/yudao-module-market/yudao-module-market-api/pom.xml new file mode 100644 index 0000000000..c83179632c --- /dev/null +++ b/yudao-module-market/yudao-module-market-api/pom.xml @@ -0,0 +1,26 @@ + + + + yudao-module-market + cn.iocoder.boot + ${revision} + + 4.0.0 + yudao-module-market-api + jar + + ${project.artifactId} + + market 模块 API,暴露给其它模块调用 + + + + + cn.iocoder.boot + yudao-common + + + + diff --git a/yudao-module-market/yudao-module-market-biz/pom.xml b/yudao-module-market/yudao-module-market-biz/pom.xml new file mode 100644 index 0000000000..0e3a0490ed --- /dev/null +++ b/yudao-module-market/yudao-module-market-biz/pom.xml @@ -0,0 +1,61 @@ + + + + yudao-module-market + cn.iocoder.boot + ${revision} + + 4.0.0 + jar + yudao-module-market-biz + + ${project.artifactId} + + + market模块,主要实现营销相关功能 + 例如:营销活动、banner广告、优惠券、优惠码等功能。 + + + + + cn.iocoder.boot + yudao-module-market-api + ${revision} + + + + + cn.iocoder.boot + yudao-spring-boot-starter-biz-operatelog + + + cn.iocoder.boot + yudao-spring-boot-starter-biz-weixin + + + cn.iocoder.boot + yudao-spring-boot-starter-biz-tenant + + + + + cn.iocoder.boot + yudao-spring-boot-starter-web + + + + + cn.iocoder.boot + yudao-spring-boot-starter-mybatis + + + + + cn.iocoder.boot + yudao-spring-boot-starter-test + + + + diff --git a/yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/controller/admin/MarketTestController.java b/yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/controller/admin/MarketTestController.java new file mode 100644 index 0000000000..49b83b6c92 --- /dev/null +++ b/yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/controller/admin/MarketTestController.java @@ -0,0 +1,25 @@ +package cn.iocoder.yudao.module.market.controller.admin; + +import cn.iocoder.yudao.framework.common.pojo.CommonResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; + +@Api(tags = "管理后台 - 营销") +@RestController +@RequestMapping("/market/test") +@Validated +public class MarketTestController { + + @GetMapping("/get") + @ApiOperation("获取 market 信息") + public CommonResult get() { + return success("true"); + } + +} diff --git a/yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/controller/app/AppMarketTestController.java b/yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/controller/app/AppMarketTestController.java new file mode 100644 index 0000000000..7d45b87a96 --- /dev/null +++ b/yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/controller/app/AppMarketTestController.java @@ -0,0 +1,24 @@ +package cn.iocoder.yudao.module.market.controller.app; + +import cn.iocoder.yudao.framework.common.pojo.CommonResult; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; + +@Api(tags = "用户 App - 营销") +@RestController +@RequestMapping("/market/test") +@Validated +public class AppMarketTestController { + + @GetMapping("/get") + @ApiOperation("获取 market 信息") + public CommonResult get() { + return success("true"); + } +} diff --git a/yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/package-info.java b/yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/package-info.java new file mode 100644 index 0000000000..2efde4ec70 --- /dev/null +++ b/yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/package-info.java @@ -0,0 +1,8 @@ +/** + * market 模块,我们放营销业务。 + * 例如说:营销活动、banner、优惠券等等 + * + * 1. Controller URL:以 /market/ 开头,避免和其它 Module 冲突 + * 2. DataObject 表名:以 market_ 开头,方便在数据库中区分 + */ +package cn.iocoder.yudao.module.market; diff --git a/yudao-server/pom.xml b/yudao-server/pom.xml index 06c5750cfe..73eba60680 100644 --- a/yudao-server/pom.xml +++ b/yudao-server/pom.xml @@ -42,6 +42,11 @@ yudao-module-pay-biz ${revision} + + cn.iocoder.boot + yudao-module-market-biz + ${revision} + cn.iocoder.boot