forked from erp-dev/erp
30 lines
891 B
Python
30 lines
891 B
Python
"""
|
|
库存变动视图模块
|
|
|
|
使用类视图重构,提供更好的代码复用和可维护性
|
|
"""
|
|
|
|
from .mixins import StockChangeViewMixin
|
|
from .create import CreateStockChangeView
|
|
from .list import ListStockChangesView
|
|
from .detail import GetStockChangeView
|
|
from .settings import SetMerchantAutoCompleteView
|
|
|
|
# 向后兼容:保持原有的函数式接口
|
|
create_full_stock_change = CreateStockChangeView.as_view()
|
|
list_stock_changes = ListStockChangesView.as_view()
|
|
get_stock_change = GetStockChangeView.as_view()
|
|
set_merchant_auto_complete_stock_change = SetMerchantAutoCompleteView.as_view()
|
|
|
|
__all__ = [
|
|
'StockChangeViewMixin',
|
|
'CreateStockChangeView',
|
|
'ListStockChangesView',
|
|
'GetStockChangeView',
|
|
'SetMerchantAutoCompleteView',
|
|
'create_full_stock_change',
|
|
'list_stock_changes',
|
|
'get_stock_change',
|
|
'set_merchant_auto_complete_stock_change',
|
|
]
|