create-dp-koa 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/package.json +1 -1
  2. package/template/.cursor/commands/cheatsheet-backend-controller.md +2 -2
  3. package/template/.cursor/commands/implement-backend-api-controller.md +6 -4
  4. package/template/.cursor/rules/11-backend-controller-recipes.skill.md +89 -10
  5. package/template/.trae/skills/11-backend-controller-recipes.skill.md +91 -10
  6. package/template/docs/FRAMEWORK_V2_UPGRADE_GUIDE.md +134 -0
  7. package/template/package.json +2 -0
  8. package/template/scripts/sync-template.mjs +39 -1
  9. package/template/src/app.ts +21 -16
  10. package/template/src/controllers/demo/AnnotationDemoController.ts +1 -3
  11. package/template/src/controllers/example/EnterpriseExampleController.ts +2 -9
  12. package/template/src/controllers/example/ExampleController.ts +13 -4
  13. package/template/src/entity/index.ts +1 -15
  14. package/template/src/framework/decorator/processor/AnnotationProcessor.ts +5 -1
  15. package/template/src/routers/index.ts +1 -37
  16. package/template/src/utils/testDataInitializer.ts +2 -269
  17. package/template/test/controllers/example/ExampleController.test.ts +29 -31
  18. package/template/test/framework/annotation/AnnotationDecorators.test.ts +15 -15
  19. package/template/test/framework/annotation/AnnotationExecutor.test.ts +27 -32
  20. package/template/test/framework/annotation/AnnotationProcessor.test.ts +25 -24
  21. package/template/test/framework/annotation/CustomProcessors.test.ts +15 -25
  22. package/template/test/framework/annotation/NewRouter.test.ts +9 -7
  23. package/template/test/framework/annotation/ProcessorManager.test.ts +14 -27
  24. package/template/test/framework/databaseConfig.test.ts +2 -2
  25. package/template/test/integration/integration.test.ts +15 -72
  26. package/template/webpack.config.js +2 -0
  27. package/template/package-lock.json +0 -13240
  28. package/template/src/controllers/cacheManagement.controller.ts +0 -131
  29. package/template/src/controllers/captcha.controller.ts +0 -57
  30. package/template/src/controllers/example/NewAnnotationExampleController.ts +0 -159
  31. package/template/src/controllers/example/SwaggerExampleController.ts +0 -205
  32. package/template/src/controllers/example/TransactionExample.controller.ts +0 -336
  33. package/template/src/controllers/health.controller.ts +0 -235
  34. package/template/src/controllers/home/register.controller.ts +0 -58
  35. package/template/src/controllers/home/ytGoods.controller.ts +0 -92
  36. package/template/src/controllers/home/ytShop.controller.ts +0 -135
  37. package/template/src/controllers/home/ytUser.controller.ts +0 -89
  38. package/template/src/controllers/logManagement.controller.ts +0 -396
  39. package/template/src/controllers/public/emailSend.controller.ts +0 -65
  40. package/template/src/controllers/public/ytUserAuth.controller.ts +0 -174
  41. package/template/src/controllers/testData.controller.ts +0 -253
  42. package/template/src/dto/controller/example/NewAnnotationExampleController.dto.ts +0 -73
  43. package/template/src/dto/controller/home/emailSend.controller.dto.ts +0 -40
  44. package/template/src/dto/controller/home/register.controller.dto.ts +0 -45
  45. package/template/src/dto/controller/home/ytGoods.controller.dto.ts +0 -55
  46. package/template/src/dto/controller/home/ytShop.controller.dto.ts +0 -69
  47. package/template/src/dto/controller/home/ytUser.controller.dto.ts +0 -44
  48. package/template/src/dto/controller/public/ytUserAuth.controller.dto.ts +0 -63
  49. package/template/src/dto/goods.dto.ts +0 -212
  50. package/template/src/dto/service/ytService.dto.ts +0 -13
  51. package/template/src/dto/user.dto.ts +0 -177
  52. package/template/src/entity/columnTypes.ts +0 -13
  53. package/template/src/entity/goodsImagesUnlockKey.entity.ts +0 -33
  54. package/template/src/entity/goodsUnlocker.entity.ts +0 -34
  55. package/template/src/entity/shop.entity.ts +0 -52
  56. package/template/src/entity/shopUser.entity.ts +0 -41
  57. package/template/src/entity/ytGoods.entity.ts +0 -94
  58. package/template/src/entity/ytUser.entity.ts +0 -96
  59. package/template/src/examples/SwaggerProcessorExample.ts +0 -169
  60. package/template/src/examples/TransactionManagerDemo.ts +0 -377
  61. package/template/src/framework/utils/dynamicSwagger.ts +0 -410
  62. package/template/src/repository/UserRepository.ts +0 -122
  63. package/template/src/service/paramValidateTest.service.ts +0 -139
  64. package/template/src/service/ytGoods.service.ts +0 -42
  65. package/template/src/service/ytShop.service.ts +0 -90
  66. package/template/src/service/ytUser.service.ts +0 -451
  67. package/template/src/test/swaggerParameterTest.ts +0 -90
  68. package/template/test/controllers/controllers.test.ts +0 -173
  69. package/template/test/controllers/example/NewAnnotationExampleController.test.ts +0 -200
  70. package/template/test/framework/TransactionManagerDemo.test.ts +0 -363
  71. package/template/test/service/business.test.ts +0 -87
  72. package/template/test/service/paramValidateTest.service.test.ts +0 -184
  73. package/template/test/service/ytUser.service.test.ts +0 -566
  74. package/template/yarn.lock +0 -7354

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.