Kaynağa Gözat

增加版权描述信息

tycoding 1 yıl önce
ebeveyn
işleme
c2711482f7
100 değiştirilmiş dosya ile 1813 ekleme ve 3 silme
  1. 43 0
      langchat-app/pom.xml
  2. 84 0
      langchat-app/src/main/java/cn/tycoding/langchat/app/entity/AigcBot.java
  3. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/AuthAutoConfiguration.java
  4. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/aspect/ApiLogAspect.java
  5. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/aspect/ClientPermAspect.java
  6. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/config/AuthConfiguration.java
  7. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/config/TokenConfiguration.java
  8. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/config/TokenDaoCustomized.java
  9. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/config/TokenDaoRedis.java
  10. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/endpoint/AuthEndpoint.java
  11. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/endpoint/ClientAuthEndpoint.java
  12. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/event/LogEvent.java
  13. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/event/LogListener.java
  14. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/interceptor/AuthInterceptor.java
  15. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/interceptor/CaptchaInterceptor.java
  16. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/service/AuthListener.java
  17. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/service/GlobalExceptionTranslator.java
  18. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/service/PermissionService.java
  19. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/service/TokenInfo.java
  20. 17 0
      langchat-auth/src/main/java/cn/tycoding/langchat/auth/utils/SysLogUtil.java
  21. 17 0
      langchat-auth/src/main/resources/email/template.html
  22. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/component/ProviderEnum.java
  23. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/component/ProviderRefreshEvent.java
  24. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/dto/DocsTypeEnum.java
  25. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcConversation.java
  26. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcDocs.java
  27. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcDocsSlice.java
  28. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcExcelCol.java
  29. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcExcelData.java
  30. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcExcelRow.java
  31. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcKnowledge.java
  32. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcMessage.java
  33. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcModel.java
  34. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcOss.java
  35. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcPrompt.java
  36. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcUser.java
  37. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/listener/StructExcelListener.java
  38. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcConversationMapper.java
  39. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcDocsMapper.java
  40. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcDocsSliceMapper.java
  41. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcExcelColMapper.java
  42. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcExcelDataMapper.java
  43. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcExcelRowMapper.java
  44. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcKnowledgeMapper.java
  45. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcMessageMapper.java
  46. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcModelMapper.java
  47. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcOssMapper.java
  48. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcPromptMapper.java
  49. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcUserMapper.java
  50. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcExcelColService.java
  51. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcExcelDataService.java
  52. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcExcelRowService.java
  53. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcKnowledgeService.java
  54. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcMessageService.java
  55. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcModelService.java
  56. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcOssService.java
  57. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcPromptService.java
  58. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcUserService.java
  59. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcExcelColServiceImpl.java
  60. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcExcelDataServiceImpl.java
  61. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcExcelRowServiceImpl.java
  62. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcKnowledgeServiceImpl.java
  63. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcMessageServiceImpl.java
  64. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcModelServiceImpl.java
  65. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcOssServiceImpl.java
  66. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcPromptServiceImpl.java
  67. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcUserServiceImpl.java
  68. 17 0
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/utils/ClientAuthUtil.java
  69. 4 3
      langchat-biz/src/main/java/cn/tycoding/langchat/biz/utils/ClientStpUtil.java
  70. 50 0
      langchat-client/src/main/java/cn/tycoding/langchat/client/controller/ClientChatEndpoint.java
  71. 17 0
      langchat-client/src/main/java/cn/tycoding/langchat/client/controller/ClientConversationController.java
  72. 17 0
      langchat-client/src/main/java/cn/tycoding/langchat/client/controller/ClientModelController.java
  73. 17 0
      langchat-client/src/main/java/cn/tycoding/langchat/client/controller/ClientOssController.java
  74. 17 0
      langchat-client/src/main/java/cn/tycoding/langchat/client/service/ClientChatService.java
  75. 17 0
      langchat-client/src/main/java/cn/tycoding/langchat/client/service/ClientEmbeddingService.java
  76. 17 0
      langchat-client/src/main/java/cn/tycoding/langchat/client/service/impl/ClientChatServiceImpl.java
  77. 17 0
      langchat-client/src/main/java/cn/tycoding/langchat/client/service/impl/ClientEmbeddingServiceImpl.java
  78. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/CommonAutoConfiguration.java
  79. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/annotation/ApiLog.java
  80. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/annotation/ClientPerm.java
  81. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/component/CorsConfig.java
  82. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/component/JacksonConfiguration.java
  83. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/component/MybatisPlusConfiguration.java
  84. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/component/RedisConfiguration.java
  85. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/component/SpringContextHolder.java
  86. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/constant/AuthConst.java
  87. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/constant/CacheConst.java
  88. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/constant/CommonConst.java
  89. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/constant/RoleEnum.java
  90. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/dto/ChatReq.java
  91. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/dto/ChatRes.java
  92. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/dto/EmbeddingR.java
  93. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/dto/ImageR.java
  94. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/dto/OssR.java
  95. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/dto/PromptConst.java
  96. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/dto/TextR.java
  97. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/exception/AuthException.java
  98. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/exception/ServiceException.java
  99. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/oss/EnableFileStorage.java
  100. 17 0
      langchat-common/src/main/java/cn/tycoding/langchat/common/oss/FileStorageAutoConfiguration.java

+ 43 - 0
langchat-app/pom.xml

@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Project: LangChat
+  ~ Author: TyCoding
+  ~
+  ~ Licensed under the GNU Affero General Public License, Version 3 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     https://www.gnu.org/licenses/agpl-3.0.html
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>cn.tycoding</groupId>
+        <artifactId>langchat</artifactId>
+        <version>${revision}</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>langchat-app</artifactId>
+    <version>${revision}</version>
+
+    <dependencies>
+        <!-- Modules -->
+        <dependency>
+            <groupId>cn.tycoding</groupId>
+            <artifactId>langchat-biz</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>cn.tycoding</groupId>
+            <artifactId>langchat-core</artifactId>
+        </dependency>
+    </dependencies>
+</project>

+ 84 - 0
langchat-app/src/main/java/cn/tycoding/langchat/app/entity/AigcBot.java

@@ -0,0 +1,84 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package cn.tycoding.langchat.app.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @author tycoding
+ * @since 2024/7/26
+ */
+@Data
+@Accessors(chain = true)
+public class AigcBot implements Serializable {
+    private static final long serialVersionUID = -94917153262781949L;
+
+    /**
+     * 主键
+     */
+    @TableId(type = IdType.ASSIGN_UUID)
+    private String id;
+
+    private String name;
+    private String title;
+    private String link;
+    private String icon;
+    private String des;
+    private String floatIcon;
+    private Date createTime;
+}

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/AuthAutoConfiguration.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth;
 
 import cn.tycoding.langchat.common.properties.AuthProps;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/aspect/ApiLogAspect.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.aspect;
 
 import cn.tycoding.langchat.auth.event.LogEvent;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/aspect/ClientPermAspect.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.aspect;
 
 import cn.dev33.satoken.exception.NotPermissionException;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/config/AuthConfiguration.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.config;
 
 import cn.dev33.satoken.context.SaHolder;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/config/TokenConfiguration.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.config;
 
 import cn.dev33.satoken.config.SaTokenConfig;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/config/TokenDaoCustomized.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.config;
 
 import cn.dev33.satoken.session.SaSession;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/config/TokenDaoRedis.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.config;
 
 import cn.dev33.satoken.dao.SaTokenDao;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/endpoint/AuthEndpoint.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.endpoint;
 
 import cn.dev33.satoken.annotation.SaCheckPermission;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/endpoint/ClientAuthEndpoint.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.endpoint;
 
 import cn.dev33.satoken.stp.SaTokenInfo;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/event/LogEvent.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.event;
 
 import org.springframework.context.ApplicationEvent;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/event/LogListener.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.event;
 
 import cn.tycoding.langchat.upms.entity.SysLog;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/interceptor/AuthInterceptor.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.interceptor;
 
 import cn.dev33.satoken.interceptor.SaInterceptor;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/interceptor/CaptchaInterceptor.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.interceptor;
 
 import cn.tycoding.langchat.common.constant.CacheConst;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/service/AuthListener.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.service;
 
 import cn.dev33.satoken.listener.SaTokenListener;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/service/GlobalExceptionTranslator.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.service;
 
 import cn.dev33.satoken.exception.NotLoginException;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/service/PermissionService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.service;
 
 import cn.dev33.satoken.stp.StpInterface;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/service/TokenInfo.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.service;
 
 import lombok.Data;

+ 17 - 0
langchat-auth/src/main/java/cn/tycoding/langchat/auth/utils/SysLogUtil.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.auth.utils;
 
 import cn.hutool.core.util.URLUtil;

+ 17 - 0
langchat-auth/src/main/resources/email/template.html

@@ -1,3 +1,20 @@
+<!--
+  ~ Project: LangChat
+  ~ Author: TyCoding
+  ~
+  ~ Licensed under the GNU Affero General Public License, Version 3 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     https://www.gnu.org/licenses/agpl-3.0.html
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
 <!DOCTYPE html>
 <html lang="en">
 <head>

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/component/ProviderEnum.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.component;
 
 import lombok.Getter;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/component/ProviderRefreshEvent.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.component;
 
 import org.springframework.context.ApplicationEvent;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/dto/DocsTypeEnum.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.dto;
 
 /**

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcConversation.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcDocs.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcDocsSlice.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcExcelCol.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcExcelData.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcExcelRow.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcKnowledge.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcMessage.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import com.baomidou.mybatisplus.annotation.FieldFill;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcModel.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcOss.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import cn.tycoding.langchat.common.dto.OssR;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcPrompt.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/entity/AigcUser.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.entity;
 
 import com.baomidou.mybatisplus.annotation.IdType;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/listener/StructExcelListener.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.listener;
 
 import cn.hutool.core.util.StrUtil;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcConversationMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.tycoding.langchat.biz.entity.AigcConversation;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcDocsMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.tycoding.langchat.biz.entity.AigcDocs;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcDocsSliceMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.tycoding.langchat.biz.entity.AigcDocsSlice;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcExcelColMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.tycoding.langchat.biz.entity.AigcExcelCol;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcExcelDataMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.tycoding.langchat.biz.entity.AigcExcelData;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcExcelRowMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.tycoding.langchat.biz.entity.AigcExcelRow;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcKnowledgeMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.tycoding.langchat.biz.entity.AigcKnowledge;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcMessageMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.hutool.core.lang.Dict;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcModelMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.tycoding.langchat.biz.entity.AigcModel;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcOssMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.tycoding.langchat.biz.entity.AigcOss;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcPromptMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.tycoding.langchat.biz.entity.AigcPrompt;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/mapper/AigcUserMapper.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.mapper;
 
 import cn.hutool.core.lang.Dict;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcExcelColService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service;
 
 import cn.tycoding.langchat.biz.entity.AigcExcelCol;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcExcelDataService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service;
 
 import cn.tycoding.langchat.biz.entity.AigcExcelData;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcExcelRowService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service;
 
 import cn.tycoding.langchat.biz.entity.AigcExcelRow;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcKnowledgeService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service;
 
 import cn.tycoding.langchat.biz.entity.AigcDocs;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcMessageService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service;
 
 import cn.tycoding.langchat.biz.entity.AigcConversation;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcModelService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service;
 
 import cn.tycoding.langchat.biz.entity.AigcModel;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcOssService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service;
 
 import cn.tycoding.langchat.biz.entity.AigcOss;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcPromptService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service;
 
 import cn.tycoding.langchat.biz.entity.AigcPrompt;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/AigcUserService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service;
 
 import cn.tycoding.langchat.biz.entity.AigcUser;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcExcelColServiceImpl.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service.impl;
 
 import cn.tycoding.langchat.biz.entity.AigcExcelCol;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcExcelDataServiceImpl.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service.impl;
 
 import cn.tycoding.langchat.biz.entity.AigcExcelData;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcExcelRowServiceImpl.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service.impl;
 
 import cn.tycoding.langchat.biz.entity.AigcExcelRow;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcKnowledgeServiceImpl.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service.impl;
 
 import cn.tycoding.langchat.biz.entity.AigcDocs;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcMessageServiceImpl.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service.impl;
 
 import cn.hutool.core.util.StrUtil;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcModelServiceImpl.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service.impl;
 
 import cn.tycoding.langchat.biz.component.ProviderEnum;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcOssServiceImpl.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service.impl;
 
 import cn.hutool.core.bean.BeanUtil;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcPromptServiceImpl.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service.impl;
 
 import cn.tycoding.langchat.biz.entity.AigcPrompt;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/service/impl/AigcUserServiceImpl.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.service.impl;
 
 import cn.tycoding.langchat.biz.entity.AigcUser;

+ 17 - 0
langchat-biz/src/main/java/cn/tycoding/langchat/biz/utils/ClientAuthUtil.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.biz.utils;
 
 import cn.dev33.satoken.secure.SaSecureUtil;

+ 4 - 3
langchat-biz/src/main/java/cn/tycoding/langchat/biz/utils/ClientStpUtil.java

@@ -1,11 +1,12 @@
 /*
- * Copyright 2020-2099 sa-token.cc
+ * Project: LangChat
+ * Author: TyCoding
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
+ *     https://www.gnu.org/licenses/agpl-3.0.html
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,

+ 50 - 0
langchat-client/src/main/java/cn/tycoding/langchat/client/controller/ClientChatEndpoint.java

@@ -1,5 +1,23 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.client.controller;
 
+import cn.hutool.core.lang.Dict;
 import cn.hutool.core.util.StrUtil;
 import cn.tycoding.langchat.biz.entity.AigcOss;
 import cn.tycoding.langchat.biz.service.AigcOssService;
@@ -16,14 +34,20 @@ import cn.tycoding.langchat.common.utils.R;
 import cn.tycoding.langchat.common.utils.StreamEmitter;
 import cn.tycoding.langchat.core.consts.ModelConst;
 import lombok.AllArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.http.MediaType;
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter;
 import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
 
+import java.io.IOException;
+
 /**
  * @author tycoding
  * @since 2024/1/30
  */
+@Slf4j
 @RequestMapping("/client")
 @RestController
 @AllArgsConstructor
@@ -33,6 +57,32 @@ public class ClientChatEndpoint {
     private final AigcOssService aigcOssService;
     private final ClientEmbeddingService clientEmbeddingService;
 
+    @PostMapping("/test")
+    public Object test(@RequestBody Object obj) {
+        log.info("x: {}", obj);
+        return Dict.create().set("message", "你好呀").set("threadId", "111");
+    }
+
+    @PostMapping("/test2")
+    public Object test2(@RequestBody Object obj) throws InterruptedException, IOException {
+        log.info("Received: {}", obj);
+        ResponseBodyEmitter emitter = new ResponseBodyEmitter();
+
+        new Thread(() -> {
+            try {
+                for (int i = 0; i < 10; i++) {
+                    emitter.send("Data: " + i + "\n", MediaType.TEXT_PLAIN);
+                    Thread.sleep(1000);
+                }
+                emitter.complete();
+            } catch (Exception e) {
+                emitter.completeWithError(e);
+            }
+        }).start();
+
+        return emitter;
+    }
+
     @ClientPerm
     @PostMapping("/chat")
     public Object chat(@RequestBody ChatReq req) {

+ 17 - 0
langchat-client/src/main/java/cn/tycoding/langchat/client/controller/ClientConversationController.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.client.controller;
 
 import cn.tycoding.langchat.biz.entity.AigcConversation;

+ 17 - 0
langchat-client/src/main/java/cn/tycoding/langchat/client/controller/ClientModelController.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.client.controller;
 
 import cn.tycoding.langchat.biz.entity.AigcModel;

+ 17 - 0
langchat-client/src/main/java/cn/tycoding/langchat/client/controller/ClientOssController.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.client.controller;
 
 import cn.tycoding.langchat.biz.entity.AigcOss;

+ 17 - 0
langchat-client/src/main/java/cn/tycoding/langchat/client/service/ClientChatService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.client.service;
 
 import cn.tycoding.langchat.biz.entity.AigcOss;

+ 17 - 0
langchat-client/src/main/java/cn/tycoding/langchat/client/service/ClientEmbeddingService.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.client.service;
 
 import cn.tycoding.langchat.common.dto.ChatReq;

+ 17 - 0
langchat-client/src/main/java/cn/tycoding/langchat/client/service/impl/ClientChatServiceImpl.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.client.service.impl;
 
 import cn.tycoding.langchat.biz.entity.AigcMessage;

+ 17 - 0
langchat-client/src/main/java/cn/tycoding/langchat/client/service/impl/ClientEmbeddingServiceImpl.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.client.service.impl;
 
 import cn.tycoding.langchat.client.service.ClientEmbeddingService;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/CommonAutoConfiguration.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common;
 
 import cn.tycoding.langchat.common.oss.SpringFileStorageProperties;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/annotation/ApiLog.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.annotation;
 
 import java.lang.annotation.ElementType;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/annotation/ClientPerm.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.annotation;
 
 import java.lang.annotation.ElementType;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/component/CorsConfig.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.component;
 
 import org.springframework.context.annotation.Configuration;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/component/JacksonConfiguration.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.component;
 
 import cn.hutool.core.date.DatePattern;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/component/MybatisPlusConfiguration.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.component;
 
 import com.baomidou.mybatisplus.annotation.DbType;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/component/RedisConfiguration.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.component;
 
 import lombok.AllArgsConstructor;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/component/SpringContextHolder.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.component;
 
 import org.springframework.beans.BeansException;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/constant/AuthConst.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.constant;
 
 /**

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/constant/CacheConst.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.constant;
 
 /**

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/constant/CommonConst.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.constant;
 
 /**

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/constant/RoleEnum.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.constant;
 
 import lombok.Getter;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/dto/ChatReq.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.dto;
 
 import cn.tycoding.langchat.common.utils.StreamEmitter;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/dto/ChatRes.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.dto;
 
 import lombok.Data;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/dto/EmbeddingR.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.dto;
 
 import lombok.Data;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/dto/ImageR.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.dto;
 
 import dev.langchain4j.model.input.Prompt;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/dto/OssR.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.dto;
 
 import lombok.Data;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/dto/PromptConst.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.dto;
 
 /**

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/dto/TextR.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.dto;
 
 import cn.tycoding.langchat.common.utils.StreamEmitter;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/exception/AuthException.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.exception;
 
 import lombok.Getter;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/exception/ServiceException.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.exception;
 
 import lombok.Getter;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/oss/EnableFileStorage.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.oss;
 
 import org.springframework.context.annotation.Import;

+ 17 - 0
langchat-common/src/main/java/cn/tycoding/langchat/common/oss/FileStorageAutoConfiguration.java

@@ -1,3 +1,20 @@
+/*
+ * Project: LangChat
+ * Author: TyCoding
+ *
+ * Licensed under the GNU Affero General Public License, Version 3 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.gnu.org/licenses/agpl-3.0.html
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package cn.tycoding.langchat.common.oss;
 
 import cn.tycoding.langchat.common.oss.file.MultipartFileWrapperAdapter;

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor