mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-17 05:33:42 +08:00
🔖 chore: Update variable name to follow naming conventions
This commit is contained in:
@@ -70,10 +70,10 @@ func getPaginationInlineKeyboard(key string, page int, total int) gotgbot.Inline
|
||||
return bt
|
||||
}
|
||||
|
||||
func getPageParams(key string, page, size, total_count int) *paginationParams {
|
||||
func getPageParams(key string, page, size, totalCount int) *paginationParams {
|
||||
// 根据总数计算总页数
|
||||
total := total_count / size
|
||||
if total_count%size > 0 {
|
||||
total := totalCount / size
|
||||
if totalCount%size > 0 {
|
||||
total++
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user