1.13.1原版

This commit is contained in:
2026-07-19 01:16:28 +08:00
commit c6ba83f5d7
133 changed files with 19136 additions and 0 deletions
@@ -0,0 +1,30 @@
package run.halo.moments.service;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import run.halo.app.extension.ListResult;
import run.halo.moments.ListedMoment;
import run.halo.moments.Moment;
import run.halo.moments.MomentQuery;
/**
* Service for {@link run.halo.moments.Moment}.
*
* @author LIlGG
* @since 1.0.0
*/
public interface MomentService {
Mono<ListResult<ListedMoment>> listMoment(MomentQuery query);
Mono<Moment> create(Moment moment);
Flux<String> listAllTags(MomentQuery query);
Mono<ListedMoment> findMomentByName(String name);
Mono<Moment> getByUsername(String momentName, String username);
Mono<Moment> updateBy(Moment moment);
Mono<Moment> deleteBy(Moment moment);
}