fix: 重命名工具类文件

This commit is contained in:
chenwj 2023-01-06 17:54:12 +08:00
parent 6312b41f2c
commit db555faee8
5 changed files with 10 additions and 1 deletions

View File

@ -14,6 +14,15 @@ def verify_password(plain_password, hashed_password):
def get_password_hash(password): def get_password_hash(password):
return pwd_context.hash(password) return pwd_context.hash(password)
def get_total_pages(total, limit):
"""
获取总页数
:param total:
:param limit:
:return:
"""
s = total / limit if total % limit == 0 else total / limit + 1
return round(s)
def create_batch(): def create_batch():
"""创建批号""" """创建批号"""