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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-go
Commits
481f268a
Commit
481f268a
authored
8 months ago
by
Semyon Krestyaninov
Committed by
Pavel Antonov
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
feat: Доработана функция получения системных полей, добавлено поле `State`
Close #PRXS-2830
parent
52ff046a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/items/item.go
+2
-0
2 additions, 0 deletions
pkg/items/item.go
with
2 additions
and
0 deletions
pkg/items/item.go
+
2
−
0
View file @
481f268a
...
@@ -492,6 +492,8 @@ func GetSystemField(fld string) (*field.Field, error) {
...
@@ -492,6 +492,8 @@ func GetSystemField(fld string) (*field.Field, error) {
return
field
.
Bool
(),
nil
return
field
.
Bool
(),
nil
case
"search_score"
:
case
"search_score"
:
return
field
.
Number
(
field
.
NumberFormatFloat
),
nil
return
field
.
Number
(
field
.
NumberFormatFloat
),
nil
case
"state"
:
return
field
.
Number
(
field
.
NumberFormatInt
),
nil
}
}
return
nil
,
ErrNotSystemField
return
nil
,
ErrNotSystemField
...
...
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