Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
21ad6cc8
Commit
21ad6cc8
authored
Nov 06, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update tag service creator
parent
c24181b2
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
294 additions
and
246 deletions
+294
-246
tag_service.go
api/v2/tag_service.go
+51
-10
tag_service.proto
proto/api/v2/tag_service.proto
+6
-2
user_service.proto
proto/api/v2/user_service.proto
+7
-7
README.md
proto/gen/api/v2/README.md
+2
-2
tag_service.pb.go
proto/gen/api/v2/tag_service.pb.go
+64
-61
user_service.pb.go
proto/gen/api/v2/user_service.pb.go
+162
-162
tag.ts
web/src/store/module/tag.ts
+2
-2
No files found.
api/v2/tag_service.go
View file @
21ad6cc8
...
@@ -2,7 +2,9 @@ package v2
...
@@ -2,7 +2,9 @@ package v2
import
(
import
(
"context"
"context"
"fmt"
"github.com/pkg/errors"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/grpc/status"
...
@@ -24,14 +26,31 @@ func (s *APIV2Service) UpsertTag(ctx context.Context, request *apiv2pb.UpsertTag
...
@@ -24,14 +26,31 @@ func (s *APIV2Service) UpsertTag(ctx context.Context, request *apiv2pb.UpsertTag
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"failed to upsert tag: %v"
,
err
)
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"failed to upsert tag: %v"
,
err
)
}
}
t
,
err
:=
s
.
convertTagFromStore
(
ctx
,
tag
)
if
err
!=
nil
{
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"failed to convert tag: %v"
,
err
)
}
return
&
apiv2pb
.
UpsertTagResponse
{
return
&
apiv2pb
.
UpsertTagResponse
{
Tag
:
convertTagFromStore
(
tag
)
,
Tag
:
t
,
},
nil
},
nil
}
}
func
(
s
*
APIV2Service
)
ListTags
(
ctx
context
.
Context
,
request
*
apiv2pb
.
ListTagsRequest
)
(
*
apiv2pb
.
ListTagsResponse
,
error
)
{
func
(
s
*
APIV2Service
)
ListTags
(
ctx
context
.
Context
,
request
*
apiv2pb
.
ListTagsRequest
)
(
*
apiv2pb
.
ListTagsResponse
,
error
)
{
username
,
err
:=
ExtractUsernameFromName
(
request
.
Creator
)
if
err
!=
nil
{
return
nil
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"invalid username: %v"
,
err
)
}
user
,
err
:=
s
.
Store
.
GetUser
(
ctx
,
&
store
.
FindUser
{
Username
:
&
username
,
})
if
err
!=
nil
{
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"failed to get user: %v"
,
err
)
}
if
user
==
nil
{
return
nil
,
status
.
Errorf
(
codes
.
NotFound
,
"user not found"
)
}
tags
,
err
:=
s
.
Store
.
ListTags
(
ctx
,
&
store
.
FindTag
{
tags
,
err
:=
s
.
Store
.
ListTags
(
ctx
,
&
store
.
FindTag
{
CreatorID
:
request
.
CreatorId
,
CreatorID
:
user
.
ID
,
})
})
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"failed to list tags: %v"
,
err
)
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"failed to list tags: %v"
,
err
)
...
@@ -39,26 +58,48 @@ func (s *APIV2Service) ListTags(ctx context.Context, request *apiv2pb.ListTagsRe
...
@@ -39,26 +58,48 @@ func (s *APIV2Service) ListTags(ctx context.Context, request *apiv2pb.ListTagsRe
response
:=
&
apiv2pb
.
ListTagsResponse
{}
response
:=
&
apiv2pb
.
ListTagsResponse
{}
for
_
,
tag
:=
range
tags
{
for
_
,
tag
:=
range
tags
{
response
.
Tags
=
append
(
response
.
Tags
,
convertTagFromStore
(
tag
))
t
,
err
:=
s
.
convertTagFromStore
(
ctx
,
tag
)
if
err
!=
nil
{
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"failed to convert tag: %v"
,
err
)
}
response
.
Tags
=
append
(
response
.
Tags
,
t
)
}
}
return
response
,
nil
return
response
,
nil
}
}
func
(
s
*
APIV2Service
)
DeleteTag
(
ctx
context
.
Context
,
request
*
apiv2pb
.
DeleteTagRequest
)
(
*
apiv2pb
.
DeleteTagResponse
,
error
)
{
func
(
s
*
APIV2Service
)
DeleteTag
(
ctx
context
.
Context
,
request
*
apiv2pb
.
DeleteTagRequest
)
(
*
apiv2pb
.
DeleteTagResponse
,
error
)
{
err
:=
s
.
Store
.
DeleteTag
(
ctx
,
&
store
.
DeleteTag
{
username
,
err
:=
ExtractUsernameFromName
(
request
.
Tag
.
Creator
)
Name
:
request
.
Tag
.
Name
,
if
err
!=
nil
{
CreatorID
:
request
.
Tag
.
CreatorId
,
return
nil
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"invalid username: %v"
,
err
)
}
user
,
err
:=
s
.
Store
.
GetUser
(
ctx
,
&
store
.
FindUser
{
Username
:
&
username
,
})
})
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"failed to get user: %v"
,
err
)
}
if
user
==
nil
{
return
nil
,
status
.
Errorf
(
codes
.
NotFound
,
"user not found"
)
}
if
err
:=
s
.
Store
.
DeleteTag
(
ctx
,
&
store
.
DeleteTag
{
Name
:
request
.
Tag
.
Name
,
CreatorID
:
user
.
ID
,
});
err
!=
nil
{
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"failed to delete tag: %v"
,
err
)
return
nil
,
status
.
Errorf
(
codes
.
Internal
,
"failed to delete tag: %v"
,
err
)
}
}
return
&
apiv2pb
.
DeleteTagResponse
{},
nil
return
&
apiv2pb
.
DeleteTagResponse
{},
nil
}
}
func
convertTagFromStore
(
tag
*
store
.
Tag
)
*
apiv2pb
.
Tag
{
func
(
s
*
APIV2Service
)
convertTagFromStore
(
ctx
context
.
Context
,
tag
*
store
.
Tag
)
(
*
apiv2pb
.
Tag
,
error
)
{
user
,
err
:=
s
.
Store
.
GetUser
(
ctx
,
&
store
.
FindUser
{
ID
:
&
tag
.
CreatorID
,
})
if
err
!=
nil
{
return
nil
,
errors
.
Wrap
(
err
,
"failed to get user"
)
}
return
&
apiv2pb
.
Tag
{
return
&
apiv2pb
.
Tag
{
Name
:
tag
.
Name
,
Name
:
tag
.
Name
,
Creator
Id
:
int32
(
tag
.
CreatorID
),
Creator
:
fmt
.
Sprintf
(
"%s%s"
,
UserNamePrefix
,
user
.
Username
),
}
}
,
nil
}
}
proto/api/v2/tag_service.proto
View file @
21ad6cc8
...
@@ -20,7 +20,9 @@ service TagService {
...
@@ -20,7 +20,9 @@ service TagService {
message
Tag
{
message
Tag
{
string
name
=
1
;
string
name
=
1
;
int32
creator_id
=
2
;
// The creator of tags.
// Format: users/{username}
string
creator
=
2
;
}
}
message
UpsertTagRequest
{
message
UpsertTagRequest
{
...
@@ -32,7 +34,9 @@ message UpsertTagResponse {
...
@@ -32,7 +34,9 @@ message UpsertTagResponse {
}
}
message
ListTagsRequest
{
message
ListTagsRequest
{
int32
creator_id
=
1
;
// The creator of tags.
// Format: users/{username}
string
creator
=
1
;
}
}
message
ListTagsResponse
{
message
ListTagsResponse
{
...
...
proto/api/v2/user_service.proto
View file @
21ad6cc8
...
@@ -108,6 +108,13 @@ message UpdateUserResponse {
...
@@ -108,6 +108,13 @@ message UpdateUserResponse {
User
user
=
1
;
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
{
message
ListUserAccessTokensRequest
{
// The name of the user.
// The name of the user.
// Format: users/{username}
// Format: users/{username}
...
@@ -141,10 +148,3 @@ message DeleteUserAccessTokenRequest {
...
@@ -141,10 +148,3 @@ message DeleteUserAccessTokenRequest {
}
}
message
DeleteUserAccessTokenResponse
{}
message
DeleteUserAccessTokenResponse
{}
message
UserAccessToken
{
string
access_token
=
1
;
string
description
=
2
;
google.protobuf.Timestamp
issued_at
=
3
;
google.protobuf.Timestamp
expires_at
=
4
;
}
proto/gen/api/v2/README.md
View file @
21ad6cc8
...
@@ -928,7 +928,7 @@
...
@@ -928,7 +928,7 @@
| Field | Type | Label | Description |
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| ----- | ---- | ----- | ----------- |
| creator
_id |
[
int32
](
#int32
)
| |
|
| creator
|
[
string
](
#string
)
| | The creator of tags. Format: users/{username}
|
...
@@ -959,7 +959,7 @@
...
@@ -959,7 +959,7 @@
| Field | Type | Label | Description |
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| ----- | ---- | ----- | ----------- |
| name |
[
string
](
#string
)
| | |
| name |
[
string
](
#string
)
| | |
| creator
_id |
[
int32
](
#int32
)
| |
|
| creator
|
[
string
](
#string
)
| | The creator of tags. Format: users/{username}
|
...
...
proto/gen/api/v2/tag_service.pb.go
View file @
21ad6cc8
...
@@ -27,7 +27,9 @@ type Tag struct {
...
@@ -27,7 +27,9 @@ type Tag struct {
unknownFields
protoimpl
.
UnknownFields
unknownFields
protoimpl
.
UnknownFields
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Name
string
`protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
CreatorId
int32
`protobuf:"varint,2,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
// The creator of tags.
// Format: users/{username}
Creator
string
`protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"`
}
}
func
(
x
*
Tag
)
Reset
()
{
func
(
x
*
Tag
)
Reset
()
{
...
@@ -69,11 +71,11 @@ func (x *Tag) GetName() string {
...
@@ -69,11 +71,11 @@ func (x *Tag) GetName() string {
return
""
return
""
}
}
func
(
x
*
Tag
)
GetCreator
Id
()
int32
{
func
(
x
*
Tag
)
GetCreator
()
string
{
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
Creator
Id
return
x
.
Creator
}
}
return
0
return
""
}
}
type
UpsertTagRequest
struct
{
type
UpsertTagRequest
struct
{
...
@@ -175,7 +177,9 @@ type ListTagsRequest struct {
...
@@ -175,7 +177,9 @@ type ListTagsRequest struct {
sizeCache
protoimpl
.
SizeCache
sizeCache
protoimpl
.
SizeCache
unknownFields
protoimpl
.
UnknownFields
unknownFields
protoimpl
.
UnknownFields
CreatorId
int32
`protobuf:"varint,1,opt,name=creator_id,json=creatorId,proto3" json:"creator_id,omitempty"`
// The creator of tags.
// Format: users/{username}
Creator
string
`protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}
}
func
(
x
*
ListTagsRequest
)
Reset
()
{
func
(
x
*
ListTagsRequest
)
Reset
()
{
...
@@ -210,11 +214,11 @@ func (*ListTagsRequest) Descriptor() ([]byte, []int) {
...
@@ -210,11 +214,11 @@ func (*ListTagsRequest) Descriptor() ([]byte, []int) {
return
file_api_v2_tag_service_proto_rawDescGZIP
(),
[]
int
{
3
}
return
file_api_v2_tag_service_proto_rawDescGZIP
(),
[]
int
{
3
}
}
}
func
(
x
*
ListTagsRequest
)
GetCreator
Id
()
int32
{
func
(
x
*
ListTagsRequest
)
GetCreator
()
string
{
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
Creator
Id
return
x
.
Creator
}
}
return
0
return
""
}
}
type
ListTagsResponse
struct
{
type
ListTagsResponse
struct
{
...
@@ -356,59 +360,58 @@ var file_api_v2_tag_service_proto_rawDesc = []byte{
...
@@ -356,59 +360,58 @@ var file_api_v2_tag_service_proto_rawDesc = []byte{
0x76
,
0x69
,
0x63
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x12
,
0x0c
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x76
,
0x69
,
0x63
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x12
,
0x0c
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x1a
,
0x1c
,
0x67
,
0x6f
,
0x6f
,
0x67
,
0x6c
,
0x65
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x1a
,
0x1c
,
0x67
,
0x6f
,
0x6f
,
0x67
,
0x6c
,
0x65
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x61
,
0x6e
,
0x6e
,
0x6f
,
0x74
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x73
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x61
,
0x6e
,
0x6e
,
0x6f
,
0x74
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x73
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x22
,
0x3
8
,
0x0a
,
0x03
,
0x54
,
0x61
,
0x67
,
0x12
,
0x12
,
0x0a
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x22
,
0x3
3
,
0x0a
,
0x03
,
0x54
,
0x61
,
0x67
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x1d
,
0x0a
,
0x0a
,
0x63
,
0x72
,
0x65
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x5f
,
0x69
,
0x64
,
0x18
,
0x65
,
0x12
,
0x18
,
0x0a
,
0x07
,
0x63
,
0x72
,
0x65
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x18
,
0x02
,
0x20
,
0x01
,
0x02
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x09
,
0x63
,
0x72
,
0x65
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x49
,
0x64
,
0x28
,
0x09
,
0x52
,
0x07
,
0x63
,
0x72
,
0x65
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x22
,
0x26
,
0x0a
,
0x10
,
0x55
,
0x22
,
0x26
,
0x0a
,
0x10
,
0x55
,
0x70
,
0x73
,
0x65
,
0x72
,
0x74
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x71
,
0x70
,
0x73
,
0x65
,
0x72
,
0x74
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x12
,
0x0a
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x22
,
0x38
,
0x0a
,
0x11
,
0x55
,
0x70
,
0x73
,
0x65
,
0x61
,
0x6d
,
0x65
,
0x22
,
0x38
,
0x0a
,
0x11
,
0x55
,
0x70
,
0x73
,
0x65
,
0x72
,
0x74
,
0x54
,
0x61
,
0x67
,
0x72
,
0x74
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x23
,
0x0a
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x23
,
0x0a
,
0x03
,
0x74
,
0x61
,
0x67
,
0x18
,
0x03
,
0x74
,
0x61
,
0x67
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x11
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x11
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x54
,
0x61
,
0x67
,
0x52
,
0x03
,
0x74
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x54
,
0x61
,
0x67
,
0x52
,
0x03
,
0x74
,
0x61
,
0x67
,
0x22
,
0x2b
,
0x0a
,
0x61
,
0x67
,
0x22
,
0x30
,
0x0a
,
0x0f
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x54
,
0x61
,
0x67
,
0x73
,
0x52
,
0x65
,
0x0f
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x54
,
0x61
,
0x67
,
0x73
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x1d
,
0x0a
,
0x0a
,
0x63
,
0x72
,
0x65
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x12
,
0x18
,
0x0a
,
0x07
,
0x63
,
0x72
,
0x65
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x5f
,
0x69
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x09
,
0x63
,
0x72
,
0x65
,
0x61
,
0x74
,
0x09
,
0x52
,
0x07
,
0x63
,
0x72
,
0x65
,
0x61
,
0x74
,
0x6f
,
0x72
,
0x22
,
0x39
,
0x0a
,
0x10
,
0x4c
,
0x69
,
0x6f
,
0x72
,
0x49
,
0x64
,
0x22
,
0x39
,
0x0a
,
0x10
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x54
,
0x61
,
0x67
,
0x73
,
0x73
,
0x74
,
0x54
,
0x61
,
0x67
,
0x73
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x25
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x25
,
0x0a
,
0x04
,
0x74
,
0x61
,
0x67
,
0x73
,
0x0a
,
0x04
,
0x74
,
0x61
,
0x67
,
0x73
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x11
,
0x2e
,
0x6d
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x11
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x54
,
0x61
,
0x67
,
0x52
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x54
,
0x61
,
0x67
,
0x52
,
0x04
,
0x74
,
0x61
,
0x67
,
0x73
,
0x22
,
0x04
,
0x74
,
0x61
,
0x67
,
0x73
,
0x22
,
0x37
,
0x0a
,
0x10
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x54
,
0x37
,
0x0a
,
0x10
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x71
,
0x75
,
0x61
,
0x67
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x23
,
0x0a
,
0x03
,
0x74
,
0x61
,
0x67
,
0x65
,
0x73
,
0x74
,
0x12
,
0x23
,
0x0a
,
0x03
,
0x74
,
0x61
,
0x67
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x11
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x32
,
0x11
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x54
,
0x61
,
0x67
,
0x52
,
0x03
,
0x74
,
0x61
,
0x67
,
0x22
,
0x13
,
0x54
,
0x61
,
0x67
,
0x52
,
0x03
,
0x74
,
0x61
,
0x67
,
0x22
,
0x13
,
0x0a
,
0x11
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x0a
,
0x11
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x74
,
0x65
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x32
,
0xb5
,
0x02
,
0x6e
,
0x73
,
0x65
,
0x32
,
0xb5
,
0x02
,
0x0a
,
0x0a
,
0x54
,
0x61
,
0x67
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x0a
,
0x0a
,
0x54
,
0x61
,
0x67
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x63
,
0x65
,
0x12
,
0x62
,
0x0a
,
0x09
,
0x63
,
0x65
,
0x12
,
0x62
,
0x0a
,
0x09
,
0x55
,
0x70
,
0x73
,
0x65
,
0x72
,
0x74
,
0x54
,
0x61
,
0x67
,
0x12
,
0x55
,
0x70
,
0x73
,
0x65
,
0x72
,
0x74
,
0x54
,
0x61
,
0x67
,
0x12
,
0x1e
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x1e
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x55
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x55
,
0x70
,
0x73
,
0x65
,
0x72
,
0x74
,
0x54
,
0x70
,
0x73
,
0x65
,
0x72
,
0x74
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x61
,
0x67
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x1f
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x1f
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x55
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x55
,
0x70
,
0x73
,
0x65
,
0x72
,
0x74
,
0x54
,
0x70
,
0x73
,
0x65
,
0x72
,
0x74
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x61
,
0x67
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x14
,
0x82
,
0xd3
,
0xe4
,
0x93
,
0x22
,
0x14
,
0x82
,
0xd3
,
0xe4
,
0x93
,
0x02
,
0x0e
,
0x22
,
0x0c
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x76
,
0x02
,
0x0e
,
0x22
,
0x0c
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x76
,
0x32
,
0x2f
,
0x74
,
0x61
,
0x67
,
0x73
,
0x32
,
0x2f
,
0x74
,
0x61
,
0x67
,
0x73
,
0x12
,
0x5f
,
0x0a
,
0x08
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x54
,
0x61
,
0x12
,
0x5f
,
0x0a
,
0x08
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x54
,
0x61
,
0x67
,
0x73
,
0x12
,
0x1d
,
0x2e
,
0x6d
,
0x67
,
0x73
,
0x12
,
0x1d
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x32
,
0x2e
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x54
,
0x61
,
0x67
,
0x73
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x54
,
0x61
,
0x67
,
0x73
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x1e
,
0x2e
,
0x6d
,
0x65
,
0x74
,
0x1a
,
0x1e
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x54
,
0x2e
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x54
,
0x61
,
0x67
,
0x73
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x61
,
0x67
,
0x73
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x14
,
0x82
,
0xd3
,
0xe4
,
0x65
,
0x22
,
0x14
,
0x82
,
0xd3
,
0xe4
,
0x93
,
0x02
,
0x0e
,
0x12
,
0x0c
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x93
,
0x02
,
0x0e
,
0x12
,
0x0c
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x76
,
0x32
,
0x2f
,
0x74
,
0x61
,
0x67
,
0x76
,
0x32
,
0x2f
,
0x74
,
0x61
,
0x67
,
0x73
,
0x12
,
0x62
,
0x0a
,
0x09
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x73
,
0x12
,
0x62
,
0x0a
,
0x09
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x54
,
0x61
,
0x67
,
0x12
,
0x1e
,
0x65
,
0x54
,
0x61
,
0x67
,
0x12
,
0x1e
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x44
,
0x65
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x71
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x1f
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x1f
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x44
,
0x65
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x73
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x54
,
0x61
,
0x67
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0x14
,
0x82
,
0xd3
,
0xe4
,
0x93
,
0x02
,
0x0e
,
0x2a
,
0x0c
,
0x2f
,
0x14
,
0x82
,
0xd3
,
0xe4
,
0x93
,
0x02
,
0x0e
,
0x2a
,
0x0c
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x76
,
0x32
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x76
,
0x32
,
0x2f
,
0x74
,
0x61
,
0x67
,
0x73
,
0x42
,
0xa7
,
0x01
,
0x0a
,
0x10
,
0x2f
,
0x74
,
0x61
,
0x67
,
0x73
,
0x42
,
0xa7
,
0x01
,
0x0a
,
0x10
,
0x63
,
0x6f
,
0x6d
,
0x2e
,
0x6d
,
0x65
,
0x63
,
0x6f
,
0x6d
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x42
,
0x0f
,
0x54
,
0x61
,
0x67
,
0x53
,
0x42
,
0x0f
,
0x54
,
0x61
,
0x67
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x63
,
0x65
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x65
,
0x72
,
0x76
,
0x69
,
0x63
,
0x65
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x50
,
0x01
,
0x5a
,
0x30
,
0x67
,
0x6f
,
0x50
,
0x01
,
0x5a
,
0x30
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x75
,
0x73
,
0x65
,
0x6d
,
0x65
,
0x6d
,
0x75
,
0x73
,
0x65
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2f
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2f
,
0x70
,
0x6f
,
0x73
,
0x2f
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x67
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x67
,
0x65
,
0x6e
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x76
,
0x32
,
0x3b
,
0x65
,
0x6e
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x76
,
0x32
,
0x3b
,
0x61
,
0x70
,
0x69
,
0x76
,
0x32
,
0xa2
,
0x61
,
0x70
,
0x69
,
0x76
,
0x32
,
0xa2
,
0x02
,
0x03
,
0x4d
,
0x41
,
0x58
,
0xaa
,
0x02
,
0x0c
,
0x4d
,
0x65
,
0x02
,
0x03
,
0x4d
,
0x41
,
0x58
,
0xaa
,
0x02
,
0x0c
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x41
,
0x70
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x41
,
0x70
,
0x69
,
0x2e
,
0x56
,
0x32
,
0xca
,
0x02
,
0x0c
,
0x4d
,
0x65
,
0x6d
,
0x69
,
0x2e
,
0x56
,
0x32
,
0xca
,
0x02
,
0x0c
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x5c
,
0x41
,
0x70
,
0x69
,
0x6f
,
0x73
,
0x5c
,
0x41
,
0x70
,
0x69
,
0x5c
,
0x56
,
0x32
,
0xe2
,
0x02
,
0x18
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x5c
,
0x56
,
0x32
,
0xe2
,
0x02
,
0x18
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x5c
,
0x41
,
0x70
,
0x69
,
0x5c
,
0x73
,
0x5c
,
0x41
,
0x70
,
0x69
,
0x5c
,
0x56
,
0x32
,
0x5c
,
0x47
,
0x50
,
0x42
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x56
,
0x32
,
0x5c
,
0x47
,
0x50
,
0x42
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x0e
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x3a
,
0x3a
,
0x41
,
0x70
,
0x0e
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x3a
,
0x3a
,
0x41
,
0x70
,
0x69
,
0x3a
,
0x3a
,
0x56
,
0x32
,
0x62
,
0x69
,
0x3a
,
0x3a
,
0x56
,
0x32
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
}
var
(
var
(
...
...
proto/gen/api/v2/user_service.pb.go
View file @
21ad6cc8
...
@@ -488,6 +488,77 @@ func (x *UpdateUserResponse) GetUser() *User {
...
@@ -488,6 +488,77 @@ func (x *UpdateUserResponse) GetUser() *User {
return
nil
return
nil
}
}
type
UserAccessToken
struct
{
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
unknownFields
protoimpl
.
UnknownFields
AccessToken
string
`protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
Description
string
`protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
IssuedAt
*
timestamppb
.
Timestamp
`protobuf:"bytes,3,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
ExpiresAt
*
timestamppb
.
Timestamp
`protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
}
func
(
x
*
UserAccessToken
)
Reset
()
{
*
x
=
UserAccessToken
{}
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
7
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
}
func
(
x
*
UserAccessToken
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
UserAccessToken
)
ProtoMessage
()
{}
func
(
x
*
UserAccessToken
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
7
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
ms
.
StoreMessageInfo
(
mi
)
}
return
ms
}
return
mi
.
MessageOf
(
x
)
}
// Deprecated: Use UserAccessToken.ProtoReflect.Descriptor instead.
func
(
*
UserAccessToken
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
7
}
}
func
(
x
*
UserAccessToken
)
GetAccessToken
()
string
{
if
x
!=
nil
{
return
x
.
AccessToken
}
return
""
}
func
(
x
*
UserAccessToken
)
GetDescription
()
string
{
if
x
!=
nil
{
return
x
.
Description
}
return
""
}
func
(
x
*
UserAccessToken
)
GetIssuedAt
()
*
timestamppb
.
Timestamp
{
if
x
!=
nil
{
return
x
.
IssuedAt
}
return
nil
}
func
(
x
*
UserAccessToken
)
GetExpiresAt
()
*
timestamppb
.
Timestamp
{
if
x
!=
nil
{
return
x
.
ExpiresAt
}
return
nil
}
type
ListUserAccessTokensRequest
struct
{
type
ListUserAccessTokensRequest
struct
{
state
protoimpl
.
MessageState
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
sizeCache
protoimpl
.
SizeCache
...
@@ -501,7 +572,7 @@ type ListUserAccessTokensRequest struct {
...
@@ -501,7 +572,7 @@ type ListUserAccessTokensRequest struct {
func
(
x
*
ListUserAccessTokensRequest
)
Reset
()
{
func
(
x
*
ListUserAccessTokensRequest
)
Reset
()
{
*
x
=
ListUserAccessTokensRequest
{}
*
x
=
ListUserAccessTokensRequest
{}
if
protoimpl
.
UnsafeEnabled
{
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
7
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
8
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
ms
.
StoreMessageInfo
(
mi
)
}
}
...
@@ -514,7 +585,7 @@ func (x *ListUserAccessTokensRequest) String() string {
...
@@ -514,7 +585,7 @@ func (x *ListUserAccessTokensRequest) String() string {
func
(
*
ListUserAccessTokensRequest
)
ProtoMessage
()
{}
func
(
*
ListUserAccessTokensRequest
)
ProtoMessage
()
{}
func
(
x
*
ListUserAccessTokensRequest
)
ProtoReflect
()
protoreflect
.
Message
{
func
(
x
*
ListUserAccessTokensRequest
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
7
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
8
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
if
ms
.
LoadMessageInfo
()
==
nil
{
...
@@ -527,7 +598,7 @@ func (x *ListUserAccessTokensRequest) ProtoReflect() protoreflect.Message {
...
@@ -527,7 +598,7 @@ func (x *ListUserAccessTokensRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListUserAccessTokensRequest.ProtoReflect.Descriptor instead.
// Deprecated: Use ListUserAccessTokensRequest.ProtoReflect.Descriptor instead.
func
(
*
ListUserAccessTokensRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
ListUserAccessTokensRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
7
}
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
8
}
}
}
func
(
x
*
ListUserAccessTokensRequest
)
GetName
()
string
{
func
(
x
*
ListUserAccessTokensRequest
)
GetName
()
string
{
...
@@ -548,7 +619,7 @@ type ListUserAccessTokensResponse struct {
...
@@ -548,7 +619,7 @@ type ListUserAccessTokensResponse struct {
func
(
x
*
ListUserAccessTokensResponse
)
Reset
()
{
func
(
x
*
ListUserAccessTokensResponse
)
Reset
()
{
*
x
=
ListUserAccessTokensResponse
{}
*
x
=
ListUserAccessTokensResponse
{}
if
protoimpl
.
UnsafeEnabled
{
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
8
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
9
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
ms
.
StoreMessageInfo
(
mi
)
}
}
...
@@ -561,7 +632,7 @@ func (x *ListUserAccessTokensResponse) String() string {
...
@@ -561,7 +632,7 @@ func (x *ListUserAccessTokensResponse) String() string {
func
(
*
ListUserAccessTokensResponse
)
ProtoMessage
()
{}
func
(
*
ListUserAccessTokensResponse
)
ProtoMessage
()
{}
func
(
x
*
ListUserAccessTokensResponse
)
ProtoReflect
()
protoreflect
.
Message
{
func
(
x
*
ListUserAccessTokensResponse
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
8
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
9
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
if
ms
.
LoadMessageInfo
()
==
nil
{
...
@@ -574,7 +645,7 @@ func (x *ListUserAccessTokensResponse) ProtoReflect() protoreflect.Message {
...
@@ -574,7 +645,7 @@ func (x *ListUserAccessTokensResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListUserAccessTokensResponse.ProtoReflect.Descriptor instead.
// Deprecated: Use ListUserAccessTokensResponse.ProtoReflect.Descriptor instead.
func
(
*
ListUserAccessTokensResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
ListUserAccessTokensResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
8
}
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
9
}
}
}
func
(
x
*
ListUserAccessTokensResponse
)
GetAccessTokens
()
[]
*
UserAccessToken
{
func
(
x
*
ListUserAccessTokensResponse
)
GetAccessTokens
()
[]
*
UserAccessToken
{
...
@@ -599,7 +670,7 @@ type CreateUserAccessTokenRequest struct {
...
@@ -599,7 +670,7 @@ type CreateUserAccessTokenRequest struct {
func
(
x
*
CreateUserAccessTokenRequest
)
Reset
()
{
func
(
x
*
CreateUserAccessTokenRequest
)
Reset
()
{
*
x
=
CreateUserAccessTokenRequest
{}
*
x
=
CreateUserAccessTokenRequest
{}
if
protoimpl
.
UnsafeEnabled
{
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
9
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
10
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
ms
.
StoreMessageInfo
(
mi
)
}
}
...
@@ -612,7 +683,7 @@ func (x *CreateUserAccessTokenRequest) String() string {
...
@@ -612,7 +683,7 @@ func (x *CreateUserAccessTokenRequest) String() string {
func
(
*
CreateUserAccessTokenRequest
)
ProtoMessage
()
{}
func
(
*
CreateUserAccessTokenRequest
)
ProtoMessage
()
{}
func
(
x
*
CreateUserAccessTokenRequest
)
ProtoReflect
()
protoreflect
.
Message
{
func
(
x
*
CreateUserAccessTokenRequest
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
9
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
10
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
if
ms
.
LoadMessageInfo
()
==
nil
{
...
@@ -625,7 +696,7 @@ func (x *CreateUserAccessTokenRequest) ProtoReflect() protoreflect.Message {
...
@@ -625,7 +696,7 @@ func (x *CreateUserAccessTokenRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateUserAccessTokenRequest.ProtoReflect.Descriptor instead.
// Deprecated: Use CreateUserAccessTokenRequest.ProtoReflect.Descriptor instead.
func
(
*
CreateUserAccessTokenRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
CreateUserAccessTokenRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
9
}
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
10
}
}
}
func
(
x
*
CreateUserAccessTokenRequest
)
GetName
()
string
{
func
(
x
*
CreateUserAccessTokenRequest
)
GetName
()
string
{
...
@@ -660,7 +731,7 @@ type CreateUserAccessTokenResponse struct {
...
@@ -660,7 +731,7 @@ type CreateUserAccessTokenResponse struct {
func
(
x
*
CreateUserAccessTokenResponse
)
Reset
()
{
func
(
x
*
CreateUserAccessTokenResponse
)
Reset
()
{
*
x
=
CreateUserAccessTokenResponse
{}
*
x
=
CreateUserAccessTokenResponse
{}
if
protoimpl
.
UnsafeEnabled
{
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
0
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
1
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
ms
.
StoreMessageInfo
(
mi
)
}
}
...
@@ -673,7 +744,7 @@ func (x *CreateUserAccessTokenResponse) String() string {
...
@@ -673,7 +744,7 @@ func (x *CreateUserAccessTokenResponse) String() string {
func
(
*
CreateUserAccessTokenResponse
)
ProtoMessage
()
{}
func
(
*
CreateUserAccessTokenResponse
)
ProtoMessage
()
{}
func
(
x
*
CreateUserAccessTokenResponse
)
ProtoReflect
()
protoreflect
.
Message
{
func
(
x
*
CreateUserAccessTokenResponse
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
0
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
1
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
if
ms
.
LoadMessageInfo
()
==
nil
{
...
@@ -686,7 +757,7 @@ func (x *CreateUserAccessTokenResponse) ProtoReflect() protoreflect.Message {
...
@@ -686,7 +757,7 @@ func (x *CreateUserAccessTokenResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateUserAccessTokenResponse.ProtoReflect.Descriptor instead.
// Deprecated: Use CreateUserAccessTokenResponse.ProtoReflect.Descriptor instead.
func
(
*
CreateUserAccessTokenResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
CreateUserAccessTokenResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
1
0
}
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
1
1
}
}
}
func
(
x
*
CreateUserAccessTokenResponse
)
GetAccessToken
()
*
UserAccessToken
{
func
(
x
*
CreateUserAccessTokenResponse
)
GetAccessToken
()
*
UserAccessToken
{
...
@@ -711,7 +782,7 @@ type DeleteUserAccessTokenRequest struct {
...
@@ -711,7 +782,7 @@ type DeleteUserAccessTokenRequest struct {
func
(
x
*
DeleteUserAccessTokenRequest
)
Reset
()
{
func
(
x
*
DeleteUserAccessTokenRequest
)
Reset
()
{
*
x
=
DeleteUserAccessTokenRequest
{}
*
x
=
DeleteUserAccessTokenRequest
{}
if
protoimpl
.
UnsafeEnabled
{
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
1
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
2
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
ms
.
StoreMessageInfo
(
mi
)
}
}
...
@@ -724,7 +795,7 @@ func (x *DeleteUserAccessTokenRequest) String() string {
...
@@ -724,7 +795,7 @@ func (x *DeleteUserAccessTokenRequest) String() string {
func
(
*
DeleteUserAccessTokenRequest
)
ProtoMessage
()
{}
func
(
*
DeleteUserAccessTokenRequest
)
ProtoMessage
()
{}
func
(
x
*
DeleteUserAccessTokenRequest
)
ProtoReflect
()
protoreflect
.
Message
{
func
(
x
*
DeleteUserAccessTokenRequest
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
1
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
2
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
if
ms
.
LoadMessageInfo
()
==
nil
{
...
@@ -737,7 +808,7 @@ func (x *DeleteUserAccessTokenRequest) ProtoReflect() protoreflect.Message {
...
@@ -737,7 +808,7 @@ func (x *DeleteUserAccessTokenRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteUserAccessTokenRequest.ProtoReflect.Descriptor instead.
// Deprecated: Use DeleteUserAccessTokenRequest.ProtoReflect.Descriptor instead.
func
(
*
DeleteUserAccessTokenRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
DeleteUserAccessTokenRequest
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
1
1
}
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
1
2
}
}
}
func
(
x
*
DeleteUserAccessTokenRequest
)
GetName
()
string
{
func
(
x
*
DeleteUserAccessTokenRequest
)
GetName
()
string
{
...
@@ -763,7 +834,7 @@ type DeleteUserAccessTokenResponse struct {
...
@@ -763,7 +834,7 @@ type DeleteUserAccessTokenResponse struct {
func
(
x
*
DeleteUserAccessTokenResponse
)
Reset
()
{
func
(
x
*
DeleteUserAccessTokenResponse
)
Reset
()
{
*
x
=
DeleteUserAccessTokenResponse
{}
*
x
=
DeleteUserAccessTokenResponse
{}
if
protoimpl
.
UnsafeEnabled
{
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
2
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
3
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
ms
.
StoreMessageInfo
(
mi
)
}
}
...
@@ -776,7 +847,7 @@ func (x *DeleteUserAccessTokenResponse) String() string {
...
@@ -776,7 +847,7 @@ func (x *DeleteUserAccessTokenResponse) String() string {
func
(
*
DeleteUserAccessTokenResponse
)
ProtoMessage
()
{}
func
(
*
DeleteUserAccessTokenResponse
)
ProtoMessage
()
{}
func
(
x
*
DeleteUserAccessTokenResponse
)
ProtoReflect
()
protoreflect
.
Message
{
func
(
x
*
DeleteUserAccessTokenResponse
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
2
]
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
1
3
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
if
ms
.
LoadMessageInfo
()
==
nil
{
...
@@ -789,80 +860,9 @@ func (x *DeleteUserAccessTokenResponse) ProtoReflect() protoreflect.Message {
...
@@ -789,80 +860,9 @@ func (x *DeleteUserAccessTokenResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteUserAccessTokenResponse.ProtoReflect.Descriptor instead.
// Deprecated: Use DeleteUserAccessTokenResponse.ProtoReflect.Descriptor instead.
func
(
*
DeleteUserAccessTokenResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
func
(
*
DeleteUserAccessTokenResponse
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
12
}
}
type
UserAccessToken
struct
{
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
unknownFields
protoimpl
.
UnknownFields
AccessToken
string
`protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
Description
string
`protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
IssuedAt
*
timestamppb
.
Timestamp
`protobuf:"bytes,3,opt,name=issued_at,json=issuedAt,proto3" json:"issued_at,omitempty"`
ExpiresAt
*
timestamppb
.
Timestamp
`protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
}
func
(
x
*
UserAccessToken
)
Reset
()
{
*
x
=
UserAccessToken
{}
if
protoimpl
.
UnsafeEnabled
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
13
]
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
ms
.
StoreMessageInfo
(
mi
)
}
}
func
(
x
*
UserAccessToken
)
String
()
string
{
return
protoimpl
.
X
.
MessageStringOf
(
x
)
}
func
(
*
UserAccessToken
)
ProtoMessage
()
{}
func
(
x
*
UserAccessToken
)
ProtoReflect
()
protoreflect
.
Message
{
mi
:=
&
file_api_v2_user_service_proto_msgTypes
[
13
]
if
protoimpl
.
UnsafeEnabled
&&
x
!=
nil
{
ms
:=
protoimpl
.
X
.
MessageStateOf
(
protoimpl
.
Pointer
(
x
))
if
ms
.
LoadMessageInfo
()
==
nil
{
ms
.
StoreMessageInfo
(
mi
)
}
return
ms
}
return
mi
.
MessageOf
(
x
)
}
// Deprecated: Use UserAccessToken.ProtoReflect.Descriptor instead.
func
(
*
UserAccessToken
)
Descriptor
()
([]
byte
,
[]
int
)
{
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
13
}
return
file_api_v2_user_service_proto_rawDescGZIP
(),
[]
int
{
13
}
}
}
func
(
x
*
UserAccessToken
)
GetAccessToken
()
string
{
if
x
!=
nil
{
return
x
.
AccessToken
}
return
""
}
func
(
x
*
UserAccessToken
)
GetDescription
()
string
{
if
x
!=
nil
{
return
x
.
Description
}
return
""
}
func
(
x
*
UserAccessToken
)
GetIssuedAt
()
*
timestamppb
.
Timestamp
{
if
x
!=
nil
{
return
x
.
IssuedAt
}
return
nil
}
func
(
x
*
UserAccessToken
)
GetExpiresAt
()
*
timestamppb
.
Timestamp
{
if
x
!=
nil
{
return
x
.
ExpiresAt
}
return
nil
}
var
File_api_v2_user_service_proto
protoreflect
.
FileDescriptor
var
File_api_v2_user_service_proto
protoreflect
.
FileDescriptor
var
file_api_v2_user_service_proto_rawDesc
=
[]
byte
{
var
file_api_v2_user_service_proto_rawDesc
=
[]
byte
{
...
@@ -932,54 +932,54 @@ var file_api_v2_user_service_proto_rawDesc = []byte{
...
@@ -932,54 +932,54 @@ var file_api_v2_user_service_proto_rawDesc = []byte{
0x3c
,
0x0a
,
0x12
,
0x55
,
0x70
,
0x64
,
0x61
,
0x74
,
0x65
,
0x55
,
0x73
,
0x65
,
0x72
,
0x52
,
0x65
,
0x73
,
0x3c
,
0x0a
,
0x12
,
0x55
,
0x70
,
0x64
,
0x61
,
0x74
,
0x65
,
0x55
,
0x73
,
0x65
,
0x72
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x26
,
0x0a
,
0x04
,
0x75
,
0x73
,
0x65
,
0x72
,
0x18
,
0x01
,
0x20
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x26
,
0x0a
,
0x04
,
0x75
,
0x73
,
0x65
,
0x72
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x12
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x12
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x55
,
0x73
,
0x65
,
0x72
,
0x52
,
0x04
,
0x75
,
0x73
,
0x65
,
0x72
,
0x22
,
0x
31
,
0x0a
,
0x76
,
0x32
,
0x2e
,
0x55
,
0x73
,
0x65
,
0x72
,
0x52
,
0x04
,
0x75
,
0x73
,
0x65
,
0x72
,
0x22
,
0x
ca
,
0x01
,
0x
1b
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x
0a
,
0x0f
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6
f
,
0x6b
,
0x65
,
0x6e
,
0x73
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x6
e
,
0x12
,
0x21
,
0x0a
,
0x0c
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x5f
,
0x74
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x
61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x6e
,
0x
18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x
22
,
0x62
,
0x0a
,
0x1c
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x
6f
,
0x6b
,
0x65
,
0x6e
,
0x12
,
0x20
,
0x0a
,
0x0b
,
0x64
,
0x65
,
0x73
,
0x63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x
73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x73
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x
69
,
0x6f
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x64
,
0x65
,
0x73
,
0x63
,
0x72
,
0x
12
,
0x42
,
0x0a
,
0x0d
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x5f
,
0x74
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x
69
,
0x70
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x37
,
0x0a
,
0x09
,
0x69
,
0x73
,
0x73
,
0x75
,
0x65
,
0x64
,
0x
73
,
0x18
,
0x01
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x1d
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x
5f
,
0x61
,
0x74
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1a
,
0x2e
,
0x67
,
0x6f
,
0x6f
,
0x67
,
0x6
1
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x6
c
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x75
,
0x66
,
0x2e
,
0x54
,
0x69
,
0x6d
,
0x65
,
0x73
,
0x
54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x52
,
0x0c
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x73
,
0x
74
,
0x61
,
0x6d
,
0x70
,
0x52
,
0x08
,
0x69
,
0x73
,
0x73
,
0x75
,
0x65
,
0x64
,
0x41
,
0x74
,
0x12
,
0x
6b
,
0x65
,
0x6e
,
0x73
,
0x22
,
0xa3
,
0x01
,
0x0a
,
0x1c
,
0x43
,
0x72
,
0x65
,
0x61
,
0x74
,
0x65
,
0x55
,
0x
39
,
0x0a
,
0x0a
,
0x65
,
0x78
,
0x70
,
0x69
,
0x72
,
0x65
,
0x73
,
0x5f
,
0x61
,
0x74
,
0x18
,
0x04
,
0x20
,
0x
73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x52
,
0x65
,
0x
01
,
0x28
,
0x0b
,
0x32
,
0x1a
,
0x2e
,
0x67
,
0x6f
,
0x6f
,
0x67
,
0x6c
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x7
1
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x7
4
,
0x6f
,
0x62
,
0x75
,
0x66
,
0x2e
,
0x54
,
0x69
,
0x6d
,
0x65
,
0x73
,
0x74
,
0x61
,
0x6d
,
0x70
,
0x52
,
0x0
1
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x20
,
0x0a
,
0x0b
,
0x64
,
0x65
,
0x73
,
0x0
9
,
0x65
,
0x78
,
0x70
,
0x69
,
0x72
,
0x65
,
0x73
,
0x41
,
0x74
,
0x22
,
0x31
,
0x0a
,
0x1b
,
0x4c
,
0x69
,
0x
63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x
73
,
0x74
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6
4
,
0x65
,
0x73
,
0x63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x3e
,
0x0a
,
0x0a
,
0x65
,
0x6
e
,
0x73
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x
78
,
0x70
,
0x69
,
0x72
,
0x65
,
0x73
,
0x5f
,
0x61
,
0x74
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x
65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x22
,
0x62
,
0x0a
,
0x1
a
,
0x2e
,
0x67
,
0x6f
,
0x6f
,
0x67
,
0x6c
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x75
,
0x1
c
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6
6
,
0x2e
,
0x54
,
0x69
,
0x6d
,
0x65
,
0x73
,
0x74
,
0x61
,
0x6d
,
0x70
,
0x48
,
0x00
,
0x52
,
0x09
,
0x65
,
0x6
f
,
0x6b
,
0x65
,
0x6e
,
0x73
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x42
,
0x0a
,
0x
78
,
0x70
,
0x69
,
0x72
,
0x65
,
0x73
,
0x41
,
0x74
,
0x88
,
0x01
,
0x01
,
0x42
,
0x0d
,
0x0a
,
0x0b
,
0x5f
,
0x
0d
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x5f
,
0x74
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x73
,
0x18
,
0x01
,
0x
65
,
0x78
,
0x70
,
0x69
,
0x72
,
0x65
,
0x73
,
0x5f
,
0x61
,
0x74
,
0x22
,
0x61
,
0x0a
,
0x1d
,
0x43
,
0x72
,
0x
20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x1d
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x
65
,
0x61
,
0x74
,
0x65
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x
2e
,
0x76
,
0x32
,
0x2e
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x52
,
0x
65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x40
,
0x0a
,
0x0c
,
0x61
,
0x6b
,
0x65
,
0x6e
,
0x52
,
0x
0c
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x
63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x5f
,
0x74
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x
73
,
0x22
,
0xa3
,
0x01
,
0x0a
,
0x1c
,
0x43
,
0x72
,
0x65
,
0x61
,
0x74
,
0x65
,
0x55
,
0x73
,
0x65
,
0x72
,
0x
0b
,
0x32
,
0x1d
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x
41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x
2e
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x
73
,
0x74
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0
b
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x22
,
0x55
,
0x0a
,
0x52
,
0x0
4
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x20
,
0x0a
,
0x0b
,
0x64
,
0x65
,
0x73
,
0x63
,
0x72
,
0x69
,
0x
1c
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x
70
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x64
,
0x65
,
0x73
,
0x
73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x12
,
0x0a
,
0x
63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x3e
,
0x0a
,
0x0a
,
0x65
,
0x78
,
0x70
,
0x69
,
0x
04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x
72
,
0x65
,
0x73
,
0x5f
,
0x61
,
0x74
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1a
,
0x2e
,
0x67
,
0x6
5
,
0x12
,
0x21
,
0x0a
,
0x0c
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x5f
,
0x74
,
0x6f
,
0x6b
,
0x65
,
0x6
f
,
0x6f
,
0x67
,
0x6c
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x75
,
0x66
,
0x2e
,
0x54
,
0x6
e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6
9
,
0x6d
,
0x65
,
0x73
,
0x74
,
0x61
,
0x6d
,
0x70
,
0x48
,
0x00
,
0x52
,
0x09
,
0x65
,
0x78
,
0x70
,
0x69
,
0x
6f
,
0x6b
,
0x65
,
0x6e
,
0x22
,
0x1f
,
0x0a
,
0x1d
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x55
,
0x73
,
0x
72
,
0x65
,
0x73
,
0x41
,
0x74
,
0x88
,
0x01
,
0x01
,
0x42
,
0x0d
,
0x0a
,
0x0b
,
0x5f
,
0x65
,
0x78
,
0x70
,
0x6
5
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x52
,
0x65
,
0x73
,
0x6
9
,
0x72
,
0x65
,
0x73
,
0x5f
,
0x61
,
0x74
,
0x22
,
0x61
,
0x0a
,
0x1d
,
0x43
,
0x72
,
0x65
,
0x61
,
0x74
,
0x
70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x22
,
0xca
,
0x01
,
0x0a
,
0x0f
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x
65
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x
63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x12
,
0x21
,
0x0a
,
0x0c
,
0x61
,
0x63
,
0x63
,
0x
52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x73
,
0x65
,
0x12
,
0x40
,
0x0a
,
0x0c
,
0x61
,
0x63
,
0x63
,
0x65
,
0x
65
,
0x73
,
0x73
,
0x5f
,
0x74
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x
73
,
0x73
,
0x5f
,
0x74
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1d
,
0x
0b
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x12
,
0x20
,
0x0a
,
0x0b
,
0x
2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x55
,
0x73
,
0x6
4
,
0x65
,
0x73
,
0x63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x6
5
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x52
,
0x0b
,
0x61
,
0x
09
,
0x52
,
0x0b
,
0x64
,
0x65
,
0x73
,
0x63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x37
,
0x
63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x22
,
0x55
,
0x0a
,
0x1c
,
0x44
,
0x65
,
0x
0a
,
0x09
,
0x69
,
0x73
,
0x73
,
0x75
,
0x65
,
0x64
,
0x5f
,
0x61
,
0x74
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x
6c
,
0x65
,
0x74
,
0x65
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x
0b
,
0x32
,
0x1a
,
0x2e
,
0x67
,
0x6f
,
0x6f
,
0x67
,
0x6c
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x
6b
,
0x65
,
0x6e
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x6e
,
0x61
,
0x6
2
,
0x75
,
0x66
,
0x2e
,
0x54
,
0x69
,
0x6d
,
0x65
,
0x73
,
0x74
,
0x61
,
0x6d
,
0x70
,
0x52
,
0x08
,
0x69
,
0x6
d
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x21
,
0x
73
,
0x73
,
0x75
,
0x65
,
0x64
,
0x41
,
0x74
,
0x12
,
0x39
,
0x0a
,
0x0a
,
0x65
,
0x78
,
0x70
,
0x69
,
0x7
2
,
0x
0a
,
0x0c
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x5f
,
0x74
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x18
,
0x0
2
,
0x
65
,
0x73
,
0x5f
,
0x61
,
0x74
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1a
,
0x2e
,
0x67
,
0x6f
,
0x
20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6
f
,
0x67
,
0x6c
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x75
,
0x66
,
0x2e
,
0x54
,
0x69
,
0x6
e
,
0x22
,
0x1f
,
0x0a
,
0x1d
,
0x44
,
0x65
,
0x6c
,
0x65
,
0x74
,
0x65
,
0x55
,
0x73
,
0x65
,
0x72
,
0x41
,
0x6
d
,
0x65
,
0x73
,
0x74
,
0x61
,
0x6d
,
0x70
,
0x52
,
0x09
,
0x65
,
0x78
,
0x70
,
0x69
,
0x72
,
0x65
,
0x73
,
0x6
3
,
0x63
,
0x65
,
0x73
,
0x73
,
0x54
,
0x6f
,
0x6b
,
0x65
,
0x6e
,
0x52
,
0x65
,
0x73
,
0x70
,
0x6f
,
0x6e
,
0x
41
,
0x74
,
0x32
,
0x91
,
0x07
,
0x0a
,
0x0b
,
0x55
,
0x73
,
0x65
,
0x72
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x
73
,
0x65
,
0x32
,
0x91
,
0x07
,
0x0a
,
0x0b
,
0x55
,
0x73
,
0x65
,
0x72
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x63
,
0x65
,
0x12
,
0x6d
,
0x0a
,
0x07
,
0x47
,
0x65
,
0x74
,
0x55
,
0x73
,
0x65
,
0x72
,
0x12
,
0x1c
,
0x2e
,
0x63
,
0x65
,
0x12
,
0x6d
,
0x0a
,
0x07
,
0x47
,
0x65
,
0x74
,
0x55
,
0x73
,
0x65
,
0x72
,
0x12
,
0x1c
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x47
,
0x65
,
0x74
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x61
,
0x70
,
0x69
,
0x2e
,
0x76
,
0x32
,
0x2e
,
0x47
,
0x65
,
0x74
,
0x55
,
0x73
,
0x65
,
0x72
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x1d
,
0x2e
,
0x6d
,
0x65
,
0x55
,
0x73
,
0x65
,
0x72
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x1a
,
0x1d
,
0x2e
,
0x6d
,
0x65
,
...
@@ -1073,13 +1073,13 @@ var file_api_v2_user_service_proto_goTypes = []interface{}{
...
@@ -1073,13 +1073,13 @@ var file_api_v2_user_service_proto_goTypes = []interface{}{
(
*
CreateUserResponse
)(
nil
),
// 5: memos.api.v2.CreateUserResponse
(
*
CreateUserResponse
)(
nil
),
// 5: memos.api.v2.CreateUserResponse
(
*
UpdateUserRequest
)(
nil
),
// 6: memos.api.v2.UpdateUserRequest
(
*
UpdateUserRequest
)(
nil
),
// 6: memos.api.v2.UpdateUserRequest
(
*
UpdateUserResponse
)(
nil
),
// 7: memos.api.v2.UpdateUserResponse
(
*
UpdateUserResponse
)(
nil
),
// 7: memos.api.v2.UpdateUserResponse
(
*
ListUserAccessTokensRequest
)(
nil
),
// 8: memos.api.v2.ListUserAccessTokensRequest
(
*
UserAccessToken
)(
nil
),
// 8: memos.api.v2.UserAccessToken
(
*
ListUserAccessTokensRe
sponse
)(
nil
),
// 9: memos.api.v2.ListUserAccessTokensResponse
(
*
ListUserAccessTokensRe
quest
)(
nil
),
// 9: memos.api.v2.ListUserAccessTokensRequest
(
*
CreateUserAccessTokenRequest
)(
nil
),
// 10: memos.api.v2.CreateUserAccessTokenRequest
(
*
ListUserAccessTokensResponse
)(
nil
),
// 10: memos.api.v2.ListUserAccessTokensResponse
(
*
CreateUserAccessTokenRe
sponse
)(
nil
),
// 11: memos.api.v2.CreateUserAccessTokenResponse
(
*
CreateUserAccessTokenRe
quest
)(
nil
),
// 11: memos.api.v2.CreateUserAccessTokenRequest
(
*
DeleteUserAccessTokenRequest
)(
nil
),
// 12: memos.api.v2.DeleteUserAccessTokenRequest
(
*
CreateUserAccessTokenResponse
)(
nil
),
// 12: memos.api.v2.CreateUserAccessTokenResponse
(
*
DeleteUserAccessTokenRe
sponse
)(
nil
),
// 13: memos.api.v2.DeleteUserAccessTokenResponse
(
*
DeleteUserAccessTokenRe
quest
)(
nil
),
// 13: memos.api.v2.DeleteUserAccessTokenRequest
(
*
UserAccessToken
)(
nil
),
// 14: memos.api.v2.UserAccessToken
(
*
DeleteUserAccessTokenResponse
)(
nil
),
// 14: memos.api.v2.DeleteUserAccessTokenResponse
(
RowStatus
)(
0
),
// 15: memos.api.v2.RowStatus
(
RowStatus
)(
0
),
// 15: memos.api.v2.RowStatus
(
*
timestamppb
.
Timestamp
)(
nil
),
// 16: google.protobuf.Timestamp
(
*
timestamppb
.
Timestamp
)(
nil
),
// 16: google.protobuf.Timestamp
(
*
fieldmaskpb
.
FieldMask
)(
nil
),
// 17: google.protobuf.FieldMask
(
*
fieldmaskpb
.
FieldMask
)(
nil
),
// 17: google.protobuf.FieldMask
...
@@ -1095,23 +1095,23 @@ var file_api_v2_user_service_proto_depIdxs = []int32{
...
@@ -1095,23 +1095,23 @@ var file_api_v2_user_service_proto_depIdxs = []int32{
1
,
// 7: memos.api.v2.UpdateUserRequest.user:type_name -> memos.api.v2.User
1
,
// 7: memos.api.v2.UpdateUserRequest.user:type_name -> memos.api.v2.User
17
,
// 8: memos.api.v2.UpdateUserRequest.update_mask:type_name -> google.protobuf.FieldMask
17
,
// 8: memos.api.v2.UpdateUserRequest.update_mask:type_name -> google.protobuf.FieldMask
1
,
// 9: memos.api.v2.UpdateUserResponse.user:type_name -> memos.api.v2.User
1
,
// 9: memos.api.v2.UpdateUserResponse.user:type_name -> memos.api.v2.User
1
4
,
// 10: memos.api.v2.ListUserAccessTokensResponse.access_tokens:type_name -> memos.api.v2.UserAccessToken
1
6
,
// 10: memos.api.v2.UserAccessToken.issued_at:type_name -> google.protobuf.Timestamp
16
,
// 11: memos.api.v2.
CreateUserAccessTokenRequest
.expires_at:type_name -> google.protobuf.Timestamp
16
,
// 11: memos.api.v2.
UserAccessToken
.expires_at:type_name -> google.protobuf.Timestamp
14
,
// 12: memos.api.v2.CreateUserAccessTokenResponse.access_token
:type_name -> memos.api.v2.UserAccessToken
8
,
// 12: memos.api.v2.ListUserAccessTokensResponse.access_tokens
:type_name -> memos.api.v2.UserAccessToken
16
,
// 13: memos.api.v2.
UserAccessToken.issued
_at:type_name -> google.protobuf.Timestamp
16
,
// 13: memos.api.v2.
CreateUserAccessTokenRequest.expires
_at:type_name -> google.protobuf.Timestamp
16
,
// 14: memos.api.v2.UserAccessToken.expires_at:type_name -> google.protobuf.Timestamp
8
,
// 14: memos.api.v2.CreateUserAccessTokenResponse.access_token:type_name -> memos.api.v2.UserAccessToken
2
,
// 15: memos.api.v2.UserService.GetUser:input_type -> memos.api.v2.GetUserRequest
2
,
// 15: memos.api.v2.UserService.GetUser:input_type -> memos.api.v2.GetUserRequest
4
,
// 16: memos.api.v2.UserService.CreateUser:input_type -> memos.api.v2.CreateUserRequest
4
,
// 16: memos.api.v2.UserService.CreateUser:input_type -> memos.api.v2.CreateUserRequest
6
,
// 17: memos.api.v2.UserService.UpdateUser:input_type -> memos.api.v2.UpdateUserRequest
6
,
// 17: memos.api.v2.UserService.UpdateUser:input_type -> memos.api.v2.UpdateUserRequest
8
,
// 18: memos.api.v2.UserService.ListUserAccessTokens:input_type -> memos.api.v2.ListUserAccessTokensRequest
9
,
// 18: memos.api.v2.UserService.ListUserAccessTokens:input_type -> memos.api.v2.ListUserAccessTokensRequest
1
0
,
// 19: memos.api.v2.UserService.CreateUserAccessToken:input_type -> memos.api.v2.CreateUserAccessTokenRequest
1
1
,
// 19: memos.api.v2.UserService.CreateUserAccessToken:input_type -> memos.api.v2.CreateUserAccessTokenRequest
1
2
,
// 20: memos.api.v2.UserService.DeleteUserAccessToken:input_type -> memos.api.v2.DeleteUserAccessTokenRequest
1
3
,
// 20: memos.api.v2.UserService.DeleteUserAccessToken:input_type -> memos.api.v2.DeleteUserAccessTokenRequest
3
,
// 21: memos.api.v2.UserService.GetUser:output_type -> memos.api.v2.GetUserResponse
3
,
// 21: memos.api.v2.UserService.GetUser:output_type -> memos.api.v2.GetUserResponse
5
,
// 22: memos.api.v2.UserService.CreateUser:output_type -> memos.api.v2.CreateUserResponse
5
,
// 22: memos.api.v2.UserService.CreateUser:output_type -> memos.api.v2.CreateUserResponse
7
,
// 23: memos.api.v2.UserService.UpdateUser:output_type -> memos.api.v2.UpdateUserResponse
7
,
// 23: memos.api.v2.UserService.UpdateUser:output_type -> memos.api.v2.UpdateUserResponse
9
,
// 24: memos.api.v2.UserService.ListUserAccessTokens:output_type -> memos.api.v2.ListUserAccessTokensResponse
10
,
// 24: memos.api.v2.UserService.ListUserAccessTokens:output_type -> memos.api.v2.ListUserAccessTokensResponse
1
1
,
// 25: memos.api.v2.UserService.CreateUserAccessToken:output_type -> memos.api.v2.CreateUserAccessTokenResponse
1
2
,
// 25: memos.api.v2.UserService.CreateUserAccessToken:output_type -> memos.api.v2.CreateUserAccessTokenResponse
1
3
,
// 26: memos.api.v2.UserService.DeleteUserAccessToken:output_type -> memos.api.v2.DeleteUserAccessTokenResponse
1
4
,
// 26: memos.api.v2.UserService.DeleteUserAccessToken:output_type -> memos.api.v2.DeleteUserAccessTokenResponse
21
,
// [21:27] is the sub-list for method output_type
21
,
// [21:27] is the sub-list for method output_type
15
,
// [15:21] is the sub-list for method input_type
15
,
// [15:21] is the sub-list for method input_type
15
,
// [15:15] is the sub-list for extension type_name
15
,
// [15:15] is the sub-list for extension type_name
...
@@ -1211,7 +1211,7 @@ func file_api_v2_user_service_proto_init() {
...
@@ -1211,7 +1211,7 @@ func file_api_v2_user_service_proto_init() {
}
}
}
}
file_api_v2_user_service_proto_msgTypes
[
7
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
file_api_v2_user_service_proto_msgTypes
[
7
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
ListUserAccessTokensRequest
);
i
{
switch
v
:=
v
.
(
*
UserAccessToken
);
i
{
case
0
:
case
0
:
return
&
v
.
state
return
&
v
.
state
case
1
:
case
1
:
...
@@ -1223,7 +1223,7 @@ func file_api_v2_user_service_proto_init() {
...
@@ -1223,7 +1223,7 @@ func file_api_v2_user_service_proto_init() {
}
}
}
}
file_api_v2_user_service_proto_msgTypes
[
8
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
file_api_v2_user_service_proto_msgTypes
[
8
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
ListUserAccessTokensRe
sponse
);
i
{
switch
v
:=
v
.
(
*
ListUserAccessTokensRe
quest
);
i
{
case
0
:
case
0
:
return
&
v
.
state
return
&
v
.
state
case
1
:
case
1
:
...
@@ -1235,7 +1235,7 @@ func file_api_v2_user_service_proto_init() {
...
@@ -1235,7 +1235,7 @@ func file_api_v2_user_service_proto_init() {
}
}
}
}
file_api_v2_user_service_proto_msgTypes
[
9
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
file_api_v2_user_service_proto_msgTypes
[
9
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
CreateUserAccessTokenRequest
);
i
{
switch
v
:=
v
.
(
*
ListUserAccessTokensResponse
);
i
{
case
0
:
case
0
:
return
&
v
.
state
return
&
v
.
state
case
1
:
case
1
:
...
@@ -1247,7 +1247,7 @@ func file_api_v2_user_service_proto_init() {
...
@@ -1247,7 +1247,7 @@ func file_api_v2_user_service_proto_init() {
}
}
}
}
file_api_v2_user_service_proto_msgTypes
[
10
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
file_api_v2_user_service_proto_msgTypes
[
10
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
CreateUserAccessTokenRe
sponse
);
i
{
switch
v
:=
v
.
(
*
CreateUserAccessTokenRe
quest
);
i
{
case
0
:
case
0
:
return
&
v
.
state
return
&
v
.
state
case
1
:
case
1
:
...
@@ -1259,7 +1259,7 @@ func file_api_v2_user_service_proto_init() {
...
@@ -1259,7 +1259,7 @@ func file_api_v2_user_service_proto_init() {
}
}
}
}
file_api_v2_user_service_proto_msgTypes
[
11
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
file_api_v2_user_service_proto_msgTypes
[
11
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
DeleteUserAccessTokenRequest
);
i
{
switch
v
:=
v
.
(
*
CreateUserAccessTokenResponse
);
i
{
case
0
:
case
0
:
return
&
v
.
state
return
&
v
.
state
case
1
:
case
1
:
...
@@ -1271,7 +1271,7 @@ func file_api_v2_user_service_proto_init() {
...
@@ -1271,7 +1271,7 @@ func file_api_v2_user_service_proto_init() {
}
}
}
}
file_api_v2_user_service_proto_msgTypes
[
12
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
file_api_v2_user_service_proto_msgTypes
[
12
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
DeleteUserAccessTokenRe
sponse
);
i
{
switch
v
:=
v
.
(
*
DeleteUserAccessTokenRe
quest
);
i
{
case
0
:
case
0
:
return
&
v
.
state
return
&
v
.
state
case
1
:
case
1
:
...
@@ -1283,7 +1283,7 @@ func file_api_v2_user_service_proto_init() {
...
@@ -1283,7 +1283,7 @@ func file_api_v2_user_service_proto_init() {
}
}
}
}
file_api_v2_user_service_proto_msgTypes
[
13
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
file_api_v2_user_service_proto_msgTypes
[
13
]
.
Exporter
=
func
(
v
interface
{},
i
int
)
interface
{}
{
switch
v
:=
v
.
(
*
UserAccessToken
);
i
{
switch
v
:=
v
.
(
*
DeleteUserAccessTokenResponse
);
i
{
case
0
:
case
0
:
return
&
v
.
state
return
&
v
.
state
case
1
:
case
1
:
...
@@ -1295,7 +1295,7 @@ func file_api_v2_user_service_proto_init() {
...
@@ -1295,7 +1295,7 @@ func file_api_v2_user_service_proto_init() {
}
}
}
}
}
}
file_api_v2_user_service_proto_msgTypes
[
9
]
.
OneofWrappers
=
[]
interface
{}{}
file_api_v2_user_service_proto_msgTypes
[
10
]
.
OneofWrappers
=
[]
interface
{}{}
type
x
struct
{}
type
x
struct
{}
out
:=
protoimpl
.
TypeBuilder
{
out
:=
protoimpl
.
TypeBuilder
{
File
:
protoimpl
.
DescBuilder
{
File
:
protoimpl
.
DescBuilder
{
...
...
web/src/store/module/tag.ts
View file @
21ad6cc8
...
@@ -13,7 +13,7 @@ export const useTagStore = () => {
...
@@ -13,7 +13,7 @@ export const useTagStore = () => {
const
fetchTags
=
async
()
=>
{
const
fetchTags
=
async
()
=>
{
const
{
tags
}
=
await
tagServiceClient
.
listTags
({
const
{
tags
}
=
await
tagServiceClient
.
listTags
({
creator
Id
:
currentUser
.
id
,
creator
:
currentUser
.
name
,
});
});
store
.
dispatch
(
setTags
(
tags
.
map
((
tag
)
=>
tag
.
name
)));
store
.
dispatch
(
setTags
(
tags
.
map
((
tag
)
=>
tag
.
name
)));
};
};
...
@@ -29,7 +29,7 @@ export const useTagStore = () => {
...
@@ -29,7 +29,7 @@ export const useTagStore = () => {
await
tagServiceClient
.
deleteTag
({
await
tagServiceClient
.
deleteTag
({
tag
:
{
tag
:
{
name
:
tagName
,
name
:
tagName
,
creator
Id
:
currentUser
.
id
,
creator
:
currentUser
.
name
,
},
},
});
});
store
.
dispatch
(
deleteTagAction
(
tagName
));
store
.
dispatch
(
deleteTagAction
(
tagName
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment