31 lines
751 B
Java
31 lines
751 B
Java
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);
|
|
}
|