-
Notifications
You must be signed in to change notification settings - Fork 23
Feat post publish #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hcfw007
wants to merge
10
commits into
wechaty:main
Choose a base branch
from
hcfw007:feat-post-publish
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feat post publish #181
Changes from 3 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
140639c
feat: 🎸 post grpcs
hcfw007 ee1a6fe
test: 💍 update test
hcfw007 9450759
1.5.3
hcfw007 96351f6
fix: 🐛 var naming
hcfw007 f76531b
fix: 🐛 post payload base
hcfw007 f05a6f1
feat: 🎸 export post file
hcfw007 e441c47
feat: 🎸 add post type dirty
hcfw007 8ce8609
fix: 🐛 array naming
hcfw007 c54f7c7
Merge branch 'main' into feat-post-publish
huan 7df0670
Merge branch 'main' into feat-post-publish
hcfw007 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
syntax = "proto3"; | ||
package wechaty.puppet; | ||
|
||
option go_package="github.com/wechaty/go-grpc/wechaty/puppet"; | ||
option java_package="io.github.wechaty.grpc.puppet"; | ||
option csharp_namespace = "github.wechaty.grpc.puppet"; | ||
|
||
message PaginationRequest { | ||
optional int32 page_size = 1; | ||
optional string page_token = 2; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
syntax = "proto3"; | ||
package wechaty.puppet; | ||
|
||
option go_package="github.com/wechaty/go-grpc/wechaty/puppet"; | ||
option java_package="io.github.wechaty.grpc.puppet"; | ||
option csharp_namespace = "github.wechaty.grpc.puppet"; | ||
|
||
import "google/protobuf/timestamp.proto"; | ||
|
||
/** | ||
* @deprecated | ||
* Huan(202109): will be removed after Dec 31, 2022 | ||
* https://cloud.google.com/apis/design/design_patterns#optional_primitive_fields | ||
*/ | ||
import "google/protobuf/wrappers.proto"; | ||
|
||
import "wechaty/puppet/tap.proto"; | ||
import "wechaty/puppet/pagination.proto"; | ||
|
||
enum PostType { | ||
POST_TYPE_UNSPECIFIED = 0; | ||
|
||
POST_TYPE_MOMENT = 1; | ||
POST_TYPE_CHANNEL = 2; | ||
POST_TYPE_MESSAGE = 3; | ||
} | ||
|
||
message Counter { | ||
optional int32 children = 1; | ||
optional int32 descendant = 2; | ||
|
||
Taps taps = 3; | ||
} | ||
|
||
message PostPayloadRequest { | ||
string id = 1; | ||
} | ||
|
||
message PostPayloadResponse { | ||
oneof PostPayload { | ||
PostPayloadServer post_payload_server = 1; | ||
PostPayloadClient post_payload_client = 2; | ||
} | ||
} | ||
|
||
message PostSearchRequest { | ||
PostQueryFilter filter = 1; | ||
optional PaginationRequest pagination = 2; | ||
} | ||
|
||
message PostSearchResponse { | ||
optional string next_page_token = 1; | ||
repeated string response = 2; | ||
} | ||
|
||
message PostPublishRequest { | ||
oneof PostPayload { | ||
PostPayloadServer post_payload_server = 1; | ||
PostPayloadClient post_payload_client = 2; | ||
} | ||
} | ||
|
||
message PostPublishResponse { | ||
optional string id = 1; | ||
} | ||
|
||
|
||
message PostPayloadServer { | ||
string id = 1; | ||
repeated string sayable_list = 2; | ||
|
||
string contact_id = 3; | ||
int32 timestamp = 4; | ||
|
||
Counter counter = 5; | ||
} | ||
|
||
message PostPayloadClient { | ||
string id = 1; | ||
repeated string sayable_list = 2; | ||
} | ||
|
||
message PostQueryFilter { | ||
optional string contact_id = 1; | ||
optional string id = 2; | ||
optional string orderBy = 3; | ||
optional string parentId = 4; | ||
optional string rootId = 5; | ||
optional PostType type = 6; | ||
} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
syntax = "proto3"; | ||
package wechaty.puppet; | ||
|
||
option go_package="github.com/wechaty/go-grpc/wechaty/puppet"; | ||
option java_package="io.github.wechaty.grpc.puppet"; | ||
option csharp_namespace = "github.wechaty.grpc.puppet"; | ||
|
||
enum TapType { | ||
TAP_TYPE_UNSPECIFIED = 0; | ||
TAP_TYPE_LIKE = 1; | ||
} | ||
|
||
message Taps { | ||
optional int32 unspecified = 1; | ||
optional int32 like = 2; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.