From cfeb4bdca47f1ae807c86633ab82de83a8f95db2 Mon Sep 17 00:00:00 2001 From: cherishsince Date: Tue, 28 May 2024 17:59:33 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B7=BB=E5=8A=A0=E3=80=91midjourney?= =?UTF-8?q?=20job(=E5=90=8C=E6=AD=A5=20mj=20=E7=BB=93=E6=9E=9C)=20?= =?UTF-8?q?=E6=9C=AA=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-module-ai/yudao-module-ai-biz/pom.xml | 4 ++++ .../yudao/module/ai/job/MidjourneyJob.java | 21 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/job/MidjourneyJob.java diff --git a/yudao-module-ai/yudao-module-ai-biz/pom.xml b/yudao-module-ai/yudao-module-ai-biz/pom.xml index d87818569..3eb23d57f 100644 --- a/yudao-module-ai/yudao-module-ai-biz/pom.xml +++ b/yudao-module-ai/yudao-module-ai-biz/pom.xml @@ -47,6 +47,10 @@ cn.iocoder.boot yudao-spring-boot-starter-test + + cn.iocoder.boot + yudao-spring-boot-starter-job + diff --git a/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/job/MidjourneyJob.java b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/job/MidjourneyJob.java new file mode 100644 index 000000000..71b3e7731 --- /dev/null +++ b/yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/job/MidjourneyJob.java @@ -0,0 +1,21 @@ +package cn.iocoder.yudao.module.ai.job; + +import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler; +import org.springframework.stereotype.Component; + +/** + * midjourney job(同步 mj 结果) + * + * @author fansili + * @time 2024/5/28 17:57 + * @since 1.0 + */ +@Component +public class MidjourneyJob implements JobHandler { + + @Override + public String execute(String param) throws Exception { + // todo @范 同步 midjourney proxy 结果 + return ""; + } +}