chore: update tag service creator

This commit is contained in:
Steven
2023-11-06 08:05:07 +08:00
parent c24181b2be
commit 21ad6cc871
7 changed files with 359 additions and 311 deletions

View File

@@ -20,7 +20,9 @@ service TagService {
message Tag {
string name = 1;
int32 creator_id = 2;
// The creator of tags.
// Format: users/{username}
string creator = 2;
}
message UpsertTagRequest {
@@ -32,7 +34,9 @@ message UpsertTagResponse {
}
message ListTagsRequest {
int32 creator_id = 1;
// The creator of tags.
// Format: users/{username}
string creator = 1;
}
message ListTagsResponse {

View File

@@ -108,6 +108,13 @@ message UpdateUserResponse {
User user = 1;
}
message UserAccessToken {
string access_token = 1;
string description = 2;
google.protobuf.Timestamp issued_at = 3;
google.protobuf.Timestamp expires_at = 4;
}
message ListUserAccessTokensRequest {
// The name of the user.
// Format: users/{username}
@@ -141,10 +148,3 @@ message DeleteUserAccessTokenRequest {
}
message DeleteUserAccessTokenResponse {}
message UserAccessToken {
string access_token = 1;
string description = 2;
google.protobuf.Timestamp issued_at = 3;
google.protobuf.Timestamp expires_at = 4;
}