File tree Expand file tree Collapse file tree 2 files changed +39
-0
lines changed
cqrs/src/main/java/com/iluwatar/cqrs Expand file tree Collapse file tree 2 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .iluwatar .cqrs .commandes ;
2+
3+ public interface ICommandService {
4+
5+ public abstract void authorCreated (String username , String name , String email );
6+
7+ public abstract void bookAddedToAuthor (String title , double price , String username );
8+
9+ public abstract void authorNameUpdated (String username , String name );
10+
11+ public abstract void authorUsernameUpdated (String oldUsername , String newUsername );
12+
13+ public abstract void authorEmailUpdated (String username , String email );
14+
15+ public abstract void bookTitleUpdated (String oldTitle , String newTitle );
16+
17+ public abstract void bookPriceUpdated (String title , double price );
18+
19+ }
Original file line number Diff line number Diff line change 1+ package com .iluwatar .cqrs .queries ;
2+
3+ import java .util .List ;
4+
5+ import com .iluwatar .cqrs .dto .AuthorDTO ;
6+ import com .iluwatar .cqrs .dto .BookDTO ;
7+
8+ public interface IQueryService {
9+
10+ public abstract AuthorDTO getAuthorByUsername (String username );
11+
12+ public abstract Double getBookPrice (String title );
13+
14+ public abstract List <BookDTO > getAuthorBooks (String username );
15+
16+ public abstract long getAuthorBooksCount (String username );
17+
18+ public abstract long getAuthorsCount ();
19+
20+ }
You can’t perform that action at this time.
0 commit comments