Commit ece6712d699c1031f60fa53b278618580702b4aa

Authored by shuaidawang
1 parent 3a0feef4

【营销模块】新建模块yudao-module-market

@@ -18,6 +18,7 @@ @@ -18,6 +18,7 @@
18 <module>yudao-module-system</module> 18 <module>yudao-module-system</module>
19 <module>yudao-module-infra</module> 19 <module>yudao-module-infra</module>
20 <module>yudao-module-pay</module> 20 <module>yudao-module-pay</module>
  21 + <module>yudao-module-market</module>
21 </modules> 22 </modules>
22 23
23 <name>${project.artifactId}</name> 24 <name>${project.artifactId}</name>
yudao-module-market/pom.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0"
  3 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5 + <parent>
  6 + <artifactId>yudao</artifactId>
  7 + <groupId>cn.iocoder.boot</groupId>
  8 + <version>${revision}</version>
  9 + </parent>
  10 + <modelVersion>4.0.0</modelVersion>
  11 +
  12 + <artifactId>yudao-module-market</artifactId>
  13 + <packaging>pom</packaging>
  14 +
  15 + <name>${project.artifactId}</name>
  16 +
  17 + <description>
  18 + market模块,主要实现营销相关功能
  19 + 例如:营销活动、banner广告、优惠券、优惠码等功能。
  20 + </description>
  21 + <modules>
  22 + <module>yudao-module-market-api</module>
  23 + <module>yudao-module-market-biz</module>
  24 + </modules>
  25 +
  26 +</project>
yudao-module-market/yudao-module-market-api/pom.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0"
  3 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5 + <parent>
  6 + <artifactId>yudao-module-market</artifactId>
  7 + <groupId>cn.iocoder.boot</groupId>
  8 + <version>${revision}</version>
  9 + </parent>
  10 + <modelVersion>4.0.0</modelVersion>
  11 + <artifactId>yudao-module-market-api</artifactId>
  12 + <packaging>jar</packaging>
  13 +
  14 + <name>${project.artifactId}</name>
  15 + <description>
  16 + market 模块 API,暴露给其它模块调用
  17 + </description>
  18 +
  19 + <dependencies>
  20 + <dependency>
  21 + <groupId>cn.iocoder.boot</groupId>
  22 + <artifactId>yudao-common</artifactId>
  23 + </dependency>
  24 + </dependencies>
  25 +
  26 +</project>
yudao-module-market/yudao-module-market-biz/pom.xml 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0"
  3 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5 + <parent>
  6 + <artifactId>yudao-module-market</artifactId>
  7 + <groupId>cn.iocoder.boot</groupId>
  8 + <version>${revision}</version>
  9 + </parent>
  10 + <modelVersion>4.0.0</modelVersion>
  11 + <packaging>jar</packaging>
  12 + <artifactId>yudao-module-market-biz</artifactId>
  13 +
  14 + <name>${project.artifactId}</name>
  15 +
  16 + <description>
  17 + market模块,主要实现营销相关功能
  18 + 例如:营销活动、banner广告、优惠券、优惠码等功能。
  19 + </description>
  20 +
  21 + <dependencies>
  22 + <dependency>
  23 + <groupId>cn.iocoder.boot</groupId>
  24 + <artifactId>yudao-module-market-api</artifactId>
  25 + <version>${revision}</version>
  26 + </dependency>
  27 +
  28 + <!-- 业务组件 -->
  29 + <dependency>
  30 + <groupId>cn.iocoder.boot</groupId>
  31 + <artifactId>yudao-spring-boot-starter-biz-operatelog</artifactId>
  32 + </dependency>
  33 + <dependency>
  34 + <groupId>cn.iocoder.boot</groupId>
  35 + <artifactId>yudao-spring-boot-starter-biz-weixin</artifactId>
  36 + </dependency>
  37 + <dependency>
  38 + <groupId>cn.iocoder.boot</groupId>
  39 + <artifactId>yudao-spring-boot-starter-biz-tenant</artifactId>
  40 + </dependency>
  41 +
  42 + <!-- Web 相关 -->
  43 + <dependency>
  44 + <groupId>cn.iocoder.boot</groupId>
  45 + <artifactId>yudao-spring-boot-starter-web</artifactId>
  46 + </dependency>
  47 +
  48 + <!-- DB 相关 -->
  49 + <dependency>
  50 + <groupId>cn.iocoder.boot</groupId>
  51 + <artifactId>yudao-spring-boot-starter-mybatis</artifactId>
  52 + </dependency>
  53 +
  54 + <!-- Test 测试相关 -->
  55 + <dependency>
  56 + <groupId>cn.iocoder.boot</groupId>
  57 + <artifactId>yudao-spring-boot-starter-test</artifactId>
  58 + </dependency>
  59 + </dependencies>
  60 +
  61 +</project>
yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/controller/admin/MarketTestController.java 0 → 100644
  1 +package cn.iocoder.yudao.module.market.controller.admin;
  2 +
  3 +import cn.iocoder.yudao.framework.common.pojo.CommonResult;
  4 +import io.swagger.annotations.Api;
  5 +import io.swagger.annotations.ApiOperation;
  6 +import org.springframework.validation.annotation.Validated;
  7 +import org.springframework.web.bind.annotation.GetMapping;
  8 +import org.springframework.web.bind.annotation.RequestMapping;
  9 +import org.springframework.web.bind.annotation.RestController;
  10 +
  11 +import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
  12 +
  13 +@Api(tags = "管理后台 - 营销")
  14 +@RestController
  15 +@RequestMapping("/market/test")
  16 +@Validated
  17 +public class MarketTestController {
  18 +
  19 + @GetMapping("/get")
  20 + @ApiOperation("获取 market 信息")
  21 + public CommonResult<String> get() {
  22 + return success("true");
  23 + }
  24 +
  25 +}
yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/controller/app/AppMarketTestController.java 0 → 100644
  1 +package cn.iocoder.yudao.module.market.controller.app;
  2 +
  3 +import cn.iocoder.yudao.framework.common.pojo.CommonResult;
  4 +import io.swagger.annotations.Api;
  5 +import io.swagger.annotations.ApiOperation;
  6 +import org.springframework.validation.annotation.Validated;
  7 +import org.springframework.web.bind.annotation.GetMapping;
  8 +import org.springframework.web.bind.annotation.RequestMapping;
  9 +import org.springframework.web.bind.annotation.RestController;
  10 +
  11 +import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
  12 +
  13 +@Api(tags = "用户 App - 营销")
  14 +@RestController
  15 +@RequestMapping("/market/test")
  16 +@Validated
  17 +public class AppMarketTestController {
  18 +
  19 + @GetMapping("/get")
  20 + @ApiOperation("获取 market 信息")
  21 + public CommonResult<String> get() {
  22 + return success("true");
  23 + }
  24 +}
yudao-module-market/yudao-module-market-biz/src/main/java/cn/iocoder/yudao/module/market/package-info.java 0 → 100644
  1 +/**
  2 + * market 模块,我们放营销业务。
  3 + * 例如说:营销活动、banner、优惠券等等
  4 + *
  5 + * 1. Controller URL:以 /market/ 开头,避免和其它 Module 冲突
  6 + * 2. DataObject 表名:以 market_ 开头,方便在数据库中区分
  7 + */
  8 +package cn.iocoder.yudao.module.market;
yudao-server/pom.xml
@@ -42,6 +42,11 @@ @@ -42,6 +42,11 @@
42 <artifactId>yudao-module-pay-biz</artifactId> 42 <artifactId>yudao-module-pay-biz</artifactId>
43 <version>${revision}</version> 43 <version>${revision}</version>
44 </dependency> 44 </dependency>
  45 + <dependency>
  46 + <groupId>cn.iocoder.boot</groupId>
  47 + <artifactId>yudao-module-market-biz</artifactId>
  48 + <version>${revision}</version>
  49 + </dependency>
45 <!-- 默认引入 yudao-module-bpm-biz-flowable 实现,可以替换为 yudao-module-bpm-biz-activiti 实现--> 50 <!-- 默认引入 yudao-module-bpm-biz-flowable 实现,可以替换为 yudao-module-bpm-biz-activiti 实现-->
46 <dependency> 51 <dependency>
47 <groupId>cn.iocoder.boot</groupId> 52 <groupId>cn.iocoder.boot</groupId>