32 lines
546 B
JavaScript
32 lines
546 B
JavaScript
/**
|
|
* 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;
|
|
}
|
|
}
|