Skip to content
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
1 change: 1 addition & 0 deletions proto/wechaty/puppet.proto
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ service Puppet {

rpc ContactAlias (puppet.ContactAliasRequest) returns (puppet.ContactAliasResponse) {}
rpc ContactAvatar (puppet.ContactAvatarRequest) returns (puppet.ContactAvatarResponse) {}
rpc ContactPhone (puppet.ContactPhoneRequest) returns (puppet.ContactPhoneResponse) {}

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

Expand Down
8 changes: 8 additions & 0 deletions proto/wechaty/puppet/contact.proto
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,11 @@ message ContactAvatarResponse {
google.protobuf.StringValue filebox = 1;
}

message ContactPhoneRequest {
string contact_id = 1;
repeated string phone_list = 2;
}

message ContactPhoneResponse {
repeated string phone_list = 2;
}
6 changes: 6 additions & 0 deletions tests/puppet-server-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ export const puppetServerImpl: IPuppetServer = {
throw new Error('not implmented.')
},

contactPhone: (call, callback) => {
void call
void callback
throw new Error('not implemented.')
},

contactSelfName: (call, callback) => {
void call
void callback
Expand Down