harmadik gyakorlat
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* GetBlogQuery
|
||||
* Blog lekérdezési query
|
||||
*/
|
||||
export class GetBlogQuery {
|
||||
constructor(id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* GetAllBlogsQuery
|
||||
* Összes blog lekérdezési query
|
||||
*/
|
||||
export class GetAllBlogsQuery {
|
||||
constructor(options = {}) {
|
||||
this.publishedOnly = options.publishedOnly || false;
|
||||
this.limit = options.limit;
|
||||
this.offset = options.offset || 0;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* GetUserBlogsQuery
|
||||
* User blogjai lekérdezési query
|
||||
*/
|
||||
export class GetUserBlogsQuery {
|
||||
constructor(authorId) {
|
||||
this.authorId = authorId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user