TemplateCategoryController.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. from django.views.decorators.http import require_http_methods
  2. from backend.Service.SupplierService import SupplierService
  3. from backend.Service.TemplateCategoryService import TemplateCategoryService
  4. @require_http_methods(['POST'])
  5. def Create(reqeust):
  6. return TemplateCategoryService.Create(reqeust)
  7. @require_http_methods(['POST'])
  8. def Update(reqeust):
  9. return TemplateCategoryService.Update(reqeust)
  10. @require_http_methods(['POST'])
  11. def Delete(reqeust):
  12. return TemplateCategoryService.Delete(reqeust)
  13. @require_http_methods(['POST'])
  14. def Info(reqeust):
  15. return TemplateCategoryService.Info(reqeust)
  16. @require_http_methods(['POST'])
  17. def Search(reqeust):
  18. return TemplateCategoryService.Search(reqeust)
  19. @require_http_methods(['POST'])
  20. def allInfo(reqeust):
  21. return TemplateCategoryService.allInfo(reqeust)
  22. @require_http_methods(['POST'])
  23. def allList(reqeust):
  24. return TemplateCategoryService.allList(reqeust)
  25. @require_http_methods(['POST'])
  26. def treeCategory(reqeust):
  27. return TemplateCategoryService.treeCategory(reqeust)