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
1da07529
Commit
1da07529
authored
Sep 14, 2024
by
johnnyjoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add schema version to workspace setting
parent
b787d1c7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
221 additions
and
318 deletions
+221
-318
apidocs.swagger.yaml
docs/apidocs.swagger.yaml
+64
-201
workspace_setting.pb.go
proto/gen/store/workspace_setting.pb.go
+129
-117
workspace_setting.proto
proto/store/workspace_setting.proto
+3
-0
migrator.go
store/migrator.go
+25
-0
No files found.
docs/apidocs.swagger.yaml
View file @
1da07529
...
@@ -300,16 +300,12 @@ paths:
...
@@ -300,16 +300,12 @@ paths:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
-
name
:
pageToken
-
name
:
pageToken
description
:
|-
description
:
"
A
page
token,
received
from
a
previous
`ListMemos`
call.
\r\n
Provide
this
to
retrieve
the
subsequent
page."
A page token, received from a previous `ListMemos` call.
Provide this to retrieve the subsequent page.
in
:
query
in
:
query
required
:
false
required
:
false
type
:
string
type
:
string
-
name
:
filter
-
name
:
filter
description
:
|-
description
:
"
Filter
is
used
to
filter
memos
returned
in
the
list.
\r\n
Format:
\"
creator
==
'users/{uid}'
&&
visibilities
==
['PUBLIC',
'PROTECTED']
\"
"
Filter is used to filter memos returned in the list.
Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
in
:
query
in
:
query
required
:
false
required
:
false
type
:
string
type
:
string
...
@@ -484,9 +480,7 @@ paths:
...
@@ -484,9 +480,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
filter
-
name
:
filter
description
:
|-
description
:
"
Filter
is
used
to
filter
users
returned
in
the
list.
\r\n
Format:
\"
username
==
'frank'
\"
"
Filter is used to filter users returned in the list.
Format: "username == 'frank'"
in
:
query
in
:
query
required
:
false
required
:
false
type
:
string
type
:
string
...
@@ -647,9 +641,7 @@ paths:
...
@@ -647,9 +641,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
resource
name
of
the
workspace
setting.
\r\n
Format:
settings/{setting}"
The resource name of the workspace setting.
Format: settings/{setting}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -671,9 +663,7 @@ paths:
...
@@ -671,9 +663,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
setting.name
-
name
:
setting.name
description
:
|-
description
:
"
name
is
the
name
of
the
setting.
\r\n
Format:
settings/{setting}"
name is the name of the setting.
Format: settings/{setting}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -709,9 +699,7 @@ paths:
...
@@ -709,9 +699,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
identityProvider.name
-
name
:
identityProvider.name
description
:
|-
description
:
"
The
name
of
the
identityProvider.
\r\n
Format:
identityProviders/{id}"
The name of the identityProvider.
Format: identityProviders/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -749,9 +737,7 @@ paths:
...
@@ -749,9 +737,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
inbox.name
-
name
:
inbox.name
description
:
|-
description
:
"
The
name
of
the
inbox.
\r\n
Format:
inboxes/{id}"
The name of the inbox.
Format: inboxes/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -795,10 +781,7 @@ paths:
...
@@ -795,10 +781,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
memo.name
-
name
:
memo.name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}
\r\n
id
is
the
system
generated
id."
The name of the memo.
Format: memos/{id}
id is the system generated id.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -816,9 +799,7 @@ paths:
...
@@ -816,9 +799,7 @@ paths:
$ref
:
'
#/definitions/v1RowStatus'
$ref
:
'
#/definitions/v1RowStatus'
creator
:
creator
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
creator.
\r\n
Format:
users/{id}"
The name of the creator.
Format: users/{id}
createTime
:
createTime
:
type
:
string
type
:
string
format
:
date-time
format
:
date-time
...
@@ -871,9 +852,7 @@ paths:
...
@@ -871,9 +852,7 @@ paths:
readOnly
:
true
readOnly
:
true
parent
:
parent
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
parent
memo.
\r\n
Format:
memos/{id}"
The name of the parent memo.
Format: memos/{id}
readOnly
:
true
readOnly
:
true
snippet
:
snippet
:
type
:
string
type
:
string
...
@@ -895,9 +874,7 @@ paths:
...
@@ -895,9 +874,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_1
-
name
:
name_1
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -919,9 +896,7 @@ paths:
...
@@ -919,9 +896,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_1
-
name
:
name_1
description
:
|-
description
:
"
The
name
of
the
identityProvider
to
delete.
\r\n
Format:
identityProviders/{id}"
The name of the identityProvider to delete.
Format: identityProviders/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -943,9 +918,7 @@ paths:
...
@@ -943,9 +918,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_2
-
name
:
name_2
description
:
|-
description
:
"
The
name
of
the
identityProvider
to
get.
\r\n
Format:
identityProviders/{id}"
The name of the identityProvider to get.
Format: identityProviders/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -967,9 +940,7 @@ paths:
...
@@ -967,9 +940,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_2
-
name
:
name_2
description
:
|-
description
:
"
The
name
of
the
inbox
to
delete.
\r\n
Format:
inboxes/{id}"
The name of the inbox to delete.
Format: inboxes/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -991,10 +962,7 @@ paths:
...
@@ -991,10 +962,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_3
-
name
:
name_3
description
:
|-
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1016,10 +984,7 @@ paths:
...
@@ -1016,10 +984,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_3
-
name
:
name_3
description
:
|-
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1041,9 +1006,7 @@ paths:
...
@@ -1041,9 +1006,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_4
-
name
:
name_4
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1065,9 +1028,7 @@ paths:
...
@@ -1065,9 +1028,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name_4
-
name
:
name_4
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1089,9 +1050,7 @@ paths:
...
@@ -1089,9 +1050,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
activity.
\r\n
Format:
activities/{id}"
The name of the activity.
Format: activities/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1113,9 +1072,7 @@ paths:
...
@@ -1113,9 +1072,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1137,9 +1094,7 @@ paths:
...
@@ -1137,9 +1094,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1160,9 +1115,7 @@ paths:
...
@@ -1160,9 +1115,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1190,9 +1143,7 @@ paths:
...
@@ -1190,9 +1143,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1219,9 +1170,7 @@ paths:
...
@@ -1219,9 +1170,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1242,9 +1191,7 @@ paths:
...
@@ -1242,9 +1191,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1271,9 +1218,7 @@ paths:
...
@@ -1271,9 +1218,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
list
all
properties."
The name of the memo.
Format: memos/{id}. Use "memos/-" to list all properties.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1296,9 +1241,7 @@ paths:
...
@@ -1296,9 +1241,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
rebuild
all
memos."
The name of the memo.
Format: memos/{id}. Use "memos/-" to rebuild all memos.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1325,9 +1268,7 @@ paths:
...
@@ -1325,9 +1268,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1348,9 +1289,7 @@ paths:
...
@@ -1348,9 +1289,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1377,9 +1316,7 @@ paths:
...
@@ -1377,9 +1316,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1401,9 +1338,7 @@ paths:
...
@@ -1401,9 +1338,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1430,9 +1365,7 @@ paths:
...
@@ -1430,9 +1365,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1454,9 +1387,7 @@ paths:
...
@@ -1454,9 +1387,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}"
The name of the memo.
Format: memos/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1483,9 +1414,7 @@ paths:
...
@@ -1483,9 +1414,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1507,17 +1436,13 @@ paths:
...
@@ -1507,17 +1436,13 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
parent
-
name
:
parent
description
:
|-
description
:
"
The
parent,
who
owns
the
tags.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
list
all
tags."
The parent, who owns the tags.
Format: memos/{id}. Use "memos/-" to list all tags.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
pattern
:
memos/[^/]+
pattern
:
memos/[^/]+
-
name
:
filter
-
name
:
filter
description
:
|-
description
:
"
Filter
is
used
to
filter
memos.
\r\n
Format:
\"
creator
==
'users/{uid}'
&&
visibilities
==
['PUBLIC',
'PROTECTED']
\"
"
Filter is used to filter memos.
Format: "creator == 'users/{uid}' && visibilities == ['PUBLIC', 'PROTECTED']"
in
:
query
in
:
query
required
:
false
required
:
false
type
:
string
type
:
string
...
@@ -1539,9 +1464,7 @@ paths:
...
@@ -1539,9 +1464,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
parent
-
name
:
parent
description
:
|-
description
:
"
The
parent,
who
owns
the
tags.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
delete
all
tags."
The parent, who owns the tags.
Format: memos/{id}. Use "memos/-" to delete all tags.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1572,9 +1495,7 @@ paths:
...
@@ -1572,9 +1495,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
parent
-
name
:
parent
description
:
|-
description
:
"
The
parent,
who
owns
the
tags.
\r\n
Format:
memos/{id}.
Use
\"
memos/-
\"
to
rename
all
tags."
The parent, who owns the tags.
Format: memos/{id}. Use "memos/-" to rename all tags.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1601,10 +1522,7 @@ paths:
...
@@ -1601,10 +1522,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
resource.name
-
name
:
resource.name
description
:
|-
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1636,9 +1554,7 @@ paths:
...
@@ -1636,9 +1554,7 @@ paths:
format
:
int64
format
:
int64
memo
:
memo
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
related
memo.
\r\n
Format:
memos/{id}"
The related memo.
Format: memos/{id}
tags
:
tags
:
-
ResourceService
-
ResourceService
/api/v1/{setting.name}
:
/api/v1/{setting.name}
:
...
@@ -1656,9 +1572,7 @@ paths:
...
@@ -1656,9 +1572,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
setting.name
-
name
:
setting.name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1695,9 +1609,7 @@ paths:
...
@@ -1695,9 +1609,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
user.name
-
name
:
user.name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1751,9 +1663,7 @@ paths:
...
@@ -1751,9 +1663,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1786,10 +1696,7 @@ paths:
...
@@ -1786,10 +1696,7 @@ paths:
$ref
:
'
#/definitions/googlerpcStatus'
$ref
:
'
#/definitions/googlerpcStatus'
parameters
:
parameters
:
-
name
:
name
-
name
:
name
description
:
|-
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
in
:
path
in
:
path
required
:
true
required
:
true
type
:
string
type
:
string
...
@@ -1976,9 +1883,7 @@ definitions:
...
@@ -1976,9 +1883,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
identityProvider.
\r\n
Format:
identityProviders/{id}"
The name of the identityProvider.
Format: identityProviders/{id}
type
:
type
:
$ref
:
'
#/definitions/apiv1IdentityProviderType'
$ref
:
'
#/definitions/apiv1IdentityProviderType'
title
:
title
:
...
@@ -2022,9 +1927,7 @@ definitions:
...
@@ -2022,9 +1927,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
locale
:
locale
:
type
:
string
type
:
string
description
:
The preferred locale of the user.
description
:
The preferred locale of the user.
...
@@ -2068,10 +1971,7 @@ definitions:
...
@@ -2068,10 +1971,7 @@ definitions:
weekStartDayOffset
:
weekStartDayOffset
:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
description
:
|-
description
:
"
week_start_day_offset
is
the
week
start
day
offset
from
Sunday.
\r\n
0:
Sunday,
1:
Monday,
2:
Tuesday,
3:
Wednesday,
4:
Thursday,
5:
Friday,
6:
Saturday
\r\n
Default
is
Sunday."
week_start_day_offset is the week start day offset from Sunday.
0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday
Default is Sunday.
disallowChangeUsername
:
disallowChangeUsername
:
type
:
boolean
type
:
boolean
description
:
disallow_change_username disallows changing username.
description
:
disallow_change_username disallows changing username.
...
@@ -2108,9 +2008,7 @@ definitions:
...
@@ -2108,9 +2008,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
name
is
the
name
of
the
setting.
\r\n
Format:
settings/{setting}"
name is the name of the setting.
Format: settings/{setting}
generalSetting
:
generalSetting
:
$ref
:
'
#/definitions/apiv1WorkspaceGeneralSetting'
$ref
:
'
#/definitions/apiv1WorkspaceGeneralSetting'
storageSetting
:
storageSetting
:
...
@@ -2125,9 +2023,7 @@ definitions:
...
@@ -2125,9 +2023,7 @@ definitions:
description
:
storage_type is the storage type.
description
:
storage_type is the storage type.
filepathTemplate
:
filepathTemplate
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
template
of
file
path.
\r\n
e.g.
assets/{timestamp}_{filename}"
The template of file path.
e.g. assets/{timestamp}_{filename}
uploadSizeLimitMb
:
uploadSizeLimitMb
:
type
:
string
type
:
string
format
:
int64
format
:
int64
...
@@ -2286,9 +2182,7 @@ definitions:
...
@@ -2286,9 +2182,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
activity.
\r\n
Format:
activities/{id}"
The name of the activity.
Format: activities/{id}
creatorId
:
creatorId
:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
...
@@ -2419,9 +2313,7 @@ definitions:
...
@@ -2419,9 +2313,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
inbox.
\r\n
Format:
inboxes/{id}"
The name of the inbox.
Format: inboxes/{id}
sender
:
sender
:
type
:
string
type
:
string
title
:
'
Format:
users/{id}'
title
:
'
Format:
users/{id}'
...
@@ -2541,10 +2433,7 @@ definitions:
...
@@ -2541,10 +2433,7 @@ definitions:
additionalProperties
:
additionalProperties
:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
description
:
|-
description
:
"
tag_amounts
is
the
amount
of
tags.
\r\n
key
is
the
tag
name.
e.g.
\"
tag1
\"
.
\r\n
value
is
the
amount
of
the
tag."
tag_amounts is the amount of tags.
key is the tag name. e.g. "tag1".
value is the amount of the tag.
v1ListMemosResponse
:
v1ListMemosResponse
:
type
:
object
type
:
object
properties
:
properties
:
...
@@ -2555,9 +2444,7 @@ definitions:
...
@@ -2555,9 +2444,7 @@ definitions:
$ref
:
'
#/definitions/v1Memo'
$ref
:
'
#/definitions/v1Memo'
nextPageToken
:
nextPageToken
:
type
:
string
type
:
string
description
:
|-
description
:
"
A
token,
which
can
be
sent
as
`page_token`
to
retrieve
the
next
page.
\r\n
If
this
field
is
omitted,
there
are
no
subsequent
pages."
A token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no subsequent pages.
v1ListResourcesResponse
:
v1ListResourcesResponse
:
type
:
object
type
:
object
properties
:
properties
:
...
@@ -2605,10 +2492,7 @@ definitions:
...
@@ -2605,10 +2492,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
description
:
|-
description
:
"
The
name
of
the
memo.
\r\n
Format:
memos/{id}
\r\n
id
is
the
system
generated
id."
The name of the memo.
Format: memos/{id}
id is the system generated id.
uid
:
uid
:
type
:
string
type
:
string
description
:
The user defined id of the memo.
description
:
The user defined id of the memo.
...
@@ -2616,9 +2500,7 @@ definitions:
...
@@ -2616,9 +2500,7 @@ definitions:
$ref
:
'
#/definitions/v1RowStatus'
$ref
:
'
#/definitions/v1RowStatus'
creator
:
creator
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
creator.
\r\n
Format:
users/{id}"
The name of the creator.
Format: users/{id}
createTime
:
createTime
:
type
:
string
type
:
string
format
:
date-time
format
:
date-time
...
@@ -2671,9 +2553,7 @@ definitions:
...
@@ -2671,9 +2553,7 @@ definitions:
readOnly
:
true
readOnly
:
true
parent
:
parent
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
parent
memo.
\r\n
Format:
memos/{id}"
The name of the parent memo.
Format: memos/{id}
readOnly
:
true
readOnly
:
true
snippet
:
snippet
:
type
:
string
type
:
string
...
@@ -2698,9 +2578,7 @@ definitions:
...
@@ -2698,9 +2578,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
memo
property.
\r\n
Format:
memos/{id}/properties/{property_id}"
The name of the memo property.
Format: memos/{id}/properties/{property_id}
property
:
property
:
$ref
:
'
#/definitions/v1MemoProperty'
$ref
:
'
#/definitions/v1MemoProperty'
readOnly
:
true
readOnly
:
true
...
@@ -2713,14 +2591,10 @@ definitions:
...
@@ -2713,14 +2591,10 @@ definitions:
properties
:
properties
:
memo
:
memo
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
memo.
\r\n
Format:
\"
memos/{uid}
\"
"
The name of memo.
Format: "memos/{uid}"
relatedMemo
:
relatedMemo
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
related
memo.
\r\n
Format:
\"
memos/{uid}
\"
"
The name of related memo.
Format: "memos/{uid}"
type
:
type
:
$ref
:
'
#/definitions/v1MemoRelationType'
$ref
:
'
#/definitions/v1MemoRelationType'
v1MemoRelationType
:
v1MemoRelationType
:
...
@@ -2872,9 +2746,7 @@ definitions:
...
@@ -2872,9 +2746,7 @@ definitions:
format
:
int32
format
:
int32
creator
:
creator
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
creator.
\r\n
Format:
users/{id}"
The name of the creator.
Format: users/{id}
contentId
:
contentId
:
type
:
string
type
:
string
reactionType
:
reactionType
:
...
@@ -2908,10 +2780,7 @@ definitions:
...
@@ -2908,10 +2780,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
description
:
|-
description
:
"
The
name
of
the
resource.
\r\n
Format:
resources/{id}
\r\n
id
is
the
system
generated
unique
identifier."
The name of the resource.
Format: resources/{id}
id is the system generated unique identifier.
uid
:
uid
:
type
:
string
type
:
string
description
:
The user defined id of the resource.
description
:
The user defined id of the resource.
...
@@ -2933,9 +2802,7 @@ definitions:
...
@@ -2933,9 +2802,7 @@ definitions:
format
:
int64
format
:
int64
memo
:
memo
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
related
memo.
\r\n
Format:
memos/{id}"
The related memo.
Format: memos/{id}
v1RestoreMarkdownNodesRequest
:
v1RestoreMarkdownNodesRequest
:
type
:
object
type
:
object
properties
:
properties
:
...
@@ -3057,9 +2924,7 @@ definitions:
...
@@ -3057,9 +2924,7 @@ definitions:
properties
:
properties
:
name
:
name
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
the
user.
\r\n
Format:
users/{id}"
The name of the user.
Format: users/{id}
id
:
id
:
type
:
integer
type
:
integer
format
:
int32
format
:
int32
...
@@ -3133,9 +2998,7 @@ definitions:
...
@@ -3133,9 +2998,7 @@ definitions:
properties
:
properties
:
owner
:
owner
:
type
:
string
type
:
string
title
:
|-
title
:
"
The
name
of
instance
owner.
\r\n
Format:
\"
users/{id}
\"
"
The name of instance owner.
Format: "users/{id}"
version
:
version
:
type
:
string
type
:
string
title
:
version is the current version of instance
title
:
version is the current version of instance
...
...
proto/gen/store/workspace_setting.pb.go
View file @
1da07529
...
@@ -256,7 +256,10 @@ type WorkspaceBasicSetting struct {
...
@@ -256,7 +256,10 @@ type WorkspaceBasicSetting struct {
sizeCache
protoimpl
.
SizeCache
sizeCache
protoimpl
.
SizeCache
unknownFields
protoimpl
.
UnknownFields
unknownFields
protoimpl
.
UnknownFields
// The secret key for workspace. Mainly used for session management.
SecretKey
string
`protobuf:"bytes,1,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
SecretKey
string
`protobuf:"bytes,1,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
// The current schema version of database.
SchemaVersion
string
`protobuf:"bytes,2,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
}
}
func
(
x
*
WorkspaceBasicSetting
)
Reset
()
{
func
(
x
*
WorkspaceBasicSetting
)
Reset
()
{
...
@@ -298,6 +301,13 @@ func (x *WorkspaceBasicSetting) GetSecretKey() string {
...
@@ -298,6 +301,13 @@ func (x *WorkspaceBasicSetting) GetSecretKey() string {
return
""
return
""
}
}
func
(
x
*
WorkspaceBasicSetting
)
GetSchemaVersion
()
string
{
if
x
!=
nil
{
return
x
.
SchemaVersion
}
return
""
}
type
WorkspaceGeneralSetting
struct
{
type
WorkspaceGeneralSetting
struct
{
state
protoimpl
.
MessageState
state
protoimpl
.
MessageState
sizeCache
protoimpl
.
SizeCache
sizeCache
protoimpl
.
SizeCache
...
@@ -779,126 +789,128 @@ var file_store_workspace_setting_proto_rawDesc = []byte{
...
@@ -779,126 +789,128 @@ var file_store_workspace_setting_proto_rawDesc = []byte{
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x52
,
0x65
,
0x6c
,
0x61
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x52
,
0x65
,
0x6c
,
0x61
,
0x74
,
0x65
,
0x64
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x48
,
0x00
,
0x52
,
0x12
,
0x6d
,
0x65
,
0x74
,
0x65
,
0x64
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x48
,
0x00
,
0x52
,
0x12
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x52
,
0x65
,
0x6c
,
0x61
,
0x74
,
0x65
,
0x64
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x6d
,
0x6f
,
0x52
,
0x65
,
0x6c
,
0x61
,
0x74
,
0x65
,
0x64
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x42
,
0x07
,
0x0a
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x22
,
0x
36
,
0x0a
,
0x15
,
0x57
,
0x6f
,
0x72
,
0x42
,
0x07
,
0x0a
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x22
,
0x
5d
,
0x0a
,
0x15
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x42
,
0x61
,
0x73
,
0x69
,
0x63
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x42
,
0x61
,
0x73
,
0x69
,
0x63
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x12
,
0x1d
,
0x0a
,
0x0a
,
0x73
,
0x65
,
0x63
,
0x72
,
0x65
,
0x74
,
0x5f
,
0x6b
,
0x65
,
0x79
,
0x6e
,
0x67
,
0x12
,
0x1d
,
0x0a
,
0x0a
,
0x73
,
0x65
,
0x63
,
0x72
,
0x65
,
0x74
,
0x5f
,
0x6b
,
0x65
,
0x79
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x09
,
0x73
,
0x65
,
0x63
,
0x72
,
0x65
,
0x74
,
0x4b
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x09
,
0x73
,
0x65
,
0x63
,
0x72
,
0x65
,
0x74
,
0x4b
,
0x65
,
0x79
,
0x22
,
0xd8
,
0x03
,
0x0a
,
0x17
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x47
,
0x79
,
0x12
,
0x25
,
0x0a
,
0x0e
,
0x73
,
0x63
,
0x68
,
0x65
,
0x6d
,
0x61
,
0x5f
,
0x76
,
0x65
,
0x72
,
0x73
,
0x65
,
0x6e
,
0x65
,
0x72
,
0x61
,
0x6c
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x12
,
0x3c
,
0x0a
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0d
,
0x73
,
0x63
,
0x68
,
0x65
,
0x6d
,
0x1a
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x5f
,
0x75
,
0x73
,
0x65
,
0x72
,
0x5f
,
0x72
,
0x61
,
0x56
,
0x65
,
0x72
,
0x73
,
0x69
,
0x6f
,
0x6e
,
0x22
,
0xd8
,
0x03
,
0x0a
,
0x17
,
0x57
,
0x6f
,
0x72
,
0x65
,
0x67
,
0x69
,
0x73
,
0x74
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x47
,
0x65
,
0x6e
,
0x65
,
0x72
,
0x61
,
0x6c
,
0x53
,
0x65
,
0x74
,
0x08
,
0x52
,
0x18
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x55
,
0x73
,
0x65
,
0x72
,
0x52
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x12
,
0x3c
,
0x0a
,
0x1a
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x65
,
0x67
,
0x69
,
0x73
,
0x74
,
0x72
,
0x61
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x34
,
0x0a
,
0x16
,
0x64
,
0x5f
,
0x75
,
0x73
,
0x65
,
0x72
,
0x5f
,
0x72
,
0x65
,
0x67
,
0x69
,
0x73
,
0x74
,
0x72
,
0x61
,
0x74
,
0x69
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x5f
,
0x70
,
0x61
,
0x73
,
0x73
,
0x77
,
0x6f
,
0x72
,
0x64
,
0x6f
,
0x6e
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x18
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x5f
,
0x61
,
0x75
,
0x74
,
0x68
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x14
,
0x64
,
0x69
,
0x73
,
0x6f
,
0x77
,
0x55
,
0x73
,
0x65
,
0x72
,
0x52
,
0x65
,
0x67
,
0x69
,
0x73
,
0x74
,
0x72
,
0x61
,
0x74
,
0x69
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x50
,
0x61
,
0x73
,
0x73
,
0x77
,
0x6f
,
0x72
,
0x64
,
0x41
,
0x75
,
0x74
,
0x6f
,
0x6e
,
0x12
,
0x34
,
0x0a
,
0x16
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x5f
,
0x70
,
0x68
,
0x12
,
0x2b
,
0x0a
,
0x11
,
0x61
,
0x64
,
0x64
,
0x69
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x61
,
0x6c
,
0x5f
,
0x61
,
0x73
,
0x73
,
0x77
,
0x6f
,
0x72
,
0x64
,
0x5f
,
0x61
,
0x75
,
0x74
,
0x68
,
0x18
,
0x02
,
0x20
,
0x01
,
0x73
,
0x63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x10
,
0x61
,
0x64
,
0x28
,
0x08
,
0x52
,
0x14
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x50
,
0x61
,
0x73
,
0x73
,
0x64
,
0x69
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x61
,
0x6c
,
0x53
,
0x63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x12
,
0x29
,
0x77
,
0x6f
,
0x72
,
0x64
,
0x41
,
0x75
,
0x74
,
0x68
,
0x12
,
0x2b
,
0x0a
,
0x11
,
0x61
,
0x64
,
0x64
,
0x69
,
0x0a
,
0x10
,
0x61
,
0x64
,
0x64
,
0x69
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x61
,
0x6c
,
0x5f
,
0x73
,
0x74
,
0x79
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x61
,
0x6c
,
0x5f
,
0x73
,
0x63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x18
,
0x03
,
0x20
,
0x6c
,
0x65
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0f
,
0x61
,
0x64
,
0x64
,
0x69
,
0x74
,
0x69
,
0x01
,
0x28
,
0x09
,
0x52
,
0x10
,
0x61
,
0x64
,
0x64
,
0x69
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x61
,
0x6c
,
0x53
,
0x6f
,
0x6e
,
0x61
,
0x6c
,
0x53
,
0x74
,
0x79
,
0x6c
,
0x65
,
0x12
,
0x4a
,
0x0a
,
0x0e
,
0x63
,
0x75
,
0x73
,
0x63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x12
,
0x29
,
0x0a
,
0x10
,
0x61
,
0x64
,
0x64
,
0x69
,
0x74
,
0x69
,
0x6f
,
0x74
,
0x6f
,
0x6d
,
0x5f
,
0x70
,
0x72
,
0x6f
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x6e
,
0x61
,
0x6c
,
0x5f
,
0x73
,
0x74
,
0x79
,
0x6c
,
0x65
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x32
,
0x23
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x2e
,
0x0f
,
0x61
,
0x64
,
0x64
,
0x69
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x61
,
0x6c
,
0x53
,
0x74
,
0x79
,
0x6c
,
0x65
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x43
,
0x75
,
0x73
,
0x74
,
0x6f
,
0x6d
,
0x50
,
0x12
,
0x4a
,
0x0a
,
0x0e
,
0x63
,
0x75
,
0x73
,
0x74
,
0x6f
,
0x6d
,
0x5f
,
0x70
,
0x72
,
0x6f
,
0x66
,
0x69
,
0x72
,
0x6f
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x52
,
0x0d
,
0x63
,
0x75
,
0x73
,
0x74
,
0x6f
,
0x6d
,
0x50
,
0x72
,
0x6c
,
0x65
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x23
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x6f
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x12
,
0x31
,
0x0a
,
0x15
,
0x77
,
0x65
,
0x65
,
0x6b
,
0x5f
,
0x73
,
0x74
,
0x2e
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x2e
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x61
,
0x72
,
0x74
,
0x5f
,
0x64
,
0x61
,
0x79
,
0x5f
,
0x6f
,
0x66
,
0x66
,
0x73
,
0x65
,
0x74
,
0x18
,
0x06
,
0x43
,
0x75
,
0x73
,
0x74
,
0x6f
,
0x6d
,
0x50
,
0x72
,
0x6f
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x52
,
0x0d
,
0x63
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x12
,
0x77
,
0x65
,
0x65
,
0x6b
,
0x53
,
0x74
,
0x61
,
0x72
,
0x74
,
0x44
,
0x75
,
0x73
,
0x74
,
0x6f
,
0x6d
,
0x50
,
0x72
,
0x6f
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x12
,
0x31
,
0x0a
,
0x15
,
0x61
,
0x79
,
0x4f
,
0x66
,
0x66
,
0x73
,
0x65
,
0x74
,
0x12
,
0x38
,
0x0a
,
0x18
,
0x64
,
0x69
,
0x73
,
0x61
,
0x77
,
0x65
,
0x65
,
0x6b
,
0x5f
,
0x73
,
0x74
,
0x61
,
0x72
,
0x74
,
0x5f
,
0x64
,
0x61
,
0x79
,
0x5f
,
0x6f
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x5f
,
0x63
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x5f
,
0x75
,
0x73
,
0x65
,
0x72
,
0x66
,
0x66
,
0x73
,
0x65
,
0x74
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x12
,
0x77
,
0x65
,
0x65
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x07
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x16
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6b
,
0x53
,
0x74
,
0x61
,
0x72
,
0x74
,
0x44
,
0x61
,
0x79
,
0x4f
,
0x66
,
0x66
,
0x73
,
0x65
,
0x74
,
0x12
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x55
,
0x73
,
0x65
,
0x72
,
0x6e
,
0x61
,
0x38
,
0x0a
,
0x18
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x5f
,
0x63
,
0x68
,
0x61
,
0x6e
,
0x6d
,
0x65
,
0x12
,
0x38
,
0x0a
,
0x18
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x5f
,
0x63
,
0x67
,
0x65
,
0x5f
,
0x75
,
0x73
,
0x65
,
0x72
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x07
,
0x20
,
0x01
,
0x28
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x5f
,
0x6e
,
0x69
,
0x63
,
0x6b
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x08
,
0x08
,
0x52
,
0x16
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x16
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x43
,
0x68
,
0x65
,
0x55
,
0x73
,
0x65
,
0x72
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x12
,
0x38
,
0x0a
,
0x18
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x4e
,
0x69
,
0x63
,
0x6b
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x22
,
0xa3
,
0x01
,
0x0a
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x5f
,
0x63
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x5f
,
0x6e
,
0x69
,
0x63
,
0x16
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x43
,
0x75
,
0x73
,
0x74
,
0x6f
,
0x6d
,
0x6b
,
0x6e
,
0x61
,
0x6d
,
0x65
,
0x18
,
0x08
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x16
,
0x64
,
0x69
,
0x73
,
0x50
,
0x72
,
0x6f
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x74
,
0x69
,
0x74
,
0x6c
,
0x65
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x43
,
0x68
,
0x61
,
0x6e
,
0x67
,
0x65
,
0x4e
,
0x69
,
0x63
,
0x6b
,
0x6e
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x74
,
0x69
,
0x74
,
0x6c
,
0x65
,
0x12
,
0x20
,
0x0a
,
0x61
,
0x6d
,
0x65
,
0x22
,
0xa3
,
0x01
,
0x0a
,
0x16
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x0b
,
0x64
,
0x65
,
0x73
,
0x63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x65
,
0x43
,
0x75
,
0x73
,
0x74
,
0x6f
,
0x6d
,
0x50
,
0x72
,
0x6f
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x12
,
0x14
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x64
,
0x65
,
0x73
,
0x63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x0a
,
0x05
,
0x74
,
0x69
,
0x74
,
0x6c
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x74
,
0x19
,
0x0a
,
0x08
,
0x6c
,
0x6f
,
0x67
,
0x6f
,
0x5f
,
0x75
,
0x72
,
0x6c
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x69
,
0x74
,
0x6c
,
0x65
,
0x12
,
0x20
,
0x0a
,
0x0b
,
0x64
,
0x65
,
0x73
,
0x63
,
0x72
,
0x69
,
0x70
,
0x74
,
0x09
,
0x52
,
0x07
,
0x6c
,
0x6f
,
0x67
,
0x6f
,
0x55
,
0x72
,
0x6c
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x6c
,
0x6f
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x64
,
0x65
,
0x73
,
0x63
,
0x72
,
0x63
,
0x61
,
0x6c
,
0x65
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x6c
,
0x6f
,
0x63
,
0x61
,
0x69
,
0x70
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x19
,
0x0a
,
0x08
,
0x6c
,
0x6f
,
0x67
,
0x6f
,
0x5f
,
0x75
,
0x6c
,
0x65
,
0x12
,
0x1e
,
0x0a
,
0x0a
,
0x61
,
0x70
,
0x70
,
0x65
,
0x61
,
0x72
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x72
,
0x6c
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x07
,
0x6c
,
0x6f
,
0x67
,
0x6f
,
0x55
,
0x72
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0a
,
0x61
,
0x70
,
0x70
,
0x65
,
0x61
,
0x72
,
0x61
,
0x6e
,
0x6c
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x6c
,
0x6f
,
0x63
,
0x61
,
0x6c
,
0x65
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x63
,
0x65
,
0x22
,
0xd5
,
0x02
,
0x0a
,
0x17
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x09
,
0x52
,
0x06
,
0x6c
,
0x6f
,
0x63
,
0x61
,
0x6c
,
0x65
,
0x12
,
0x1e
,
0x0a
,
0x0a
,
0x61
,
0x70
,
0x70
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x12
,
0x53
,
0x65
,
0x61
,
0x72
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0a
,
0x61
,
0x0a
,
0x0c
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x5f
,
0x74
,
0x79
,
0x70
,
0x65
,
0x18
,
0x01
,
0x70
,
0x70
,
0x65
,
0x61
,
0x72
,
0x61
,
0x6e
,
0x63
,
0x65
,
0x22
,
0xd5
,
0x02
,
0x0a
,
0x17
,
0x57
,
0x6f
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x30
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x53
,
0x65
,
0x72
,
0x65
,
0x2e
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x12
,
0x53
,
0x0a
,
0x0c
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x61
,
0x67
,
0x65
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x2e
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x5f
,
0x74
,
0x79
,
0x70
,
0x65
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0e
,
0x32
,
0x30
,
0x2e
,
0x6d
,
0x65
,
0x67
,
0x65
,
0x54
,
0x79
,
0x70
,
0x65
,
0x52
,
0x0b
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x54
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x2e
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x79
,
0x70
,
0x65
,
0x12
,
0x2b
,
0x0a
,
0x11
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x70
,
0x61
,
0x74
,
0x68
,
0x5f
,
0x61
,
0x63
,
0x65
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x74
,
0x65
,
0x6d
,
0x70
,
0x6c
,
0x61
,
0x74
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x10
,
0x67
,
0x2e
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x54
,
0x79
,
0x70
,
0x65
,
0x52
,
0x0b
,
0x73
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x70
,
0x61
,
0x74
,
0x68
,
0x54
,
0x65
,
0x6d
,
0x70
,
0x6c
,
0x61
,
0x74
,
0x65
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x54
,
0x79
,
0x70
,
0x65
,
0x12
,
0x2b
,
0x0a
,
0x11
,
0x66
,
0x69
,
0x12
,
0x2f
,
0x0a
,
0x14
,
0x75
,
0x70
,
0x6c
,
0x6f
,
0x61
,
0x64
,
0x5f
,
0x73
,
0x69
,
0x7a
,
0x65
,
0x5f
,
0x6c
,
0x65
,
0x70
,
0x61
,
0x74
,
0x68
,
0x5f
,
0x74
,
0x65
,
0x6d
,
0x70
,
0x6c
,
0x61
,
0x74
,
0x65
,
0x18
,
0x6c
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x5f
,
0x6d
,
0x62
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x11
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x10
,
0x66
,
0x69
,
0x6c
,
0x65
,
0x70
,
0x61
,
0x74
,
0x68
,
0x54
,
0x75
,
0x70
,
0x6c
,
0x6f
,
0x61
,
0x64
,
0x53
,
0x69
,
0x7a
,
0x65
,
0x4c
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x4d
,
0x65
,
0x6d
,
0x70
,
0x6c
,
0x61
,
0x74
,
0x65
,
0x12
,
0x2f
,
0x0a
,
0x14
,
0x75
,
0x70
,
0x6c
,
0x6f
,
0x61
,
0x62
,
0x12
,
0x39
,
0x0a
,
0x09
,
0x73
,
0x33
,
0x5f
,
0x63
,
0x6f
,
0x6e
,
0x66
,
0x69
,
0x67
,
0x18
,
0x04
,
0x64
,
0x5f
,
0x73
,
0x69
,
0x7a
,
0x65
,
0x5f
,
0x6c
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x5f
,
0x6d
,
0x62
,
0x18
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1c
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x73
,
0x74
,
0x6f
,
0x03
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x11
,
0x75
,
0x70
,
0x6c
,
0x6f
,
0x61
,
0x64
,
0x53
,
0x69
,
0x7a
,
0x72
,
0x65
,
0x2e
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x53
,
0x33
,
0x43
,
0x6f
,
0x6e
,
0x66
,
0x65
,
0x4c
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x4d
,
0x62
,
0x12
,
0x39
,
0x0a
,
0x09
,
0x73
,
0x33
,
0x5f
,
0x63
,
0x69
,
0x67
,
0x52
,
0x08
,
0x73
,
0x33
,
0x43
,
0x6f
,
0x6e
,
0x66
,
0x69
,
0x67
,
0x22
,
0x4c
,
0x0a
,
0x0b
,
0x6f
,
0x6e
,
0x66
,
0x69
,
0x67
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1c
,
0x2e
,
0x6d
,
0x65
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x54
,
0x79
,
0x70
,
0x65
,
0x12
,
0x1c
,
0x0a
,
0x18
,
0x53
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x2e
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x54
,
0x4f
,
0x52
,
0x41
,
0x47
,
0x45
,
0x5f
,
0x54
,
0x59
,
0x50
,
0x45
,
0x5f
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x65
,
0x53
,
0x33
,
0x43
,
0x6f
,
0x6e
,
0x66
,
0x69
,
0x67
,
0x52
,
0x08
,
0x73
,
0x33
,
0x43
,
0x6f
,
0x6e
,
0x45
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x44
,
0x10
,
0x00
,
0x12
,
0x0c
,
0x0a
,
0x08
,
0x44
,
0x41
,
0x54
,
0x66
,
0x69
,
0x67
,
0x22
,
0x4c
,
0x0a
,
0x0b
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x54
,
0x79
,
0x41
,
0x42
,
0x41
,
0x53
,
0x45
,
0x10
,
0x01
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x4c
,
0x4f
,
0x43
,
0x41
,
0x4c
,
0x70
,
0x65
,
0x12
,
0x1c
,
0x0a
,
0x18
,
0x53
,
0x54
,
0x4f
,
0x52
,
0x41
,
0x47
,
0x45
,
0x5f
,
0x54
,
0x59
,
0x10
,
0x02
,
0x12
,
0x06
,
0x0a
,
0x02
,
0x53
,
0x33
,
0x10
,
0x03
,
0x22
,
0xad
,
0x01
,
0x0a
,
0x0f
,
0x53
,
0x50
,
0x45
,
0x5f
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x45
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x44
,
0x10
,
0x00
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x53
,
0x33
,
0x43
,
0x6f
,
0x6e
,
0x66
,
0x69
,
0x67
,
0x12
,
0x22
,
0x12
,
0x0c
,
0x0a
,
0x08
,
0x44
,
0x41
,
0x54
,
0x41
,
0x42
,
0x41
,
0x53
,
0x45
,
0x10
,
0x01
,
0x12
,
0x09
,
0x0a
,
0x0d
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x5f
,
0x6b
,
0x65
,
0x79
,
0x5f
,
0x69
,
0x64
,
0x18
,
0x0a
,
0x05
,
0x4c
,
0x4f
,
0x43
,
0x41
,
0x4c
,
0x10
,
0x02
,
0x12
,
0x06
,
0x0a
,
0x02
,
0x53
,
0x33
,
0x10
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x4b
,
0x65
,
0x79
,
0x03
,
0x22
,
0xad
,
0x01
,
0x0a
,
0x0f
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x61
,
0x67
,
0x65
,
0x53
,
0x33
,
0x43
,
0x49
,
0x64
,
0x12
,
0x2a
,
0x0a
,
0x11
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x5f
,
0x6b
,
0x65
,
0x79
,
0x6f
,
0x6e
,
0x66
,
0x69
,
0x67
,
0x12
,
0x22
,
0x0a
,
0x0d
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x5f
,
0x5f
,
0x73
,
0x65
,
0x63
,
0x72
,
0x65
,
0x74
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0f
,
0x61
,
0x6b
,
0x65
,
0x79
,
0x5f
,
0x69
,
0x64
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0b
,
0x61
,
0x63
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x4b
,
0x65
,
0x79
,
0x53
,
0x65
,
0x63
,
0x72
,
0x65
,
0x74
,
0x12
,
0x1a
,
0x63
,
0x65
,
0x73
,
0x73
,
0x4b
,
0x65
,
0x79
,
0x49
,
0x64
,
0x12
,
0x2a
,
0x0a
,
0x11
,
0x61
,
0x63
,
0x63
,
0x0a
,
0x08
,
0x65
,
0x6e
,
0x64
,
0x70
,
0x6f
,
0x69
,
0x6e
,
0x74
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x65
,
0x73
,
0x73
,
0x5f
,
0x6b
,
0x65
,
0x79
,
0x5f
,
0x73
,
0x65
,
0x63
,
0x72
,
0x65
,
0x74
,
0x18
,
0x02
,
0x52
,
0x08
,
0x65
,
0x6e
,
0x64
,
0x70
,
0x6f
,
0x69
,
0x6e
,
0x74
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x72
,
0x65
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x0f
,
0x61
,
0x63
,
0x63
,
0x65
,
0x73
,
0x73
,
0x4b
,
0x65
,
0x79
,
0x53
,
0x67
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x72
,
0x65
,
0x67
,
0x69
,
0x65
,
0x63
,
0x72
,
0x65
,
0x74
,
0x12
,
0x1a
,
0x0a
,
0x08
,
0x65
,
0x6e
,
0x64
,
0x70
,
0x6f
,
0x69
,
0x6e
,
0x6f
,
0x6e
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x62
,
0x75
,
0x63
,
0x6b
,
0x65
,
0x74
,
0x18
,
0x05
,
0x20
,
0x01
,
0x74
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x08
,
0x65
,
0x6e
,
0x64
,
0x70
,
0x6f
,
0x69
,
0x6e
,
0x28
,
0x09
,
0x52
,
0x06
,
0x62
,
0x75
,
0x63
,
0x6b
,
0x65
,
0x74
,
0x22
,
0x86
,
0x03
,
0x0a
,
0x1b
,
0x57
,
0x74
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x72
,
0x65
,
0x67
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x52
,
0x65
,
0x6c
,
0x61
,
0x09
,
0x52
,
0x06
,
0x72
,
0x65
,
0x67
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x62
,
0x75
,
0x63
,
0x74
,
0x65
,
0x64
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x12
,
0x3c
,
0x0a
,
0x1a
,
0x64
,
0x69
,
0x6b
,
0x65
,
0x74
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x62
,
0x75
,
0x63
,
0x6b
,
0x65
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x5f
,
0x70
,
0x75
,
0x62
,
0x6c
,
0x69
,
0x63
,
0x5f
,
0x76
,
0x69
,
0x74
,
0x22
,
0x86
,
0x03
,
0x0a
,
0x1b
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x4d
,
0x73
,
0x69
,
0x62
,
0x69
,
0x6c
,
0x69
,
0x74
,
0x79
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x18
,
0x65
,
0x6d
,
0x6f
,
0x52
,
0x65
,
0x6c
,
0x61
,
0x74
,
0x65
,
0x64
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x50
,
0x75
,
0x62
,
0x6c
,
0x69
,
0x63
,
0x56
,
0x69
,
0x67
,
0x12
,
0x3c
,
0x0a
,
0x1a
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x5f
,
0x70
,
0x75
,
0x73
,
0x69
,
0x62
,
0x69
,
0x6c
,
0x69
,
0x74
,
0x79
,
0x12
,
0x37
,
0x0a
,
0x18
,
0x64
,
0x69
,
0x73
,
0x70
,
0x62
,
0x6c
,
0x69
,
0x63
,
0x5f
,
0x76
,
0x69
,
0x73
,
0x69
,
0x62
,
0x69
,
0x6c
,
0x69
,
0x74
,
0x79
,
0x18
,
0x6c
,
0x61
,
0x79
,
0x5f
,
0x77
,
0x69
,
0x74
,
0x68
,
0x5f
,
0x75
,
0x70
,
0x64
,
0x61
,
0x74
,
0x65
,
0x5f
,
0x01
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x18
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x50
,
0x74
,
0x69
,
0x6d
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x15
,
0x64
,
0x69
,
0x73
,
0x70
,
0x75
,
0x62
,
0x6c
,
0x69
,
0x63
,
0x56
,
0x69
,
0x73
,
0x69
,
0x62
,
0x69
,
0x6c
,
0x69
,
0x74
,
0x79
,
0x12
,
0x6c
,
0x61
,
0x79
,
0x57
,
0x69
,
0x74
,
0x68
,
0x55
,
0x70
,
0x64
,
0x61
,
0x74
,
0x65
,
0x54
,
0x69
,
0x6d
,
0x37
,
0x0a
,
0x18
,
0x64
,
0x69
,
0x73
,
0x70
,
0x6c
,
0x61
,
0x79
,
0x5f
,
0x77
,
0x69
,
0x74
,
0x68
,
0x5f
,
0x65
,
0x12
,
0x30
,
0x0a
,
0x14
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x5f
,
0x6c
,
0x65
,
0x6e
,
0x75
,
0x70
,
0x64
,
0x61
,
0x74
,
0x65
,
0x5f
,
0x74
,
0x69
,
0x6d
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x67
,
0x74
,
0x68
,
0x5f
,
0x6c
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x08
,
0x52
,
0x15
,
0x64
,
0x69
,
0x73
,
0x70
,
0x6c
,
0x61
,
0x79
,
0x57
,
0x69
,
0x74
,
0x68
,
0x55
,
0x70
,
0x12
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x4c
,
0x65
,
0x6e
,
0x67
,
0x74
,
0x68
,
0x4c
,
0x69
,
0x64
,
0x61
,
0x74
,
0x65
,
0x54
,
0x69
,
0x6d
,
0x65
,
0x12
,
0x30
,
0x0a
,
0x14
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x6d
,
0x69
,
0x74
,
0x12
,
0x2e
,
0x0a
,
0x13
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x61
,
0x75
,
0x65
,
0x6e
,
0x74
,
0x5f
,
0x6c
,
0x65
,
0x6e
,
0x67
,
0x74
,
0x68
,
0x5f
,
0x6c
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x74
,
0x6f
,
0x5f
,
0x63
,
0x6f
,
0x6d
,
0x70
,
0x61
,
0x63
,
0x74
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x08
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x12
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x4c
,
0x52
,
0x11
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x41
,
0x75
,
0x74
,
0x6f
,
0x43
,
0x6f
,
0x6d
,
0x70
,
0x65
,
0x6e
,
0x67
,
0x74
,
0x68
,
0x4c
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x12
,
0x2e
,
0x0a
,
0x13
,
0x65
,
0x6e
,
0x61
,
0x63
,
0x74
,
0x12
,
0x37
,
0x0a
,
0x18
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x64
,
0x6f
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x61
,
0x75
,
0x74
,
0x6f
,
0x5f
,
0x63
,
0x6f
,
0x6d
,
0x70
,
0x61
,
0x63
,
0x75
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x63
,
0x6c
,
0x69
,
0x63
,
0x6b
,
0x5f
,
0x65
,
0x64
,
0x69
,
0x74
,
0x18
,
0x74
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x11
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x41
,
0x05
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x15
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x44
,
0x6f
,
0x75
,
0x75
,
0x74
,
0x6f
,
0x43
,
0x6f
,
0x6d
,
0x70
,
0x61
,
0x63
,
0x74
,
0x12
,
0x37
,
0x0a
,
0x18
,
0x65
,
0x6e
,
0x62
,
0x6c
,
0x65
,
0x43
,
0x6c
,
0x69
,
0x63
,
0x6b
,
0x45
,
0x64
,
0x69
,
0x74
,
0x12
,
0x2e
,
0x0a
,
0x13
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x64
,
0x6f
,
0x75
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x63
,
0x6c
,
0x69
,
0x63
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x6c
,
0x69
,
0x6e
,
0x6b
,
0x5f
,
0x70
,
0x72
,
0x65
,
0x76
,
0x6b
,
0x5f
,
0x65
,
0x64
,
0x69
,
0x74
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x15
,
0x65
,
0x6e
,
0x69
,
0x65
,
0x77
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x11
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x44
,
0x6f
,
0x75
,
0x62
,
0x6c
,
0x65
,
0x43
,
0x6c
,
0x69
,
0x63
,
0x6b
,
0x45
,
0x65
,
0x4c
,
0x69
,
0x6e
,
0x6b
,
0x50
,
0x72
,
0x65
,
0x76
,
0x69
,
0x65
,
0x77
,
0x12
,
0x25
,
0x0a
,
0x0e
,
0x64
,
0x69
,
0x74
,
0x12
,
0x2e
,
0x0a
,
0x13
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x6c
,
0x69
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x63
,
0x6f
,
0x6d
,
0x6d
,
0x65
,
0x6e
,
0x74
,
0x18
,
0x07
,
0x6e
,
0x6b
,
0x5f
,
0x70
,
0x72
,
0x65
,
0x76
,
0x69
,
0x65
,
0x77
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x08
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x0d
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x43
,
0x6f
,
0x6d
,
0x6d
,
0x52
,
0x11
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x4c
,
0x69
,
0x6e
,
0x6b
,
0x50
,
0x72
,
0x65
,
0x76
,
0x65
,
0x6e
,
0x74
,
0x2a
,
0x73
,
0x0a
,
0x13
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x69
,
0x65
,
0x77
,
0x12
,
0x25
,
0x0a
,
0x0e
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x63
,
0x6f
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x4b
,
0x65
,
0x79
,
0x12
,
0x25
,
0x0a
,
0x21
,
0x57
,
0x4f
,
0x6d
,
0x6d
,
0x65
,
0x6e
,
0x74
,
0x18
,
0x07
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x0d
,
0x65
,
0x6e
,
0x61
,
0x52
,
0x4b
,
0x53
,
0x50
,
0x41
,
0x43
,
0x45
,
0x5f
,
0x53
,
0x45
,
0x54
,
0x54
,
0x49
,
0x4e
,
0x47
,
0x5f
,
0x62
,
0x6c
,
0x65
,
0x43
,
0x6f
,
0x6d
,
0x6d
,
0x65
,
0x6e
,
0x74
,
0x2a
,
0x73
,
0x0a
,
0x13
,
0x57
,
0x6f
,
0x4b
,
0x45
,
0x59
,
0x5f
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x45
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x44
,
0x10
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x4b
,
0x65
,
0x00
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x42
,
0x41
,
0x53
,
0x49
,
0x43
,
0x10
,
0x01
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x79
,
0x12
,
0x25
,
0x0a
,
0x21
,
0x57
,
0x4f
,
0x52
,
0x4b
,
0x53
,
0x50
,
0x41
,
0x43
,
0x45
,
0x5f
,
0x53
,
0x47
,
0x45
,
0x4e
,
0x45
,
0x52
,
0x41
,
0x4c
,
0x10
,
0x02
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x53
,
0x54
,
0x4f
,
0x45
,
0x54
,
0x54
,
0x49
,
0x4e
,
0x47
,
0x5f
,
0x4b
,
0x45
,
0x59
,
0x5f
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x45
,
0x52
,
0x41
,
0x47
,
0x45
,
0x10
,
0x03
,
0x12
,
0x10
,
0x0a
,
0x0c
,
0x4d
,
0x45
,
0x4d
,
0x4f
,
0x5f
,
0x52
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x44
,
0x10
,
0x00
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x42
,
0x41
,
0x53
,
0x49
,
0x45
,
0x4c
,
0x41
,
0x54
,
0x45
,
0x44
,
0x10
,
0x04
,
0x42
,
0xa0
,
0x01
,
0x0a
,
0x0f
,
0x63
,
0x6f
,
0x6d
,
0x43
,
0x10
,
0x01
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x47
,
0x45
,
0x4e
,
0x45
,
0x52
,
0x41
,
0x4c
,
0x10
,
0x02
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x42
,
0x15
,
0x57
,
0x6f
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x53
,
0x54
,
0x4f
,
0x52
,
0x41
,
0x47
,
0x45
,
0x10
,
0x03
,
0x12
,
0x10
,
0x0a
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x50
,
0x72
,
0x0c
,
0x4d
,
0x45
,
0x4d
,
0x4f
,
0x5f
,
0x52
,
0x45
,
0x4c
,
0x41
,
0x54
,
0x45
,
0x44
,
0x10
,
0x04
,
0x42
,
0x6f
,
0x74
,
0x6f
,
0x50
,
0x01
,
0x5a
,
0x29
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0xa0
,
0x01
,
0x0a
,
0x0f
,
0x63
,
0x6f
,
0x6d
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x73
,
0x74
,
0x6d
,
0x2f
,
0x75
,
0x73
,
0x65
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2f
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x6f
,
0x72
,
0x65
,
0x42
,
0x15
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x53
,
0x65
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x67
,
0x65
,
0x6e
,
0x2f
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x50
,
0x01
,
0x5a
,
0x29
,
0x67
,
0x69
,
0xa2
,
0x02
,
0x03
,
0x4d
,
0x53
,
0x58
,
0xaa
,
0x02
,
0x0b
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x53
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x75
,
0x73
,
0x65
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x74
,
0x6f
,
0x72
,
0x65
,
0xca
,
0x02
,
0x0b
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x5c
,
0x53
,
0x74
,
0x6f
,
0x73
,
0x2f
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x67
,
0x65
,
0x72
,
0x65
,
0xe2
,
0x02
,
0x17
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x5c
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x6e
,
0x2f
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x65
,
0xa2
,
0x02
,
0x03
,
0x4d
,
0x53
,
0x58
,
0xaa
,
0x02
,
0x0b
,
0x5c
,
0x47
,
0x50
,
0x42
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x0c
,
0x4d
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0xca
,
0x02
,
0x0b
,
0x4d
,
0x65
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x3a
,
0x3a
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x6d
,
0x6f
,
0x73
,
0x5c
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0xe2
,
0x02
,
0x17
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x73
,
0x5c
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x5c
,
0x47
,
0x50
,
0x42
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x0c
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x3a
,
0x3a
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
}
var
(
var
(
...
...
proto/store/workspace_setting.proto
View file @
1da07529
...
@@ -27,7 +27,10 @@ message WorkspaceSetting {
...
@@ -27,7 +27,10 @@ message WorkspaceSetting {
}
}
message
WorkspaceBasicSetting
{
message
WorkspaceBasicSetting
{
// The secret key for workspace. Mainly used for session management.
string
secret_key
=
1
;
string
secret_key
=
1
;
// The current schema version of database.
string
schema_version
=
2
;
}
}
message
WorkspaceGeneralSetting
{
message
WorkspaceGeneralSetting
{
...
...
store/migrator.go
View file @
1da07529
...
@@ -14,6 +14,7 @@ import (
...
@@ -14,6 +14,7 @@ import (
"github.com/pkg/errors"
"github.com/pkg/errors"
storepb
"github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/server/version"
"github.com/usememos/memos/server/version"
)
)
...
@@ -96,11 +97,15 @@ func (s *Store) Migrate(ctx context.Context) error {
...
@@ -96,11 +97,15 @@ func (s *Store) Migrate(ctx context.Context) error {
slog
.
Info
(
"end migrate"
)
slog
.
Info
(
"end migrate"
)
// Upsert the current schema version to migration_history.
// Upsert the current schema version to migration_history.
// TODO: retire using migration history later.
if
_
,
err
=
s
.
driver
.
UpsertMigrationHistory
(
ctx
,
&
UpsertMigrationHistory
{
if
_
,
err
=
s
.
driver
.
UpsertMigrationHistory
(
ctx
,
&
UpsertMigrationHistory
{
Version
:
schemaVersion
,
Version
:
schemaVersion
,
});
err
!=
nil
{
});
err
!=
nil
{
return
errors
.
Wrapf
(
err
,
"failed to upsert migration history with version: %s"
,
schemaVersion
)
return
errors
.
Wrapf
(
err
,
"failed to upsert migration history with version: %s"
,
schemaVersion
)
}
}
if
err
:=
s
.
updateCurrentSchemaVersion
(
ctx
,
schemaVersion
);
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"failed to update current schema version"
)
}
}
}
}
else
if
s
.
Profile
.
Mode
==
"demo"
{
}
else
if
s
.
Profile
.
Mode
==
"demo"
{
// In demo mode, we should seed the database.
// In demo mode, we should seed the database.
...
@@ -112,6 +117,7 @@ func (s *Store) Migrate(ctx context.Context) error {
...
@@ -112,6 +117,7 @@ func (s *Store) Migrate(ctx context.Context) error {
}
}
func
(
s
*
Store
)
preMigrate
(
ctx
context
.
Context
)
error
{
func
(
s
*
Store
)
preMigrate
(
ctx
context
.
Context
)
error
{
// TODO: using schema version in basic setting instead of migration history.
migrationHistoryList
,
err
:=
s
.
driver
.
FindMigrationHistoryList
(
ctx
,
&
FindMigrationHistory
{})
migrationHistoryList
,
err
:=
s
.
driver
.
FindMigrationHistoryList
(
ctx
,
&
FindMigrationHistory
{})
// If any error occurs or no migration history found, apply the latest schema.
// If any error occurs or no migration history found, apply the latest schema.
if
err
!=
nil
||
len
(
migrationHistoryList
)
==
0
{
if
err
!=
nil
||
len
(
migrationHistoryList
)
==
0
{
...
@@ -141,11 +147,15 @@ func (s *Store) preMigrate(ctx context.Context) error {
...
@@ -141,11 +147,15 @@ func (s *Store) preMigrate(ctx context.Context) error {
return
errors
.
Wrap
(
err
,
"failed to commit transaction"
)
return
errors
.
Wrap
(
err
,
"failed to commit transaction"
)
}
}
// TODO: using schema version in basic setting instead of migration history.
if
_
,
err
:=
s
.
driver
.
UpsertMigrationHistory
(
ctx
,
&
UpsertMigrationHistory
{
if
_
,
err
:=
s
.
driver
.
UpsertMigrationHistory
(
ctx
,
&
UpsertMigrationHistory
{
Version
:
schemaVersion
,
Version
:
schemaVersion
,
});
err
!=
nil
{
});
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"failed to upsert migration history"
)
return
errors
.
Wrap
(
err
,
"failed to upsert migration history"
)
}
}
if
err
:=
s
.
updateCurrentSchemaVersion
(
ctx
,
schemaVersion
);
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"failed to update current schema version"
)
}
}
}
if
s
.
Profile
.
Mode
==
"prod"
{
if
s
.
Profile
.
Mode
==
"prod"
{
if
err
:=
s
.
normalizedMigrationHistoryList
(
ctx
);
err
!=
nil
{
if
err
:=
s
.
normalizedMigrationHistoryList
(
ctx
);
err
!=
nil
{
...
@@ -295,3 +305,18 @@ func (s *Store) normalizedMigrationHistoryList(ctx context.Context) error {
...
@@ -295,3 +305,18 @@ func (s *Store) normalizedMigrationHistoryList(ctx context.Context) error {
}
}
return
tx
.
Commit
()
return
tx
.
Commit
()
}
}
func
(
s
*
Store
)
updateCurrentSchemaVersion
(
ctx
context
.
Context
,
schemaVersion
string
)
error
{
workspaceBasicSetting
,
err
:=
s
.
GetWorkspaceBasicSetting
(
ctx
)
if
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"failed to get workspace basic setting"
)
}
workspaceBasicSetting
.
SchemaVersion
=
schemaVersion
if
_
,
err
:=
s
.
UpsertWorkspaceSetting
(
ctx
,
&
storepb
.
WorkspaceSetting
{
Key
:
storepb
.
WorkspaceSettingKey_BASIC
,
Value
:
&
storepb
.
WorkspaceSetting_BasicSetting
{
BasicSetting
:
workspaceBasicSetting
},
});
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"failed to upsert workspace setting"
)
}
return
nil
}
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