mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-02-01 19:24:57 +08:00
【代码评审】AI:AI 绘图的接入
This commit is contained in:
parent
7c1e949d77
commit
a331ed546d
@ -85,7 +85,7 @@ public class AiImageController {
|
||||
public CommonResult<Boolean> midjourneyAction(@RequestParam("id") Long imageId,
|
||||
@RequestParam("customId") String customId) {
|
||||
imageService.midjourneyAction(getLoginUserId(), imageId, customId);
|
||||
return success(null);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
}
|
@ -102,6 +102,7 @@ public class AiImageDO extends BaseDO {
|
||||
@TableField(typeHandler = JacksonTypeHandler.class)
|
||||
private MidjourneyNotifyReqVO response;
|
||||
|
||||
// TODO @fan:这个建议 Double
|
||||
/**
|
||||
* mj 进度(10%、50%、100%)
|
||||
*/
|
||||
|
@ -29,7 +29,7 @@ import java.util.Map;
|
||||
public class MidjourneyJob implements JobHandler {
|
||||
|
||||
// TODO @fan:@Resource
|
||||
@Autowired
|
||||
@Autowired(required = false)
|
||||
private MidjourneyApi midjourneyApi;
|
||||
@Autowired
|
||||
private AiImageMapper imageMapper;
|
||||
|
@ -55,7 +55,7 @@ public class AiImageServiceImpl implements AiImageService {
|
||||
private FileApi fileApi;
|
||||
@Resource
|
||||
private AiApiKeyService apiKeyService;
|
||||
@Autowired
|
||||
@Autowired(required = false)
|
||||
private MidjourneyApi midjourneyApi;
|
||||
@Value("${ai.midjourney-proxy.notifyUrl:http://127.0.0.1:48080/admin-api/ai/image/midjourney-notify}")
|
||||
private String midjourneyNotifyUrl;
|
||||
|
Loading…
Reference in New Issue
Block a user