初始提交,未完全测试
This commit is contained in:
27
template/ext/sharedmethod/SharedMethodLib.py
Normal file
27
template/ext/sharedmethod/SharedMethodLib.py
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env python3.9
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
JFinal SharedMethodLib - Shared Method Library
|
||||
"""
|
||||
|
||||
class SharedMethodLib:
|
||||
"""Shared method library for template functions"""
|
||||
|
||||
def __init__(self):
|
||||
"""Initialize shared method library"""
|
||||
pass
|
||||
|
||||
def add_shared_method(self, method_name: str, method):
|
||||
"""Add shared method"""
|
||||
pass
|
||||
|
||||
def get_shared_method(self, method_name: str):
|
||||
"""Get shared method by name"""
|
||||
return None
|
||||
|
||||
def has_shared_method(self, method_name: str) -> bool:
|
||||
"""Check if shared method exists"""
|
||||
return False
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return "SharedMethodLib()"
|
||||
1
template/ext/sharedmethod/__init__.py
Normal file
1
template/ext/sharedmethod/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# Python package initialization
|
||||
Reference in New Issue
Block a user