fix: 重命名工具类文件
This commit is contained in:
parent
6312b41f2c
commit
db555faee8
|
|
@ -13,7 +13,16 @@ def verify_password(plain_password, hashed_password):
|
|||
|
||||
def get_password_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():
|
||||
"""创建批号"""
|
||||
Loading…
Reference in New Issue