Affected by GO-2023-1995
and 2 other vulnerabilities
GO-2023-1995: Answer has Race Condition within a Thread in github.com/answerdev/answer
GO-2023-1997: Answer Missing Authorization vulnerability in github.com/answerdev/answer
GO-2023-2051: Answer Missing Authentication for Critical Function in github.com/answerdev/answer
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Jun 6, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Help(page, pageSize int, rowsSlicePtr interface{}, rowElement interface{}, session *xorm.Session) (total int64, err error)
Help xorm page helper
func ValPageAndPageSize(page, pageSize int) (int, int)
ValPageAndPageSize validate page pageSize
type PageCond struct {
Page int
PageSize int
}
PageCond page condition
type PageModel struct {
Count int64 `json:"count"`
List interface{} `json:"list"`
}
PageModel page model
NewPageModel new page model
Source Files
¶
Click to show internal directories.
Click to hide internal directories.