chore: polish creator definition

This commit is contained in:
Steven
2025-01-10 23:39:50 +08:00
parent 8b7e9f5443
commit 5ff8ab9a61
9 changed files with 234 additions and 210 deletions

View File

@@ -21,8 +21,9 @@ message Activity {
// The name of the activity.
// Format: activities/{id}
string name = 1;
// The uid of the user who created the activity.
int32 creator_id = 2;
// The name of the creator.
// Format: users/{user}
string creator = 2;
// The type of the activity.
string type = 3;
// The level of the activity.

View File

@@ -46,7 +46,9 @@ service WebhookService {
message Webhook {
int32 id = 1;
int32 creator_id = 2;
// The name of the creator.
// Format: users/{user}
string creator = 2;
google.protobuf.Timestamp create_time = 3;
@@ -68,7 +70,9 @@ message GetWebhookRequest {
}
message ListWebhooksRequest {
int32 creator_id = 1;
// The name of the creator.
// Format: users/{user}
string creator = 2;
}
message ListWebhooksResponse {
@@ -90,7 +94,9 @@ message WebhookRequestPayload {
string activity_type = 2;
int32 creator_id = 3;
// The name of the creator.
// Format: users/{user}
string creator = 3;
google.protobuf.Timestamp create_time = 4;