-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: provide v0.11 plugin api and fix some issues. (#488)
* feat: upgrade to v0.11.1 and add attachment ref operate for plugin api. * fix: can not save attachment when not appoint id. * fix: add prefix for subject cover name repeatedly. * style: remove some events that not use. * style: episode group music_dist can not display normally * style: episode details display not normal. * feat: add plugin api for attachment exists * feat: update global search key to ctrl + / * optimize: attachments.vue and Subjects.vue search input. * fix: AttachmentReferenceOperate bean not fond for plugin. * docs: update CHANGELOG.MD
- Loading branch information
Showing
22 changed files
with
198 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
api/src/main/java/run/ikaros/api/core/attachment/AttachmentReferenceOperate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package run.ikaros.api.core.attachment; | ||
|
||
import reactor.core.publisher.Flux; | ||
import reactor.core.publisher.Mono; | ||
import run.ikaros.api.plugin.AllowPluginOperate; | ||
import run.ikaros.api.store.enums.AttachmentReferenceType; | ||
|
||
public interface AttachmentReferenceOperate extends AllowPluginOperate { | ||
Mono<AttachmentReference> save(AttachmentReference attachmentReference); | ||
|
||
Flux<AttachmentReference> findAllByTypeAndAttachmentId( | ||
AttachmentReferenceType type, Long attachmentId); | ||
|
||
Mono<Void> removeById(Long attachmentRefId); | ||
|
||
Mono<Void> removeByTypeAndAttachmentIdAndReferenceId( | ||
AttachmentReferenceType type, Long attachmentId, Long referenceId); | ||
|
||
Mono<Void> matchingAttachmentsAndSubjectEpisodes(Long subjectId, Long[] attachmentIds); | ||
|
||
Mono<Void> matchingAttachmentsAndSubjectEpisodes(Long subjectId, Long[] attachmentIds, | ||
boolean notify); | ||
|
||
Mono<Void> matchingAttachmentsForEpisode(Long episodeId, Long[] attachmentIds); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=0.11.0 | ||
version=0.11.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...src/main/java/run/ikaros/server/core/attachment/operator/AttachmentReferenceOperator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package run.ikaros.server.core.attachment.operator; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
import reactor.core.publisher.Flux; | ||
import reactor.core.publisher.Mono; | ||
import run.ikaros.api.core.attachment.AttachmentReference; | ||
import run.ikaros.api.core.attachment.AttachmentReferenceOperate; | ||
import run.ikaros.api.store.enums.AttachmentReferenceType; | ||
import run.ikaros.server.core.attachment.service.AttachmentReferenceService; | ||
|
||
@Slf4j | ||
@Component | ||
public class AttachmentReferenceOperator implements AttachmentReferenceOperate { | ||
private final AttachmentReferenceService service; | ||
|
||
public AttachmentReferenceOperator(AttachmentReferenceService service) { | ||
this.service = service; | ||
} | ||
|
||
@Override | ||
public Mono<AttachmentReference> save(AttachmentReference attachmentReference) { | ||
return service.save(attachmentReference); | ||
} | ||
|
||
@Override | ||
public Flux<AttachmentReference> findAllByTypeAndAttachmentId(AttachmentReferenceType type, | ||
Long attachmentId) { | ||
return service.findAllByTypeAndAttachmentId(type, attachmentId); | ||
} | ||
|
||
@Override | ||
public Mono<Void> removeById(Long attachmentRefId) { | ||
return service.removeById(attachmentRefId); | ||
} | ||
|
||
@Override | ||
public Mono<Void> removeByTypeAndAttachmentIdAndReferenceId(AttachmentReferenceType type, | ||
Long attachmentId, | ||
Long referenceId) { | ||
return service.removeByTypeAndAttachmentIdAndReferenceId(type, attachmentId, referenceId); | ||
} | ||
|
||
@Override | ||
public Mono<Void> matchingAttachmentsAndSubjectEpisodes(Long subjectId, Long[] attachmentIds) { | ||
return service.matchingAttachmentsAndSubjectEpisodes(subjectId, attachmentIds); | ||
} | ||
|
||
@Override | ||
public Mono<Void> matchingAttachmentsAndSubjectEpisodes(Long subjectId, Long[] attachmentIds, | ||
boolean notify) { | ||
return service.matchingAttachmentsAndSubjectEpisodes(subjectId, attachmentIds, notify); | ||
} | ||
|
||
@Override | ||
public Mono<Void> matchingAttachmentsForEpisode(Long episodeId, Long[] attachmentIds) { | ||
return service.matchingAttachmentsForEpisode(episodeId, attachmentIds); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
server/src/main/java/run/ikaros/server/core/subject/event/EpisodeFileUpdateEvent.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
...in/java/run/ikaros/server/core/subject/event/SubjectCoverImageDownloadAndUpdateEvent.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters