mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 10:54:28 +00:00
add contact comments
This commit is contained in:
@@ -74,6 +74,7 @@ message ContactInfo {
|
|||||||
string updated_at = 11;
|
string updated_at = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create a contact
|
||||||
message CreateRequest {
|
message CreateRequest {
|
||||||
// required, the name of the contact
|
// required, the name of the contact
|
||||||
string name = 1;
|
string name = 1;
|
||||||
@@ -97,6 +98,7 @@ message CreateResponse {
|
|||||||
ContactInfo contact = 1;
|
ContactInfo contact = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Read contact details
|
||||||
message ReadRequest {
|
message ReadRequest {
|
||||||
string id = 1;
|
string id = 1;
|
||||||
}
|
}
|
||||||
@@ -105,6 +107,7 @@ message ReadResponse {
|
|||||||
ContactInfo contact = 1;
|
ContactInfo contact = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Delete a contact
|
||||||
message DeleteRequest {
|
message DeleteRequest {
|
||||||
// the id of the contact
|
// the id of the contact
|
||||||
string id = 1;
|
string id = 1;
|
||||||
@@ -114,6 +117,7 @@ message DeleteResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Update a contact
|
||||||
message UpdateRequest {
|
message UpdateRequest {
|
||||||
// required, the contact id
|
// required, the contact id
|
||||||
string id = 1;
|
string id = 1;
|
||||||
@@ -139,6 +143,7 @@ message UpdateResponse {
|
|||||||
ContactInfo contact = 1;
|
ContactInfo contact = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// List contacts
|
||||||
message ListRequest {
|
message ListRequest {
|
||||||
// optional
|
// optional
|
||||||
uint32 offset = 1;
|
uint32 offset = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user