16 lines
383 B
Python
16 lines
383 B
Python
from typing import Optional
|
|
|
|
from app.chain import ChainBase
|
|
|
|
|
|
class UserChain(ChainBase):
|
|
|
|
def user_authenticate(self, name, password) -> Optional[bool]:
|
|
"""
|
|
辅助完成用户认证
|
|
:param name: 用户名
|
|
:param password: 密码
|
|
:return: bool
|
|
"""
|
|
return self.run_module("user_authenticate", name=name, password=password)
|