chore: add expiration into create access token request

This commit is contained in:
Steven
2023-08-06 21:33:16 +08:00
parent a90279221c
commit 820b8fc379
6 changed files with 133 additions and 112 deletions

View File

@ -5,6 +5,7 @@ package slash.api.v2;
import "api/v2/common.proto";
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
option go_package = "gen/api/v2";
@ -76,7 +77,10 @@ message ListUserAccessTokensResponse {
message CreateUserAccessTokenRequest {
// id is the user id.
int32 id = 1;
// description is the title/description of the access token.
string description = 2;
// expiration is the expires duration of the access token.
google.protobuf.Duration expiration = 3;
}
message CreateUserAccessTokenResponse {