Skip to content

Commit

Permalink
chore: polish creator definition
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Jan 10, 2025
1 parent 8b7e9f5 commit 5ff8ab9
Show file tree
Hide file tree
Showing 9 changed files with 234 additions and 210 deletions.
5 changes: 3 additions & 2 deletions proto/api/v1/activity_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
12 changes: 9 additions & 3 deletions proto/api/v1/webhook_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 {
Expand All @@ -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;

Expand Down
126 changes: 63 additions & 63 deletions proto/gen/api/v1/activity_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5ff8ab9

Please sign in to comment.