Compare commits
1 Commits
main
...
a31d02392d
| Author | SHA1 | Date | |
|---|---|---|---|
| a31d02392d |
2
template/.gitignore
vendored
2
template/.gitignore
vendored
@@ -33,6 +33,8 @@ logs/
|
||||
!modules/.gitkeep
|
||||
.gitattributes
|
||||
.toco/config.local.yml
|
||||
|
||||
## fossil
|
||||
_FOSSIL_
|
||||
_FOSSIL_-journal
|
||||
.fslckout
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
The .toco directory is used to store rules (supporting .md files only). The internal structure is defined as follows:
|
||||
目录用于存放rules,只支持.md文件。
|
||||
|
||||
global/ Contains general rules applicable to all Agents. These rules take effect globally across the entire system.
|
||||
toco/ Contains rules specific to the Toco Agent. These are used for high-level process control (e.g., "modeling prohibited," "planning mandatory"). Typically, no new rules need to be added here.
|
||||
modeling/ Contains rules specific to the Domain Architect Agent, used during the domain modeling phase.
|
||||
plan/ Contains rules specific to the Planner Agent, used during the planning and analysis phase.
|
||||
design/ Contains rules specific to the Designer Agent, used for operating and managing TOCO design elements.
|
||||
coding/ Contains rules specific to the Developer Agent, used during the code implementation phase.
|
||||
global: 目录用于存放所有agent通用rules
|
||||
toco: 目录用于存放Toco Agent专用rules,用于外层流程整体控制
|
||||
modeling:目录用于存放Modeling Agent专用rules,用于领域建模阶段
|
||||
plan: 目录用于存放Plan Agent专用rules,用于整体规划阶段
|
||||
design:目录用于存放Design Agent专用rules,用于TOCO设计元素设计
|
||||
coding:目录用于存放Coding Agent专用rules,用于编码阶段
|
||||
1
template/.toco/design/README
Normal file
1
template/.toco/design/README
Normal file
@@ -0,0 +1 @@
|
||||
目录用于存放Design Agent专用rules,用于TOCO设计元素设计,只支持.md文件
|
||||
@@ -1 +0,0 @@
|
||||
This directory is used to store rules specific to the Designer Agent for designing TOCO design elements. Only .md files are supported.
|
||||
@@ -1 +0,0 @@
|
||||
This directory is used to store rules specific to the Developer Agent for code implementation. Only .md files are supported.
|
||||
@@ -1 +0,0 @@
|
||||
This directory is used to store rules specific to the Domain Architect Agent for the domain modeling phase. Only .md files are supported.
|
||||
@@ -1 +1 @@
|
||||
This directory is used to store general rules applicable to all agents. Only .md files are supported.
|
||||
目录用于存放所有agent通用rules,只支持.md文件
|
||||
1
template/.toco/modeling/README
Normal file
1
template/.toco/modeling/README
Normal file
@@ -0,0 +1 @@
|
||||
目录用于存放Modeling Agent专用rules,用于领域建模阶段,只支持.md文件
|
||||
1
template/.toco/plan/README
Normal file
1
template/.toco/plan/README
Normal file
@@ -0,0 +1 @@
|
||||
目录用于存放Plan Agent专用rules,用于整体规划阶段,只支持.md文件
|
||||
@@ -1 +0,0 @@
|
||||
This directory is used to store rules specific to the Planner Agent for the overall planning phase. Only .md files are supported.
|
||||
@@ -1 +1 @@
|
||||
This directory is used to store rules specific to the Toco Agent for overall high-level process control. Only .md files are supported. Adding new rules here is generally not recommended.
|
||||
目录用于存放Toco Agent专用rules,用于外层流程整体控制,只支持.md文件
|
||||
5
template/common/README.md
Normal file
5
template/common/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
> 本模块存放公共组件
|
||||
``` \-- *.utils(工具类; package)
|
||||
\-- *.enums(公共枚举; package)
|
||||
\-- *.constants(公共常量; package)
|
||||
```
|
||||
@@ -5,9 +5,6 @@ import com.fasterxml.jackson.core.JsonParser.Feature;
|
||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import com.fasterxml.jackson.databind.module.SimpleModule;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class ObjectMapperFactory {
|
||||
private static final ObjectMapper objectMapper = new ObjectMapper();
|
||||
@@ -21,9 +18,6 @@ public class ObjectMapperFactory {
|
||||
|
||||
static {
|
||||
objectMapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES).disable(SerializationFeature.FAIL_ON_EMPTY_BEANS).disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS).configure(Feature.ALLOW_SINGLE_QUOTES, true);
|
||||
SimpleModule bigDecimalModule = new SimpleModule();
|
||||
bigDecimalModule.addSerializer(BigDecimal.class, new ToStringSerializer());
|
||||
objectMapper.registerModule(bigDecimalModule);
|
||||
objectMapper.setDateFormat(new MyDateFormat());
|
||||
}
|
||||
}
|
||||
1
template/entrance/README.md
Normal file
1
template/entrance/README.md
Normal file
@@ -0,0 +1 @@
|
||||
> 应用入口
|
||||
@@ -1,4 +1,6 @@
|
||||
server.port=8082
|
||||
|
||||
mock.enabled=true
|
||||
#datasource
|
||||
{{- if eq .dbType "oracle" }}
|
||||
spring.datasource.url=jdbc:oracle:thin:@//{{ .dbHost }}:{{ .dbPort }}/ORCLCDB
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
spring.profiles.active=local
|
||||
envs=local,remote,online,custom
|
||||
check=true
|
||||
spring.main.allow-bean-definition-overriding=true
|
||||
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER
|
||||
spring.jpa.open-in-view=false
|
||||
spring.main.allow-circular-references=true
|
||||
spring.login.security.csrf=false
|
||||
application.name={{ .projectName }}
|
||||
mybatis.configuration.map-underscore-to-camel-case=true
|
||||
project_id={{ .projectId }}
|
||||
project_name={{ .projectName }}
|
||||
base.package={{.groupId}}
|
||||
{{- if eq .dbType "mysql" }}
|
||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
@@ -30,9 +36,11 @@ db.type=dm
|
||||
db.basetable.create=true
|
||||
#hibernate.show_sql=true
|
||||
|
||||
server.ssl.enabled=false
|
||||
server.forward-headers-strategy=framework
|
||||
|
||||
## message config , use memory for test, mq.type can be redis/rocketmq/kafka
|
||||
mq.type=memory
|
||||
spring.autoconfigure.exclude=org.redisson.spring.starter.RedissonAutoConfiguration
|
||||
#redis
|
||||
#spring.redis.host=${REDIS_HOST:redis.byteawake.com}
|
||||
#spring.redis.port=6379
|
||||
|
||||
@@ -103,6 +103,11 @@
|
||||
<artifactId>cglib-nodep</artifactId>
|
||||
<version>3.3.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.xuxueli</groupId>
|
||||
<artifactId>xxl-job-core</artifactId>
|
||||
<version>2.2.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
@@ -185,6 +190,11 @@
|
||||
<artifactId>hessian</artifactId>
|
||||
<version>4.0.63</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt</artifactId>
|
||||
<version>0.9.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
@@ -193,7 +203,7 @@
|
||||
<dependency>
|
||||
<groupId>io.github.think-1024</groupId>
|
||||
<artifactId>toco-all-spring5-springboot2-community</artifactId>
|
||||
<version>2.0</version>
|
||||
<version>1.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.tomcat.embed</groupId>
|
||||
|
||||
Reference in New Issue
Block a user