Skip to content

Commit

Permalink
feat: add PorterGetNotifyTargetItems
Browse files Browse the repository at this point in the history
  • Loading branch information
MuZhou233 committed Sep 24, 2024
1 parent 367d7ec commit 464a66c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proto/librarian/porter/v1/porter.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ service LibrarianPorterService {
// `Yesod`
rpc PullFeed(PullFeedRequest) returns (PullFeedResponse);
// `Yesod`
rpc PushFeedItems(PushFeedItemsRequest) returns (PushFeedItemsResponse);
// `Yesod`
rpc ExecFeedItemAction(ExecFeedItemActionRequest) returns (ExecFeedItemActionResponse);

// `Yesod` Enabled Setter can add items to feed through `LibrarianSephirahService.PUpsertFeed`
Expand All @@ -43,6 +41,9 @@ service LibrarianPorterService {
rpc EnableFeedGetter(EnableFeedGetterRequest) returns (EnableFeedGetterResponse);
// `Yesod`
rpc DisableFeedGetter(DisableFeedGetterRequest) returns (DisableFeedGetterResponse);

// `Netzach`
rpc PushFeedItems(PushFeedItemsRequest) returns (PushFeedItemsResponse);
}

message GetPorterInformationRequest {}
Expand Down
10 changes: 10 additions & 0 deletions proto/librarian/sephirah/v1/netzach.proto
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,16 @@ message ListNotifyFlowsResponse {
repeated NotifyFlow flows = 2;
}

message PorterGetNotifyTargetItemsRequest {
librarian.v1.InternalID id = 1;
librarian.v1.PagingRequest paging = 2;
}
message PorterGetNotifyTargetItemsResponse {
librarian.v1.PagingResponse paging = 1;
librarian.v1.FeatureRequest destination = 2;
repeated librarian.v1.FeedItem items = 3;
}

message NotifyTarget {
librarian.v1.InternalID id = 1;
string name = 2;
Expand Down
3 changes: 3 additions & 0 deletions proto/librarian/sephirah/v1/sephirah.proto
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,9 @@ service LibrarianSephirahService {
// `Netzach` `Normal`
rpc ListNotifyFlows(ListNotifyFlowsRequest) returns (ListNotifyFlowsResponse);

// `Netzach` `Porter`
rpc PorterGetNotifyTargetItems(PorterGetNotifyTargetItemsRequest) returns (PorterGetNotifyTargetItemsResponse);

// `Netzach` `Admin` `Normal limited`
rpc ListSystemNotifications(ListSystemNotificationsRequest) returns (ListSystemNotificationsResponse);
// `Netzach` `Normal`
Expand Down

0 comments on commit 464a66c

Please sign in to comment.