【优化】字段重命名 job id 改为 task id
This commit is contained in:
parent
8d23e1b9d9
commit
c0c2305c23
|
@ -111,11 +111,11 @@ public class AiImageDO extends BaseDO {
|
|||
@TableField(typeHandler = JacksonTypeHandler.class)
|
||||
private List<MidjourneyNotifyReqVO.Button> buttons;
|
||||
|
||||
// TODO @芋艿:再瞅瞅
|
||||
/**
|
||||
* midjourney proxy 关联的 job id
|
||||
* midjourney proxy 关联的 task id
|
||||
*/
|
||||
private String jobId;
|
||||
private String taskId;
|
||||
|
||||
/**
|
||||
* 绘画错误信息
|
||||
*/
|
||||
|
|
|
@ -34,7 +34,7 @@ public interface AiImageMapper extends BaseMapperX<AiImageDO> {
|
|||
* @return
|
||||
*/
|
||||
default AiImageDO selectByJobId(String id) {
|
||||
return this.selectOne(new LambdaQueryWrapperX<AiImageDO>().eq(AiImageDO::getJobId, id));
|
||||
return this.selectOne(new LambdaQueryWrapperX<AiImageDO>().eq(AiImageDO::getTaskId, id));
|
||||
}
|
||||
|
||||
default PageResult<AiImageDO> selectPage(Long userId, PageParam pageReqVO) {
|
||||
|
|
|
@ -158,7 +158,7 @@ public class AiImageServiceImpl implements AiImageService {
|
|||
}
|
||||
imageMapper.updateById(new AiImageDO()
|
||||
.setId(aiImageDO.getId())
|
||||
.setJobId(submitRespVO.getResult())
|
||||
.setTaskId(submitRespVO.getResult())
|
||||
);
|
||||
return aiImageDO.getId();
|
||||
}
|
||||
|
@ -228,7 +228,7 @@ public class AiImageServiceImpl implements AiImageService {
|
|||
midjourneyProxyClient.action(
|
||||
new MidjourneyActionReqVO()
|
||||
.setCustomId(customId)
|
||||
.setTaskId(aiImageDO.getJobId())
|
||||
.setTaskId(aiImageDO.getTaskId())
|
||||
.setNotifyHook(midjourneyNotifyUrl)
|
||||
);
|
||||
return Boolean.TRUE;
|
||||
|
|
Loading…
Reference in New Issue