forked from erp-dev/erp
feat: sse && multi_merchant completed
This commit is contained in:
@@ -1,12 +1,23 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
from django.urls import path, include
|
||||
from .views import stock_change_views, user_info, inventory, product_image
|
||||
|
||||
urlpatterns = [
|
||||
# 库存变动相关API
|
||||
path('stock-change/', views.create_full_stock_change, name='create_full_stock_change'),
|
||||
path('stock-changes/', stock_change_views.list_stock_changes, name='list_stock_changes'),
|
||||
path('stock-change/', stock_change_views.create_full_stock_change, name='create_full_stock_change'),
|
||||
path('stock-change/<int:record_id>/', stock_change_views.get_stock_change, name='get_stock_change'),
|
||||
path(
|
||||
'set-merchant-auto-complete-stock-change/',
|
||||
views.set_merchant_auto_complete_stock_change,
|
||||
stock_change_views.set_merchant_auto_complete_stock_change,
|
||||
name='set_merchant_auto_complete_stock_change',
|
||||
),
|
||||
]
|
||||
|
||||
# 用户信息 API
|
||||
path('user-info/', user_info.user_info, name='user_info'),
|
||||
|
||||
# 库存查询 API
|
||||
path('inventory/', inventory.InventoryAPIView.as_view(), name='inventory'),
|
||||
|
||||
# 产品图片上传 API
|
||||
path('products/<int:product_id>/image/', product_image.ProductImageUploadView.as_view(), name='product_image_upload'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user