refactor(knowledge): increase page size for tag retrieval in buildTagMap function

- Updated the page size from 100 to 1000 in the buildTagMap function to enhance performance and efficiency when retrieving tags from the knowledge base.
This commit is contained in:
wizardchen
2026-03-23 19:54:26 +08:00
committed by lyingbug
parent a6c38123b6
commit 68dd6aa778
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -175,7 +175,7 @@ type Pagination struct {
// Page
Page int `form:"page" json:"page" binding:"omitempty,min=1"`
// Page size
PageSize int `form:"page_size" json:"page_size" binding:"omitempty,min=1,max=100"`
PageSize int `form:"page_size" json:"page_size" binding:"omitempty,min=1,max=1000"`
}
// GetPage gets the page number, default is 1
@@ -191,8 +191,8 @@ func (p *Pagination) GetPageSize() int {
if p.PageSize < 1 {
return 20
}
if p.PageSize > 100 {
return 100
if p.PageSize > 1000 {
return 1000
}
return p.PageSize
}