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
7a20ca9f
Commit
7a20ca9f
authored
1 year ago
by
ko_oler
Browse files
Options
Downloads
Patches
Plain Diff
исправления в FindOptions
parent
c8e1fe9f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/options/options.go
+3
-5
3 additions, 5 deletions
pkg/options/options.go
with
3 additions
and
5 deletions
pkg/options/options.go
+
3
−
5
View file @
7a20ca9f
...
...
@@ -34,13 +34,11 @@ type FindOptions struct {
}
// NewFindOptions создает новые результаты поиска
func
NewFindOptions
(
offset
,
limit
int
,
sort
...
string
)
*
FindOptions
{
func
NewFindOptions
(
pageNum
,
pageSize
int
,
sort
...
string
)
*
FindOptions
{
return
&
FindOptions
{
PaginationOptions
:
PaginationOptions
{
PageNum
:
offset
,
PageSize
:
limit
,
Offset
:
offset
,
Limit
:
limit
,
PageNum
:
pageNum
,
PageSize
:
pageSize
,
},
SortOptions
:
SortOptions
{
Sort
:
sort
,
...
...
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