2 Star 1 Fork 0

liudaka / artifactory

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
page.go 603 Bytes
一键复制 编辑 原始数据 按行查看 历史
geeeekegeeeeke 提交于 2023-12-06 15:31 . feat:
// Copyright 2017 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package utils
import (
"gitee.com/daka1004/artifactory/backend/app/model/db"
"gitee.com/daka1004/artifactory/backend/app/modules/context"
)
// GetListOptions returns list options using the page and limit parameters
func GetListOptions(ctx *context.APIContext) db.ListOptions {
return db.ListOptions{
Page: ctx.FormInt("page"),
PageSize: ctx.FormInt("pageSize"),
//PageSize: convert.ToCorrectPageSize(ctx.FormInt("pageSize")),
//PageSize: convert.ToCorrectPageSize(ctx.FormInt("pageSize")),
}
}
Go
1
https://gitee.com/daka1004/artifactory.git
git@gitee.com:daka1004/artifactory.git
daka1004
artifactory
artifactory
495e01fd4b9f

搜索帮助