refactor(metis): 重构项目目录结构和包名, stater可以作为单独的包进行独立开发
This commit is contained in:
@@ -23,8 +23,13 @@
|
||||
<artifactId>metis-starter</artifactId>
|
||||
<version>1.0.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
|
||||
<version>4.4.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<!-- 默认生效的插件 -->
|
||||
@@ -39,39 +44,49 @@
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<!-- 排除静态编译类的插件,为打包的 jar 瘦身 -->
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
</exclude>
|
||||
<exclude>
|
||||
<groupId>org.mapstruct</groupId>
|
||||
<artifactId>mapstruct-processor</artifactId>
|
||||
</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- 编译插件 -->
|
||||
<!-- <plugin>-->
|
||||
<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
||||
<!-- <artifactId>maven-compiler-plugin</artifactId>-->
|
||||
<!-- <configuration>-->
|
||||
<!-- <source>17</source>-->
|
||||
<!-- <target>17</target>-->
|
||||
<!-- <encoding>UTF-8</encoding>-->
|
||||
<!-- <compilerArgs>-->
|
||||
<!-- <arg>-parameters</arg>-->
|
||||
<!-- </compilerArgs>-->
|
||||
<!-- <!– 注解静态编译功能 注:仅支持 maven-compiler-plugin 的 version 在3.6.0 以上才生效 –>-->
|
||||
<!-- <annotationProcessorPaths>-->
|
||||
<!-- <!– 必须配置 lombok 的注解编译,否则会因为配置了(mapstruct-processor)启动了导致 lombok 对内部类的静态编译失效 –>-->
|
||||
<!-- <path>-->
|
||||
<!-- <groupId>org.mapstruct</groupId>-->
|
||||
<!-- <artifactId>mapstruct-processor</artifactId>-->
|
||||
<!-- <version>1.6.2</version>-->
|
||||
<!-- </path>-->
|
||||
<!-- <path>-->
|
||||
<!-- <groupId>org.projectlombok</groupId>-->
|
||||
<!-- <artifactId>lombok</artifactId>-->
|
||||
<!-- <version>1.18.34</version>-->
|
||||
<!-- </path>-->
|
||||
<!-- <path>-->
|
||||
<!-- <groupId>org.projectlombok</groupId>-->
|
||||
<!-- <artifactId>lombok-mapstruct-binding</artifactId>-->
|
||||
<!-- <version>0.2.0</version>-->
|
||||
<!-- </path>-->
|
||||
<!-- </annotationProcessorPaths>-->
|
||||
<!-- </configuration>-->
|
||||
<!-- </plugin>-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>17</source>
|
||||
<target>17</target>
|
||||
<encoding>UTF-8</encoding>
|
||||
<compilerArgs>
|
||||
<arg>-parameters</arg>
|
||||
<arg>--add-opens</arg>
|
||||
<arg>java.base/java.lang=ALL-UNNAMED</arg>
|
||||
</compilerArgs>
|
||||
<!-- 注解静态编译功能 注:仅支持 maven-compiler-plugin 的 version 在3.6.0 以上才生效 -->
|
||||
<annotationProcessorPaths>
|
||||
<!-- 必须配置 lombok 的注解编译,否则会因为配置了(mapstruct-processor)启动了导致 lombok 对内部类的静态编译失效 -->
|
||||
<path>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>${lombok.version}</version>
|
||||
</path>
|
||||
<path>
|
||||
<groupId>org.mapstruct</groupId>
|
||||
<artifactId>mapstruct-processor</artifactId>
|
||||
<version>${org.mapstruct.version}</version>
|
||||
</path>
|
||||
</annotationProcessorPaths>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
</build>
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
package com.metisapp.controller;
|
||||
|
||||
import com.metis.domain.bo.ProcessBo;
|
||||
import com.metis.facade.ProcessDefinitionFacade;
|
||||
import com.metis.flow.domain.entity.App;
|
||||
import com.metis.result.Result;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/process/definition")
|
||||
public class ProcessDefinitionController {
|
||||
|
||||
private final ProcessDefinitionFacade processDefinitionFacade;
|
||||
|
||||
|
||||
@PostMapping("/create")
|
||||
public Result<Long> create(@RequestBody ProcessBo processBo) {
|
||||
Long workflowId = processDefinitionFacade.create(processBo);
|
||||
return Result.ok(workflowId);
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
public Result<String> update(@RequestBody ProcessBo processBo) {
|
||||
processDefinitionFacade.update(processBo);
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/{deploymentId}")
|
||||
public Result<App> getByDeploymentId(@PathVariable Long deploymentId) {
|
||||
App app = processDefinitionFacade.getByDeploymentId(deploymentId);
|
||||
return Result.ok(app);
|
||||
}
|
||||
|
||||
@DeleteMapping("/{appId}")
|
||||
public Result<String> delete(@PathVariable Long appId) {
|
||||
processDefinitionFacade.delete(appId);
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
package com.metisapp.controller;
|
||||
|
||||
import com.metis.flow.domain.bo.BuildApp;
|
||||
import com.metis.flow.engine.AppFlowEngineRunnerService;
|
||||
import com.metis.flow.runner.FlowRunningContext;
|
||||
import com.metis.flow.runner.RunnerResult;
|
||||
import com.metis.flow.validator.ValidatorService;
|
||||
import com.metis.domain.bo.BuildApp;
|
||||
import com.metis.engine.AppFlowEngineRunnerService;
|
||||
import com.metis.runner.FlowRunningContext;
|
||||
import com.metis.runner.RunnerResult;
|
||||
import com.metis.validator.ValidatorService;
|
||||
import com.metis.result.Result;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
@@ -34,10 +34,6 @@ springdoc:
|
||||
swagger-ui:
|
||||
tags-sorter: alpha
|
||||
group-configs:
|
||||
- group: bis
|
||||
display-name: "业务接口文档"
|
||||
paths-to-match: '/**'
|
||||
packages-to-scan: org.shi9.module.bis
|
||||
- group: system
|
||||
display-name: "系统接口文档"
|
||||
paths-to-match: '/**'
|
||||
|
||||
Reference in New Issue
Block a user