🔖 chore: Update variable name to follow naming conventions

This commit is contained in:
MartialBE
2024-05-29 04:58:28 +08:00
parent 021f8c65da
commit c2f8a79be2
14 changed files with 45 additions and 45 deletions

View File

@@ -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++
}