Skip to content

Commit bff65fe

Browse files
committed
fix: modify AI chat
1 parent ca4ff1b commit bff65fe

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ ENV ACCESS_KEY_ID=" "
1919
ENV ACCESS_KEY_SECRET = " "
2020
ENV INDEX_ID = " "
2121
ENV WORK_SPACE_ID = ""
22-
<<<<<<< HEAD
23-
ENV TINY_ENGINE_URL=" "
24-
=======
25-
>>>>>>> 380d9549bd9d2f481bf65f78ebb4c77a1d82c7b4
22+
# 替换为自己的域名接口路径
23+
ENV TINY_ENGINE_URL="https://agent.opentiny.design/material-center/api/resource/download"
2624
ENTRYPOINT ["java", "-jar", "tiny-engine-app.jar", "--spring.profiles.active=alpha"]
2725
EXPOSE 9090
2826

base/src/main/java/com/tinyengine/it/controller/ResourceController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public Result<Resource> createResource(@Valid @RequestBody Resource resource) th
178178
content = @Content(mediaType = "application/json", schema = @Schema(implementation = Resource.class))),
179179
@ApiResponse(responseCode = "400", description = "请求失败")
180180
})
181-
@SystemControllerLog(description = "创建resource")
181+
@SystemControllerLog(description = "上传图片")
182182
@PostMapping("/resource/uoload")
183183
public Result<Resource> resourceUoload(@Valid @RequestBody Resource resource) throws Exception {
184184
Resource result = resourceService.resourceUpload(resource);

base/src/main/java/com/tinyengine/it/service/material/impl/ResourceServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ public Resource createResource(Resource resource) throws Exception {
171171
* @return the integer
172172
*/
173173
@Override
174+
@SystemServiceLog(description = "图片上传")
174175
public Resource resourceUpload(Resource resource) throws Exception {
175176
ResourceRequestDto resourceParam = new ResourceRequestDto();
176177
resourceParam.setName(resource.getName());

0 commit comments

Comments
 (0)