Skip to content

Commit

Permalink
feat: optional legal filtering param in core article service
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismana committed Nov 9, 2023
1 parent 712aff6 commit 76ef654
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion stroeer/core/v1/core_article_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ service ArticleService {
*/
message GetArticleRequest {
int64 id = 1;
Legal legal = 2;
}

/** @CodeBlockEnd */

/**
Expand All @@ -71,8 +73,8 @@ message GetArticleRequest {
*/
message BatchGetArticlesRequest {
repeated int64 ids = 1;
Legal legal = 2;
}
/** @CodeBlockEnd */

/**
* ## BatchGetArticlesResponse
Expand Down Expand Up @@ -115,6 +117,7 @@ message ListArticlesRequest {
Filters filters = 2;
int32 page_size = 3;
string page_token = 4;
Legal legal = 5;

/** @CodeBlockEnd */

Expand Down Expand Up @@ -256,6 +259,23 @@ message ListArticlesRequest {
/** @CodeBlockEnd */
}

/**
* | Enum value | Description |
* |--------------------|-------------------------------------------------------------|
* | `TYPE_UNSPECIFIED` | unspecified |
* | `UNFILTERED` | include all elements regardless of their validity (default) |
* | `FILTERED` | remove elements that are expired and not yet valid |
*
* @CodeBlockStart protobuf
*/
enum Legal {
TYPE_UNSPECIFIED = 0;
UNFILTERED = 1;
FILTERED = 2;
}
/** @CodeBlockEnd */


/**
* ## `ListArticlesResponse`
*
Expand Down

0 comments on commit 76ef654

Please sign in to comment.