-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #686 from chat2db/dev
Dev
- Loading branch information
Showing
17 changed files
with
10,906 additions
and
396,399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...chat2db-server-start/src/main/java/ai/chat2db/server/start/listener/TemplateListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package ai.chat2db.server.start.listener; | ||
|
||
import ai.chat2db.server.start.config.util.CopyTemplate; | ||
import ai.chat2db.server.web.api.controller.rdb.doc.event.TemplateEvent; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.context.event.EventListener; | ||
import org.springframework.stereotype.Component; | ||
|
||
/** | ||
* TemplateListener | ||
* | ||
* @author lzy | ||
**/ | ||
@Component | ||
public class TemplateListener { | ||
|
||
@Autowired | ||
private CopyTemplate copyTemplate; | ||
|
||
@EventListener(classes = TemplateEvent.class) | ||
public void copyTemplate() { | ||
//复制模板 | ||
copyTemplate.copyTemplateFile(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...b-api/src/main/java/ai/chat2db/server/web/api/controller/rdb/doc/event/TemplateEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package ai.chat2db.server.web.api.controller.rdb.doc.event; | ||
|
||
import org.springframework.context.ApplicationEvent; | ||
|
||
/** | ||
* TemplateEvent | ||
* | ||
* @author lzy | ||
**/ | ||
public class TemplateEvent extends ApplicationEvent { | ||
public TemplateEvent(String key) { | ||
super(key); | ||
} | ||
} |
94 changes: 0 additions & 94 deletions
94
...web/chat2db-server-web-api/src/main/java/ai/chat2db/server/web/api/util/SegmentUtils.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.