Compare commits

..

1 Commits

Author SHA1 Message Date
ycl
a31d02392d 更新 template/.gitignore 2025-12-28 12:12:15 +08:00
17 changed files with 42 additions and 21 deletions

2
template/.gitignore vendored
View File

@@ -33,6 +33,8 @@ logs/
!modules/.gitkeep
.gitattributes
.toco/config.local.yml
## fossil
_FOSSIL_
_FOSSIL_-journal
.fslckout

View File

@@ -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用于编码阶段

View File

@@ -0,0 +1 @@
目录用于存放Design Agent专用rules用于TOCO设计元素设计只支持.md文件

View File

@@ -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.

View File

@@ -1 +0,0 @@
This directory is used to store rules specific to the Developer Agent for code implementation. Only .md files are supported.

View File

@@ -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.

View File

@@ -1 +1 @@
This directory is used to store general rules applicable to all agents. Only .md files are supported.
目录用于存放所有agent通用rules只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放Modeling Agent专用rules用于领域建模阶段只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放Plan Agent专用rules用于整体规划阶段只支持.md文件

View File

@@ -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.

View File

@@ -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文件

View File

@@ -0,0 +1,5 @@
> 本模块存放公共组件
``` \-- *.utils(工具类; package)
\-- *.enums(公共枚举; package)
\-- *.constants(公共常量; package)
```

View File

@@ -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());
}
}

View File

@@ -0,0 +1 @@
> 应用入口

View File

@@ -1,4 +1,6 @@
server.port=8082
mock.enabled=true
#datasource
{{- if eq .dbType "oracle" }}
spring.datasource.url=jdbc:oracle:thin:@//{{ .dbHost }}:{{ .dbPort }}/ORCLCDB

View File

@@ -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

View File

@@ -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>