Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-go
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
1edc495d
Commit
1edc495d
authored
10 months ago
by
Danis Kirasirov
Committed by
Pavel Antonov
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
feat: Обновлен API: Добавлено поле LocaleID в структуре ActionRequest
Close #PRXS-2758
parent
52ff046a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
perxis-proto
+1
-1
1 addition, 1 deletion
perxis-proto
pkg/extension/action.go
+3
-0
3 additions, 0 deletions
pkg/extension/action.go
proto/extensions/extension.pb.go
+40
-29
40 additions, 29 deletions
proto/extensions/extension.pb.go
with
44 additions
and
30 deletions
perxis-proto
@
b2ac7b05
Compare
6af15800
...
b2ac7b05
Subproject commit
6af1580075902894ee50e26ef27aecdd106278dd
Subproject commit
b2ac7b057b6e815506d40f9ae41ad16733859d7b
This diff is collapsed.
Click to expand it.
pkg/extension/action.go
+
3
−
0
View file @
1edc495d
...
...
@@ -18,6 +18,7 @@ type (
ActionRequest
struct
{
Extension
string
`json:"extension,omitempty"`
Action
string
`json:"action"`
LocaleID
string
`json:"locale_id,omitempty"`
SpaceID
string
`json:"space_id,omitempty"`
EnvID
string
`json:"env_id,omitempty"`
CollectionID
string
`json:"collection_id,omitempty"`
...
...
@@ -143,6 +144,7 @@ func ActionRequestToPB(req *ActionRequest) *pb.ActionRequest {
return
&
pb
.
ActionRequest
{
Extension
:
req
.
Extension
,
Action
:
req
.
Action
,
LocaleId
:
req
.
LocaleID
,
SpaceId
:
req
.
SpaceID
,
EnvId
:
req
.
EnvID
,
CollectionId
:
req
.
CollectionID
,
...
...
@@ -162,6 +164,7 @@ func ActionRequestFromPB(req *pb.ActionRequest) *ActionRequest {
return
&
ActionRequest
{
Extension
:
req
.
Extension
,
Action
:
req
.
Action
,
LocaleID
:
req
.
LocaleId
,
SpaceID
:
req
.
SpaceId
,
EnvID
:
req
.
EnvId
,
CollectionID
:
req
.
CollectionId
,
...
...
This diff is collapsed.
Click to expand it.
proto/extensions/extension.pb.go
+
40
−
29
View file @
1edc495d
...
...
@@ -490,6 +490,8 @@ type ActionRequest struct {
CollectionId
string
`protobuf:"bytes,10520,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
ItemId
string
`protobuf:"bytes,10530,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"`
ItemIds
[]
string
`protobuf:"bytes,10540,rep,name=item_ids,json=itemIds,proto3" json:"item_ids,omitempty"`
// Идентификатор локали в пространстве: поле может использоваться расширением, если действие возможно выполнить на разных локалях
LocaleId
string
`protobuf:"bytes,11050,opt,name=locale_id,json=localeId,proto3" json:"locale_id,omitempty"`
// Поля к которым применимо действие. В случае если действие выполняется из списка записей, содержит перечень
// полей которые пользователь выбрал для отображения в интерфейсе.
Fields
[]
string
`protobuf:"bytes,10550,rep,name=fields,proto3" json:"fields,omitempty"`
...
...
@@ -582,6 +584,13 @@ func (x *ActionRequest) GetItemIds() []string {
return
nil
}
func
(
x
*
ActionRequest
)
GetLocaleId
()
string
{
if
x
!=
nil
{
return
x
.
LocaleId
}
return
""
}
func
(
x
*
ActionRequest
)
GetFields
()
[]
string
{
if
x
!=
nil
{
return
x
.
Fields
...
...
@@ -675,7 +684,7 @@ var file_extensions_extension_proto_rawDesc = []byte{
0x44
,
0x44
,
0x45
,
0x4e
,
0x5f
,
0x56
,
0x49
,
0x45
,
0x57
,
0x10
,
0x01
,
0x12
,
0x12
,
0x0a
,
0x0e
,
0x4d
,
0x41
,
0x49
,
0x4e
,
0x5f
,
0x4d
,
0x45
,
0x4e
,
0x55
,
0x5f
,
0x56
,
0x49
,
0x45
,
0x57
,
0x10
,
0x02
,
0x12
,
0x19
,
0x0a
,
0x15
,
0x4d
,
0x41
,
0x49
,
0x4e
,
0x5f
,
0x4d
,
0x45
,
0x4e
,
0x55
,
0x5f
,
0x42
,
0x4f
,
0x54
,
0x54
,
0x4f
,
0x4d
,
0x5f
,
0x56
,
0x49
,
0x45
,
0x57
,
0x10
,
0x03
,
0x22
,
0x
d
f
,
0x03
,
0x0a
,
0x0d
,
0x41
,
0x54
,
0x4f
,
0x4d
,
0x5f
,
0x56
,
0x49
,
0x45
,
0x57
,
0x10
,
0x03
,
0x22
,
0xf
d
,
0x03
,
0x0a
,
0x0d
,
0x41
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x12
,
0x1d
,
0x0a
,
0x09
,
0x65
,
0x78
,
0x74
,
0x65
,
0x6e
,
0x73
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0xe8
,
0x07
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x09
,
0x65
,
0x78
,
0x74
,
0x65
,
0x6e
,
0x73
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x17
,
0x0a
,
0x06
,
0x61
,
...
...
@@ -689,34 +698,36 @@ var file_extensions_extension_proto_rawDesc = []byte{
0x0a
,
0x07
,
0x69
,
0x74
,
0x65
,
0x6d
,
0x5f
,
0x69
,
0x64
,
0x18
,
0xa2
,
0x52
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x69
,
0x74
,
0x65
,
0x6d
,
0x49
,
0x64
,
0x12
,
0x1a
,
0x0a
,
0x08
,
0x69
,
0x74
,
0x65
,
0x6d
,
0x5f
,
0x69
,
0x64
,
0x73
,
0x18
,
0xac
,
0x52
,
0x20
,
0x03
,
0x28
,
0x09
,
0x52
,
0x07
,
0x69
,
0x74
,
0x65
,
0x6d
,
0x49
,
0x64
,
0x73
,
0x12
,
0x17
,
0x0a
,
0x06
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x73
,
0x18
,
0xb6
,
0x52
,
0x20
,
0x03
,
0x28
,
0x09
,
0x52
,
0x06
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x73
,
0x12
,
0x44
,
0x0a
,
0x08
,
0x6d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x18
,
0xf8
,
0x55
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x27
,
0x2e
,
0x65
,
0x78
,
0x74
,
0x65
,
0x6e
,
0x73
,
0x69
,
0x6f
,
0x6e
,
0x73
,
0x2e
,
0x41
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x2e
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x45
,
0x6e
,
0x74
,
0x72
,
0x79
,
0x52
,
0x08
,
0x6d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x12
,
0x32
,
0x0a
,
0x04
,
0x72
,
0x65
,
0x66
,
0x73
,
0x18
,
0x82
,
0x56
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x1d
,
0x2e
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x2e
,
0x72
,
0x65
,
0x66
,
0x65
,
0x72
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x73
,
0x2e
,
0x52
,
0x65
,
0x66
,
0x65
,
0x72
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x52
,
0x04
,
0x72
,
0x65
,
0x66
,
0x73
,
0x12
,
0x36
,
0x0a
,
0x06
,
0x70
,
0x61
,
0x72
,
0x61
,
0x6d
,
0x73
,
0x18
,
0x8c
,
0x56
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1d
,
0x2e
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x2e
,
0x72
,
0x65
,
0x66
,
0x65
,
0x72
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x73
,
0x2e
,
0x52
,
0x65
,
0x66
,
0x65
,
0x72
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x52
,
0x06
,
0x70
,
0x61
,
0x72
,
0x61
,
0x6d
,
0x73
,
0x1a
,
0x3b
,
0x0a
,
0x0d
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x45
,
0x6e
,
0x74
,
0x72
,
0x79
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x6b
,
0x65
,
0x79
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x6b
,
0x65
,
0x79
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x3a
,
0x02
,
0x38
,
0x01
,
0x2a
,
0x67
,
0x0a
,
0x06
,
0x54
,
0x61
,
0x72
,
0x67
,
0x65
,
0x74
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x44
,
0x45
,
0x46
,
0x41
,
0x55
,
0x4c
,
0x54
,
0x10
,
0x00
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x4d
,
0x4f
,
0x44
,
0x41
,
0x4c
,
0x10
,
0x01
,
0x12
,
0x08
,
0x0a
,
0x04
,
0x57
,
0x49
,
0x44
,
0x45
,
0x10
,
0x02
,
0x12
,
0x08
,
0x0a
,
0x04
,
0x4d
,
0x41
,
0x49
,
0x4e
,
0x10
,
0x04
,
0x12
,
0x0a
,
0x0a
,
0x06
,
0x44
,
0x52
,
0x41
,
0x57
,
0x45
,
0x52
,
0x10
,
0x05
,
0x12
,
0x10
,
0x0a
,
0x0c
,
0x4e
,
0x4f
,
0x54
,
0x49
,
0x46
,
0x49
,
0x43
,
0x41
,
0x54
,
0x49
,
0x4f
,
0x4e
,
0x10
,
0x06
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x42
,
0x4c
,
0x41
,
0x4e
,
0x4b
,
0x10
,
0x07
,
0x12
,
0x08
,
0x0a
,
0x04
,
0x4e
,
0x4f
,
0x4e
,
0x45
,
0x10
,
0x64
,
0x42
,
0x3a
,
0x5a
,
0x38
,
0x67
,
0x69
,
0x74
,
0x2e
,
0x70
,
0x65
,
0x72
,
0x78
,
0x2e
,
0x72
,
0x75
,
0x2f
,
0x70
,
0x65
,
0x72
,
0x78
,
0x69
,
0x73
,
0x2f
,
0x70
,
0x65
,
0x72
,
0x78
,
0x69
,
0x73
,
0x2d
,
0x67
,
0x6f
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x65
,
0x78
,
0x74
,
0x65
,
0x6e
,
0x73
,
0x69
,
0x6f
,
0x6e
,
0x73
,
0x3b
,
0x65
,
0x78
,
0x74
,
0x65
,
0x6e
,
0x73
,
0x69
,
0x6f
,
0x6e
,
0x73
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x6d
,
0x49
,
0x64
,
0x73
,
0x12
,
0x1c
,
0x0a
,
0x09
,
0x6c
,
0x6f
,
0x63
,
0x61
,
0x6c
,
0x65
,
0x5f
,
0x69
,
0x64
,
0x18
,
0xaa
,
0x56
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x08
,
0x6c
,
0x6f
,
0x63
,
0x61
,
0x6c
,
0x65
,
0x49
,
0x64
,
0x12
,
0x17
,
0x0a
,
0x06
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x73
,
0x18
,
0xb6
,
0x52
,
0x20
,
0x03
,
0x28
,
0x09
,
0x52
,
0x06
,
0x66
,
0x69
,
0x65
,
0x6c
,
0x64
,
0x73
,
0x12
,
0x44
,
0x0a
,
0x08
,
0x6d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x18
,
0xf8
,
0x55
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x27
,
0x2e
,
0x65
,
0x78
,
0x74
,
0x65
,
0x6e
,
0x73
,
0x69
,
0x6f
,
0x6e
,
0x73
,
0x2e
,
0x41
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x52
,
0x65
,
0x71
,
0x75
,
0x65
,
0x73
,
0x74
,
0x2e
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x45
,
0x6e
,
0x74
,
0x72
,
0x79
,
0x52
,
0x08
,
0x6d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x12
,
0x32
,
0x0a
,
0x04
,
0x72
,
0x65
,
0x66
,
0x73
,
0x18
,
0x82
,
0x56
,
0x20
,
0x03
,
0x28
,
0x0b
,
0x32
,
0x1d
,
0x2e
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x2e
,
0x72
,
0x65
,
0x66
,
0x65
,
0x72
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x73
,
0x2e
,
0x52
,
0x65
,
0x66
,
0x65
,
0x72
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x52
,
0x04
,
0x72
,
0x65
,
0x66
,
0x73
,
0x12
,
0x36
,
0x0a
,
0x06
,
0x70
,
0x61
,
0x72
,
0x61
,
0x6d
,
0x73
,
0x18
,
0x8c
,
0x56
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x1d
,
0x2e
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x2e
,
0x72
,
0x65
,
0x66
,
0x65
,
0x72
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x73
,
0x2e
,
0x52
,
0x65
,
0x66
,
0x65
,
0x72
,
0x65
,
0x6e
,
0x63
,
0x65
,
0x52
,
0x06
,
0x70
,
0x61
,
0x72
,
0x61
,
0x6d
,
0x73
,
0x1a
,
0x3b
,
0x0a
,
0x0d
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0x45
,
0x6e
,
0x74
,
0x72
,
0x79
,
0x12
,
0x10
,
0x0a
,
0x03
,
0x6b
,
0x65
,
0x79
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x03
,
0x6b
,
0x65
,
0x79
,
0x12
,
0x14
,
0x0a
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x05
,
0x76
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x3a
,
0x02
,
0x38
,
0x01
,
0x2a
,
0x67
,
0x0a
,
0x06
,
0x54
,
0x61
,
0x72
,
0x67
,
0x65
,
0x74
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x44
,
0x45
,
0x46
,
0x41
,
0x55
,
0x4c
,
0x54
,
0x10
,
0x00
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x4d
,
0x4f
,
0x44
,
0x41
,
0x4c
,
0x10
,
0x01
,
0x12
,
0x08
,
0x0a
,
0x04
,
0x57
,
0x49
,
0x44
,
0x45
,
0x10
,
0x02
,
0x12
,
0x08
,
0x0a
,
0x04
,
0x4d
,
0x41
,
0x49
,
0x4e
,
0x10
,
0x04
,
0x12
,
0x0a
,
0x0a
,
0x06
,
0x44
,
0x52
,
0x41
,
0x57
,
0x45
,
0x52
,
0x10
,
0x05
,
0x12
,
0x10
,
0x0a
,
0x0c
,
0x4e
,
0x4f
,
0x54
,
0x49
,
0x46
,
0x49
,
0x43
,
0x41
,
0x54
,
0x49
,
0x4f
,
0x4e
,
0x10
,
0x06
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x42
,
0x4c
,
0x41
,
0x4e
,
0x4b
,
0x10
,
0x07
,
0x12
,
0x08
,
0x0a
,
0x04
,
0x4e
,
0x4f
,
0x4e
,
0x45
,
0x10
,
0x64
,
0x42
,
0x3a
,
0x5a
,
0x38
,
0x67
,
0x69
,
0x74
,
0x2e
,
0x70
,
0x65
,
0x72
,
0x78
,
0x2e
,
0x72
,
0x75
,
0x2f
,
0x70
,
0x65
,
0x72
,
0x78
,
0x69
,
0x73
,
0x2f
,
0x70
,
0x65
,
0x72
,
0x78
,
0x69
,
0x73
,
0x2d
,
0x67
,
0x6f
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x65
,
0x78
,
0x74
,
0x65
,
0x6e
,
0x73
,
0x69
,
0x6f
,
0x6e
,
0x73
,
0x3b
,
0x65
,
0x78
,
0x74
,
0x65
,
0x6e
,
0x73
,
0x69
,
0x6f
,
0x6e
,
0x73
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
var
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment