Skip to content
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

add more methods related to new wechaty-puppept update #81

Merged
merged 5 commits into from
Aug 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatie/grpc",
"version": "0.17.2",
"version": "0.17.3",
"description": "gRPC for Chatie",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.js",
Expand Down
2 changes: 2 additions & 0 deletions proto/wechaty/puppet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ service Puppet {
rpc ContactAlias (puppet.ContactAliasRequest) returns (puppet.ContactAliasResponse) {}
rpc ContactAvatar (puppet.ContactAvatarRequest) returns (puppet.ContactAvatarResponse) {}
rpc ContactPhone (puppet.ContactPhoneRequest) returns (puppet.ContactPhoneResponse) {}
rpc ContactCorporationRemark (puppet.ContactCorporationRemarkRequest) returns (puppet.ContactCorporationRemarkResponse) {}
rpc ContactDescription (puppet.ContactDescriptionRequest) returns (puppet.ContactDescriptionResponse) {}

rpc ContactList (puppet.ContactListRequest) returns (puppet.ContactListResponse) {}

Expand Down
45 changes: 32 additions & 13 deletions proto/wechaty/puppet/contact.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ enum ContactType {
CONTACT_TYPE_UNSPECIFIED = 0;
CONTACT_TYPE_PERSONAL = 1;
CONTACT_TYPE_OFFICIAL = 2;
CONTACT_TYPE_CORPORATION = 3;
}

message ContactListRequest {}
Expand All @@ -27,19 +28,23 @@ message ContactPayloadRequest {
string id = 1;
}
message ContactPayloadResponse {
string id = 1;
ContactGender gender = 2;
ContactType type = 3;
string name = 4;
string avatar = 5;
string address = 6;
string alias = 7;
string city = 8;
bool friend = 9;
string province = 10;
string signature = 11;
bool star = 12;
string weixin = 13;
string id = 1;
ContactGender gender = 2;
ContactType type = 3;
string name = 4;
string avatar = 5;
string address = 6;
string alias = 7;
string city = 8;
bool friend = 9;
string province = 10;
string signature = 11;
bool star = 12;
string weixin = 13;
string corporation = 14;
string title = 15;
string description = 16;
bool coworker = 17;
}

message ContactSelfQRCodeRequest {}
Expand Down Expand Up @@ -83,3 +88,17 @@ message ContactPhoneRequest {
message ContactPhoneResponse {
repeated string phone_list = 2;
}

message ContactCorporationRemarkRequest {
string contact_id = 1;
google.protobuf.StringValue corporation_remark = 2;
}

message ContactCorporationRemarkResponse {}

message ContactDescriptionRequest {
string contact_id = 1;
google.protobuf.StringValue description = 2;
}

message ContactDescriptionResponse {}
Loading