diff --git "a/\351\237\251\345\206\260\345\206\260/06\351\241\271\347\233\256\346\272\220\347\250\213\345\272\217/UI\347\225\214\351\235\242/\351\233\206\350\256\255\347\254\254\344\272\214\344\270\252\351\241\271\347\233\256(\347\224\265\345\255\220\345\225\206\345\237\216).rp" "b/\351\237\251\345\206\260\345\206\260/06\351\241\271\347\233\256\346\272\220\347\250\213\345\272\217/UI\347\225\214\351\235\242/\351\233\206\350\256\255\347\254\254\344\272\214\344\270\252\351\241\271\347\233\256(\347\224\265\345\255\220\345\225\206\345\237\216).rp" new file mode 100644 index 0000000000000000000000000000000000000000..e7deb9170c4524d793741445004290791244c74f Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/06\351\241\271\347\233\256\346\272\220\347\250\213\345\272\217/UI\347\225\214\351\235\242/\351\233\206\350\256\255\347\254\254\344\272\214\344\270\252\351\241\271\347\233\256(\347\224\265\345\255\220\345\225\206\345\237\216).rp" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/01\345\225\206\345\237\216\347\231\273\345\275\225\351\241\265.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/01\345\225\206\345\237\216\347\231\273\345\275\225\351\241\265.png" new file mode 100644 index 0000000000000000000000000000000000000000..916b53fbf8968cc4e71a5ef6f1a05f3e797c6c11 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/01\345\225\206\345\237\216\347\231\273\345\275\225\351\241\265.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/02\345\225\206\345\237\216\344\270\273\351\241\265.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/02\345\225\206\345\237\216\344\270\273\351\241\265.png" new file mode 100644 index 0000000000000000000000000000000000000000..e77626285ffab66a5405b39f0b21632587e06b95 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/02\345\225\206\345\237\216\344\270\273\351\241\265.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/03\345\225\206\345\237\216\347\232\204\351\246\226\351\241\265.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/03\345\225\206\345\237\216\347\232\204\351\246\226\351\241\265.png" new file mode 100644 index 0000000000000000000000000000000000000000..e77626285ffab66a5405b39f0b21632587e06b95 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/03\345\225\206\345\237\216\347\232\204\351\246\226\351\241\265.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/04\345\225\206\345\237\216\347\232\204\345\205\250\351\203\250\345\225\206\345\223\201\351\241\265.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/04\345\225\206\345\237\216\347\232\204\345\205\250\351\203\250\345\225\206\345\223\201\351\241\265.png" new file mode 100644 index 0000000000000000000000000000000000000000..26175416306f3c47befe2fb8bf89a978f0530154 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/04\345\225\206\345\237\216\347\232\204\345\205\250\351\203\250\345\225\206\345\223\201\351\241\265.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/05\345\225\206\345\237\216\347\232\204\345\205\263\344\272\216\346\210\221\344\273\254.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/05\345\225\206\345\237\216\347\232\204\345\205\263\344\272\216\346\210\221\344\273\254.png" new file mode 100644 index 0000000000000000000000000000000000000000..67eab51e2139446e717d21375f8036d7c7525f9c Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/05\345\225\206\345\237\216\347\232\204\345\205\263\344\272\216\346\210\221\344\273\254.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/06\345\225\206\345\223\201\350\257\246\346\203\205\351\241\265.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/06\345\225\206\345\223\201\350\257\246\346\203\205\351\241\265.png" new file mode 100644 index 0000000000000000000000000000000000000000..27565cc9789b4c28298eab3ba4748fac384db867 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/06\345\225\206\345\223\201\350\257\246\346\203\205\351\241\265.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/07\346\210\221\347\232\204\350\256\242\345\215\225.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/07\346\210\221\347\232\204\350\256\242\345\215\225.png" new file mode 100644 index 0000000000000000000000000000000000000000..3074a1baf59d333bcc636b2950eb1518fc468bfe Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/07\346\210\221\347\232\204\350\256\242\345\215\225.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/08\346\210\221\347\232\204\346\224\266\350\227\217.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/08\346\210\221\347\232\204\346\224\266\350\227\217.png" new file mode 100644 index 0000000000000000000000000000000000000000..7006d9bcc03d6bcab8868523d57bf22e318de31e Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/08\346\210\221\347\232\204\346\224\266\350\227\217.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/09\350\264\255\347\211\251\350\275\246.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/09\350\264\255\347\211\251\350\275\246.png" new file mode 100644 index 0000000000000000000000000000000000000000..57535ac2307ef920ce961605985c8418092f8f65 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/09\350\264\255\347\211\251\350\275\246.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/10\345\220\216\345\217\260\347\256\241\347\220\206\347\232\204\347\231\273\345\275\225\351\241\265\351\235\242.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/10\345\220\216\345\217\260\347\256\241\347\220\206\347\232\204\347\231\273\345\275\225\351\241\265\351\235\242.png" new file mode 100644 index 0000000000000000000000000000000000000000..9e11baa61bf1b72ba2bd1f39375c839016aca912 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/10\345\220\216\345\217\260\347\256\241\347\220\206\347\232\204\347\231\273\345\275\225\351\241\265\351\235\242.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/11\345\220\216\345\217\260\347\256\241\347\220\206\347\232\204\344\270\273\351\241\265.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/11\345\220\216\345\217\260\347\256\241\347\220\206\347\232\204\344\270\273\351\241\265.png" new file mode 100644 index 0000000000000000000000000000000000000000..559d846d1253f51404093eedd2d917423e6c1e03 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/11\345\220\216\345\217\260\347\256\241\347\220\206\347\232\204\344\270\273\351\241\265.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/12\344\273\252\350\241\250\347\233\230.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/12\344\273\252\350\241\250\347\233\230.png" new file mode 100644 index 0000000000000000000000000000000000000000..9bdeaabc4bad5a3ee93cd258d2b7140b7da2a2b1 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/12\344\273\252\350\241\250\347\233\230.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/13\344\276\233\345\272\224\345\225\206\347\256\241\347\220\206.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/13\344\276\233\345\272\224\345\225\206\347\256\241\347\220\206.png" new file mode 100644 index 0000000000000000000000000000000000000000..80f06c1c001e6ec18a8cfad9d3071e3dfaf29570 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/13\344\276\233\345\272\224\345\225\206\347\256\241\347\220\206.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/14\347\224\250\346\210\267\347\232\204\347\256\241\347\220\206.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/14\347\224\250\346\210\267\347\232\204\347\256\241\347\220\206.png" new file mode 100644 index 0000000000000000000000000000000000000000..ae4877747b14543b67798d22597cd56ca64a3122 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/14\347\224\250\346\210\267\347\232\204\347\256\241\347\220\206.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/15\345\225\206\345\223\201\347\256\241\347\220\206.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/15\345\225\206\345\223\201\347\256\241\347\220\206.png" new file mode 100644 index 0000000000000000000000000000000000000000..086f9770babeb7b4cefe67eec853009df93605d0 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/15\345\225\206\345\223\201\347\256\241\347\220\206.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/16\345\225\206\345\223\201\345\210\206\347\261\273.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/16\345\225\206\345\223\201\345\210\206\347\261\273.png" new file mode 100644 index 0000000000000000000000000000000000000000..3f5bf647e63115f53225e036778f0cd6e4a1b3ff Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/16\345\225\206\345\223\201\345\210\206\347\261\273.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/17\345\225\206\345\223\201\350\256\242\345\215\225.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/17\345\225\206\345\223\201\350\256\242\345\215\225.png" new file mode 100644 index 0000000000000000000000000000000000000000..f37a4f0303bc72a5ba3dd11f456538950d5ece77 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/17\345\225\206\345\223\201\350\256\242\345\215\225.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/18\344\276\233\345\272\224\345\225\206\347\256\241\347\220\206.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/18\344\276\233\345\272\224\345\225\206\347\256\241\347\220\206.png" new file mode 100644 index 0000000000000000000000000000000000000000..80f06c1c001e6ec18a8cfad9d3071e3dfaf29570 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/18\344\276\233\345\272\224\345\225\206\347\256\241\347\220\206.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/19\345\225\206\345\256\266\347\256\241\347\220\206.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/19\345\225\206\345\256\266\347\256\241\347\220\206.png" new file mode 100644 index 0000000000000000000000000000000000000000..9ed988b5df4601e3fe25df5b11c960bb2597d8ae Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/19\345\225\206\345\256\266\347\256\241\347\220\206.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/20\345\225\206\345\223\201\350\256\242\345\215\225.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/20\345\225\206\345\223\201\350\256\242\345\215\225.png" new file mode 100644 index 0000000000000000000000000000000000000000..8deff352c59dce5ddb8844a4cd71d532d61fdff3 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/20\345\225\206\345\223\201\350\256\242\345\215\225.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/21\346\224\257\344\273\230\346\226\271\345\274\217\351\200\211\346\213\251.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/21\346\224\257\344\273\230\346\226\271\345\274\217\351\200\211\346\213\251.png" new file mode 100644 index 0000000000000000000000000000000000000000..d9d87edff027ec093d95997acd51103557ba3ed3 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/21\346\224\257\344\273\230\346\226\271\345\274\217\351\200\211\346\213\251.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/22\346\224\257\344\273\230\345\210\227\350\241\250.png" "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/22\346\224\257\344\273\230\345\210\227\350\241\250.png" new file mode 100644 index 0000000000000000000000000000000000000000..e7cb18e146b763e73e204ea76138922fc8362e82 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/08\351\241\271\347\233\256\346\210\252\345\233\276/22\346\224\257\344\273\230\345\210\227\350\241\250.png" differ diff --git "a/\351\237\251\345\206\260\345\206\260/09\351\241\271\347\233\256\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246\357\274\210\351\241\271\347\233\256\346\211\213\345\206\214\357\274\211/~$\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246.docx" "b/\351\237\251\345\206\260\345\206\260/09\351\241\271\347\233\256\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246\357\274\210\351\241\271\347\233\256\346\211\213\345\206\214\357\274\211/~$\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246.docx" new file mode 100644 index 0000000000000000000000000000000000000000..05bbcd1ab2281546c6111895bdc4a8053fa66b30 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/09\351\241\271\347\233\256\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246\357\274\210\351\241\271\347\233\256\346\211\213\345\206\214\357\274\211/~$\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246.docx" differ diff --git "a/\351\237\251\345\206\260\345\206\260/09\351\241\271\347\233\256\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246\357\274\210\351\241\271\347\233\256\346\211\213\345\206\214\357\274\211/\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246.docx" "b/\351\237\251\345\206\260\345\206\260/09\351\241\271\347\233\256\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246\357\274\210\351\241\271\347\233\256\346\211\213\345\206\214\357\274\211/\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246.docx" new file mode 100644 index 0000000000000000000000000000000000000000..ea840c2d81c2d543caad846cb3a02297755950c2 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/09\351\241\271\347\233\256\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246\357\274\210\351\241\271\347\233\256\346\211\213\345\206\214\357\274\211/\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246.docx" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/Merchandise.http" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/Merchandise.http" index 9a31c0b083c3e575a8ecc4a5507244d6d11c937c..3d4030d96d54cd877d8019774c7bcfb9482abc84 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/Merchandise.http" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/Merchandise.http" @@ -8,7 +8,7 @@ Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hc Content-Type: application/json { - "data":"" + "data":"小" } ### 添加商品 @@ -17,14 +17,18 @@ Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hc Content-Type: application/json { - "Name":"重型装甲车003", - "Commodity_categoryId":1, - "MerchantId":1, //商家id - "Word":"给你一个安全的保障", + "Name":"坦克", + "Commodity_category":"", //分类 + "Merchant":"", //商家 + "Word":"大坦克", "Image":"", - "Attribute":"宽度", //属性 - "Attribute_value":"150cm", + "Attribute":"重量", //属性 + "Attribute_value":"15kg", "Inventory":2, //库存 "Price":99999999, "Msg":"" -} \ No newline at end of file +} + +### 根据id删除商品 +DELETE http://localhost:5000/Merchandise/1002 HTTP/1.1 +Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoidXUiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJhZG1pbiIsImV4cCI6MTYyOTI5NTkyMSwiaXNzIjoiamhnIn0.6bRmZTO_g3xIJRutrhbPRU54BjDIOlykRa1rHfWiym8 diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/.vscode/launch.json" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/.vscode/launch.json" new file mode 100644 index 0000000000000000000000000000000000000000..71bf1adfde808238711128e4b8e916d9e62500a8 --- /dev/null +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/.vscode/launch.json" @@ -0,0 +1,35 @@ +{ + "version": "0.2.0", + "configurations": [ + { + // Use IntelliSense to find out which attributes exist for C# debugging + // Use hover for the description of the existing attributes + // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md + "name": ".NET Core Launch (web)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + // If you have changed target frameworks, make sure to update the program path. + "program": "${workspaceFolder}/bin/Debug/net5.0/ShoppingCenter.Backend.sln.dll", + "args": [], + "cwd": "${workspaceFolder}", + "stopAtEntry": false, + // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser + "serverReadyAction": { + "action": "openExternally", + "pattern": "\\bNow listening on:\\s+(https?://\\S+)" + }, + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "sourceFileMap": { + "/Views": "${workspaceFolder}/Views" + } + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} \ No newline at end of file diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/.vscode/tasks.json" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/.vscode/tasks.json" new file mode 100644 index 0000000000000000000000000000000000000000..38387fb761c9102ebd751c3e728724d9b63b2742 --- /dev/null +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/.vscode/tasks.json" @@ -0,0 +1,42 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/ShoppingCenter.Backend.sln.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/ShoppingCenter.Backend.sln.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "${workspaceFolder}/ShoppingCenter.Backend.sln.csproj", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/AdminsController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/AdminsController.cs" index c7f847f5e04a7bafbf7eb6ee54505ab22689f9a3..55b8ac3c00b15106563c4e2f6968c165f15092fd 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/AdminsController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/AdminsController.cs" @@ -64,7 +64,7 @@ namespace ShoppingCenter.Backend.Api.Controllers return new { Code = 1000, - Data = new { Token = token, refreshToken = refreshToken,admin}, + Data = new { Token = token, refreshToken = refreshToken, admin }, Msg = "管理员登录成功^_^" }; } @@ -77,15 +77,17 @@ namespace ShoppingCenter.Backend.Api.Controllers var currentPage = int.Parse(Request.Query["currentPage"][0]); var pageSize = int.Parse(Request.Query["pageSize"][0]); + var admins = _adminRepository.Table.ToList(); + // 分页 - var admins = _adminRepository.Table.ToList().Skip((currentPage - 1) * pageSize).Take(pageSize); + var admin = admins.Skip((currentPage - 1) * pageSize).Take(pageSize); return new { Code = 1000, Data = new { - Data = admins, + Data = admin, Pager = new { currentPage, pageSize, totalSize = admins.Count() } }, Msg = "获取所有管理员成功" diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/CommentController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/CommentController.cs" index 04f4bcbdfd09ddc2c65450a4fcc8b231afd7627f..5a8f48392fe111e17c31a9f88b37af05e7a5ca28 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/CommentController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/CommentController.cs" @@ -12,7 +12,7 @@ using ShoppingCenter.Backend.Api.Utils; namespace ShoppingCenter.Backend.Api.Controllers { - [Authorize] + // [Authorize] [ApiController] [Route("[controller]")] @@ -36,7 +36,8 @@ namespace ShoppingCenter.Backend.Api.Controllers var pageSize = int.Parse(Request.Query["pageSize"][0]); // 分页 - var comments = _commentRepository.Table.ToList().Skip((currentPage - 1) * pageSize).Take(pageSize); ; + var comments = _commentRepository.Table.ToList(); + var comment=comments.Skip((currentPage - 1) * pageSize).Take(pageSize); ; return new @@ -44,7 +45,7 @@ namespace ShoppingCenter.Backend.Api.Controllers Code = 1000, Data = new { - Data = comments, + Data = comment, Pager = new { currentPage, pageSize, totalSize = comments.Count() } }, Msg = "获取所有商品评价成功" diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/CommodityCategoryController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/CommodityCategoryController.cs" index 199ad21a738b725d19549c29b899ef84cce38570..336a84399ed11a07f5fa57ecd8274b92dec96ada 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/CommodityCategoryController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/CommodityCategoryController.cs" @@ -12,7 +12,7 @@ using ShoppingCenter.Backend.Api.Utils; namespace ShoppingCenter.Backend.Api.Controllers { - [Authorize] + //[Authorize] [ApiController] [Route("[controller]")] @@ -29,25 +29,25 @@ namespace ShoppingCenter.Backend.Api.Controllers _commodityCategoryRepository = commodityCategoryRepository; } - - //获取所有商品分类 public dynamic Get() { - var currentPage = int.Parse(Request.Query["currentPage"][0]); var pageSize = int.Parse(Request.Query["pageSize"][0]); + var commodityCategorys = _commodityCategoryRepository.Table.ToList(); + // 分页 - var orders = _commodityCategoryRepository.Table.ToList().Skip((currentPage - 1) * pageSize).Take(pageSize); ; + var commodityCategoryPage = commodityCategorys.Skip((currentPage - 1) * pageSize).Take(pageSize); ; return new { Code = 1000, Data = new { - Data = orders, - Pager = new { currentPage, pageSize, totalSize = orders.Count() } + Data = commodityCategorys, + currentData = commodityCategoryPage, + Pager = new { currentPage, pageSize, totalSize = commodityCategorys.Count() } }, Msg = "获取所有商品分类成功" }; @@ -58,7 +58,8 @@ namespace ShoppingCenter.Backend.Api.Controllers public dynamic Post(CUR_CommodityCategory newCommodityCategory) { var commodityCategoryName = newCommodityCategory.Name.Trim(); - var ParentName = newCommodityCategory.ParentName.Trim(); + + var ParentName = string.IsNullOrEmpty(newCommodityCategory.ParentName) ? null : newCommodityCategory.ParentName; if (string.IsNullOrEmpty(commodityCategoryName)) { @@ -71,7 +72,7 @@ namespace ShoppingCenter.Backend.Api.Controllers } //如果没有父级分类 - if (string.IsNullOrEmpty(ParentName)) + if (ParentName == null) { var commodityCategory = new Commodity_category { @@ -172,6 +173,26 @@ namespace ShoppingCenter.Backend.Api.Controllers } + //批量删除子元素 + private void deleteChildren(List commodityCategory, int id) + { + + commodityCategory.ForEach(x => + { + //判断当前分类的id有没有子分类 + if (x.ParentCategoryId == id) + { + deleteChildren(commodityCategory, x.Id); + + //删除当前分类 + _commodityCategoryRepository.Delete(x.Id); + } + + + }); + } + + //根据id删除分类 [HttpDelete("{id}")] public dynamic Dalete(int id) @@ -191,6 +212,12 @@ namespace ShoppingCenter.Backend.Api.Controllers _commodityCategoryRepository.Delete(id); + //获取所有分类 + var commodityCategorys = _commodityCategoryRepository.Table.ToList(); + + + deleteChildren(commodityCategorys, id); + return new { Code = 1000, diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/FilesController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/FilesController.cs" index 6b743c39ec6fa212c3634cc548892b7059fd7270..8cdb72cd36adac1394e8685ff0ca4bd299c65bd6 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/FilesController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/FilesController.cs" @@ -14,7 +14,12 @@ namespace ShoppingCenter.Backend.Api.Controllers [Route("[controller]")] public class FilesController : ControllerBase { + + //商品封面图的地址 public static string url { get; set; } + + //支付方式二维码图的地址 + public static string payUrl { get; set; } private readonly IConfiguration _configuration; public FilesController(IConfiguration configuration) @@ -23,26 +28,26 @@ namespace ShoppingCenter.Backend.Api.Controllers } - // //获取商品封面图 - // [HttpGet("picPath")] - // public dynamic Get(string picUrl) - // { - // if (picUrl=="null"||picUrl==null) - // { - // return ""; - // } - // else - // { - // var image = System.IO.File.OpenRead(picUrl); - // return File(image, "image/jpeg"); - // } - // } + //获取商品封面图 + [HttpGet("picPath")] + public dynamic Get(string picUrl) + { + if (picUrl == "null" || picUrl == null) + { + return ""; + } + else + { + var image = System.IO.File.OpenRead(picUrl); + return File(image, "image/jpeg"); + } + } //获取商品详情图(富文本) - [HttpGet,Route("wangPicPath")] + [HttpGet, Route("wangPicPath")] public dynamic GetWangPicPath(string wangPicUrl) { - if (wangPicUrl=="null"||wangPicUrl==null) + if (wangPicUrl == "null" || wangPicUrl == null) { return ""; } @@ -54,60 +59,60 @@ namespace ShoppingCenter.Backend.Api.Controllers } - // /// - // /// 文件上传接口 - // /// - // /// - // /// - // [HttpPost, Route("uploadfiles")] - // public string UploadFiles(IFormCollection model) - // { - // // 获得当前应用所在的完整路径(绝对地址) - // var filePath = Directory.GetCurrentDirectory(); - - // // 通过配置文件获得存放文件的相对路径 - // string path = _configuration["UploadFilesPath"]; - - // // 最终存放文件的完整路径 - // var preFullPath = Path.Combine(filePath, path); - // // 如果路径不存在,则创建 - // if (!Directory.Exists(preFullPath)) - // { - // Directory.CreateDirectory(preFullPath); - // } - - // var resultPath = new List(); - // foreach (IFormFile file in model.Files) - // { - // if (file.Length > 0) - // { - // var fileName = file.FileName; - // var extName = fileName.Substring(fileName.LastIndexOf("."));//extName包含了“.” - // var tempPath = Path.Combine(path, Guid.NewGuid().ToString("N") + extName); - // using (var stream = new FileStream(Path.Combine(filePath, tempPath), FileMode.CreateNew))//Path.Combine(_env.WebRootPath, fileName) - // { - // file.CopyTo(stream); - - // } - - // // 此处地址可能带有两个反斜杠,虽然也能用,比较奇怪,统一转换成斜杠,这样在任何平台都有一样的表现 - // resultPath.Add(tempPath.Replace("\\", "/")); - // url = resultPath[0]; - // } - // } - - // var res = new - // { - // Code = 1000, - // Data = url, - // Msg = "封面图上传成功" - // }; - - // return JsonHelper.Serialize(res); - // } - - - /// + /// + /// 商品封面图上传接口 + /// + /// + /// + [HttpPost, Route("uploadfiles")] + public string UploadFiles(IFormCollection model) + { + // 获得当前应用所在的完整路径(绝对地址) + var filePath = Directory.GetCurrentDirectory(); + + // 通过配置文件获得存放文件的相对路径 + string path = _configuration["UploadFilesPath"]; + + // 最终存放文件的完整路径 + var preFullPath = Path.Combine(filePath, path); + // 如果路径不存在,则创建 + if (!Directory.Exists(preFullPath)) + { + Directory.CreateDirectory(preFullPath); + } + + var resultPath = new List(); + foreach (IFormFile file in model.Files) + { + if (file.Length > 0) + { + var fileName = file.FileName; + var extName = fileName.Substring(fileName.LastIndexOf("."));//extName包含了“.” + var tempPath = Path.Combine(path, Guid.NewGuid().ToString("N") + extName); + using (var stream = new FileStream(Path.Combine(filePath, tempPath), FileMode.CreateNew))//Path.Combine(_env.WebRootPath, fileName) + { + file.CopyTo(stream); + + } + + // 此处地址可能带有两个反斜杠,虽然也能用,比较奇怪,统一转换成斜杠,这样在任何平台都有一样的表现 + resultPath.Add(tempPath.Replace("\\", "/")); + url = resultPath[0]; + } + } + + var res = new + { + Code = 1000, + Data = url, + Msg = "封面图上传成功" + }; + + return JsonHelper.Serialize(res); + } + + + /// /// 商品详情图片上传接口(富文本) /// /// @@ -145,8 +150,8 @@ namespace ShoppingCenter.Backend.Api.Controllers } // 此处地址可能带有两个反斜杠,虽然也能用,比较奇怪,统一转换成斜杠,这样在任何平台都有一样的表现 - wangResultPath.Add(tempPath.Replace("\\", "/")); - + wangResultPath.Add(tempPath.Replace("\\", "/")); + } } @@ -154,7 +159,7 @@ namespace ShoppingCenter.Backend.Api.Controllers wangs.Add(new Wang { - Url = "http://localhost:5000/files/wangPicPath?wangPicUrl="+wangResultPath[0], + Url = "http://localhost:5000/files/wangPicPath?wangPicUrl=" + wangResultPath[0], Alt = "上传成功", // Href = "http://localhost:5000/files/wangPicPath?wangPicUrl="+Url }); @@ -172,6 +177,61 @@ namespace ShoppingCenter.Backend.Api.Controllers return res; } + + + + /// + /// 支付方式图上传接口 + /// + /// + /// + [HttpPost, Route("UploadPayment")] + public string UploadPayment(IFormCollection model) + { + // 获得当前应用所在的完整路径(绝对地址) + var filePath = Directory.GetCurrentDirectory(); + + // 通过配置文件获得存放文件的相对路径 + string path = _configuration["UploadFilesPath"]; + + // 最终存放文件的完整路径 + var preFullPath = Path.Combine(filePath, path); + // 如果路径不存在,则创建 + if (!Directory.Exists(preFullPath)) + { + Directory.CreateDirectory(preFullPath); + } + + var resultPath = new List(); + foreach (IFormFile file in model.Files) + { + if (file.Length > 0) + { + var fileName = file.FileName; + var extName = fileName.Substring(fileName.LastIndexOf("."));//extName包含了“.” + var tempPath = Path.Combine(path, Guid.NewGuid().ToString("N") + extName); + using (var stream = new FileStream(Path.Combine(filePath, tempPath), FileMode.CreateNew))//Path.Combine(_env.WebRootPath, fileName) + { + file.CopyTo(stream); + + } + + // 此处地址可能带有两个反斜杠,虽然也能用,比较奇怪,统一转换成斜杠,这样在任何平台都有一样的表现 + resultPath.Add(tempPath.Replace("\\", "/")); + payUrl = resultPath[0]; + } + } + + var res = new + { + Code = 1000, + Data = payUrl, + Msg = "支付方式图上传成功" + }; + + return JsonHelper.Serialize(res); + } + } } diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MallMsgController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MallMsgController.cs" index 3df48456095bb3b2ca5029b02651871ef1880d52..1232c1ec00aae07c336b813423b353f02cf37c97 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MallMsgController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MallMsgController.cs" @@ -12,7 +12,7 @@ using ShoppingCenter.Backend.Api.Utils; namespace ShoppingCenter.Backend.Api.Controllers { - [Authorize] + // [Authorize] [ApiController] [Route("[controller]")] @@ -36,14 +36,15 @@ namespace ShoppingCenter.Backend.Api.Controllers var pageSize = int.Parse(Request.Query["pageSize"][0]); // 分页 - var mallMsgs = _mallMsgRepository.Table.ToList().Skip((currentPage - 1) * pageSize).Take(pageSize); ; + var mallMsgs = _mallMsgRepository.Table.ToList(); + var mallMsg=mallMsgs.Skip((currentPage - 1) * pageSize).Take(pageSize); ; return new { Code = 1000, Data = new { - Data = mallMsgs, + Data = mallMsg, Pager = new { currentPage, pageSize, totalSize = mallMsgs.Count() } }, Msg = "获取所有商场成功" diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MerchandiseController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MerchandiseController.cs" index a02fabcacd91bde37e356bd726c270908d0cd7e2..f370923c4acbfeb02c18ce4b2615083f5a931393 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MerchandiseController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MerchandiseController.cs" @@ -14,7 +14,7 @@ using ShoppingCenter.Backend.Api.Utils; namespace ShoppingCenter.Backend.Api.Controllers { - [Authorize] + // [Authorize] [ApiController] [Route("[controller]")] @@ -67,8 +67,11 @@ namespace ShoppingCenter.Backend.Api.Controllers var currentPage = int.Parse(Request.Query["currentPage"][0]); var pageSize = int.Parse(Request.Query["pageSize"][0]); + + var merchandises = _merchandiseRepository.Table.ToList(); + // 分页 - var merchandise = _merchandiseRepository.Table.ToList().Skip((currentPage - 1) * pageSize).Take(pageSize); ; + var merchandise = merchandises.Skip((currentPage - 1) * pageSize).Take(pageSize); return new { @@ -76,7 +79,7 @@ namespace ShoppingCenter.Backend.Api.Controllers Data = new { Data = merchandise, - Pager = new { currentPage, pageSize, totalSize = merchandise.Count() } + Pager = new { currentPage, pageSize, totalSize = merchandises.Count() } }, Msg = "获取所有商品成功" }; @@ -89,6 +92,7 @@ namespace ShoppingCenter.Backend.Api.Controllers var querydata = queryMerchandise.data; + var details = _detailsRepository.Table.ToList(); var merchandise = _merchandiseRepository.Table.Where(x => x.Name.Contains(querydata)); var commodityCategory = _commodity_categoryRepository.Table.Where(x => x.Name == querydata).FirstOrDefault(); @@ -159,9 +163,10 @@ namespace ShoppingCenter.Backend.Api.Controllers }; } + //获取分类和商家 - var CommodityCategory = _commodity_categoryRepository.Table.Where(x => x.Id == newMerchandise.Commodity_categoryId).FirstOrDefault(); - var Merchant = _merchantRepository.Table.Where(x => x.Id == newMerchandise.MerchantId).FirstOrDefault(); + var CommodityCategory = _commodity_categoryRepository.Table.Where(x => x.Name == newMerchandise.Commodity_category).FirstOrDefault(); + var Merchant = _merchantRepository.Table.Where(x => x.Name == newMerchandise.Merchant).FirstOrDefault(); if (string.IsNullOrEmpty(MerchandiseName) || CommodityCategory == null || Merchant == null) { @@ -177,14 +182,14 @@ namespace ShoppingCenter.Backend.Api.Controllers var details = new Details { Word = newMerchandise.Word, - Image = newMerchandise.Image + Image = FilesController.url }; _detailsRepository.Insert(details); //获取查询到的商品详情id(获取最后一条详情的id) var detailsId = _detailsRepository.Table - .Where(x => x.Word == newMerchandise.Word && x.Image == newMerchandise.Image) + .Where(x => x.Word == newMerchandise.Word) .ToList() .LastOrDefault().Id; @@ -362,71 +367,53 @@ namespace ShoppingCenter.Backend.Api.Controllers } //根据id修改商品信息 - // [HttpPut("{id}")] - // public dynamic Put(int id, CUR_Merchandise updateMerchandise) - // { - // var MerchandiseName = updateMerchandise.Name.Trim(); - // var CommodityCategoryId=updateMerchandise.Commodity_categoryId; - // var DetailsId=updateMerchandise.DetailsId; - // var Msg=updateMerchandise.Msg; - - // if (string.IsNullOrEmpty(MerchandiseName) || CommodityCategoryId>0|| DetailsId>0) - // { - // return new - // { - // Code = 104, - // Data = "", - // Msg = "" - // }; - // } - - - // //通过Id获取要修改的管理员 - // var adminUpdate = _adminRepository.GetById(id); - - // if (adminUpdate == null) - // { - // return new - // { - // Code = 104, - // Data = "", - // Msg = "你要更新的管理员不存在" - // }; - // } - - // var u = _usersRepository.Table.Where(x => x.Name == username).ToList().FirstOrDefault(); - // var admin = _adminRepository.Table.Where(x => x.Name == username).ToList().FirstOrDefault(); - - // if (u != null || (admin!=null && admin.Id!=id)) - // { - // return new - // { - // Code = 104, - // Data = "", - // Msg = "当前用户名已存在,请换个用户名后重试" - // }; - // } - - // //将要修改的账号密码重新赋给Admin - // adminUpdate.Name = username; - // adminUpdate.Password = password; - // adminUpdate.Remarks = updateAdmin.Remarks; - - // return new - // { - // Code = 1000, - // Data = adminUpdate, - // Msg = "更新数据成功" - // }; - - // // return JsonHelper.Serialize(res); - - // } + [HttpPut("{id}")] + public dynamic Put(int id, CUR_Merchandise updateMerchandise) + { + var MerchandiseName = updateMerchandise.Name.Trim(); - //根据id删除商品 + if (string.IsNullOrEmpty(MerchandiseName)) + { + return new + { + Code = 104, + Data = "", + Msg = "当前商品名称不可为空" + }; + } + //通过Id获取要修改的商品名称 + var merchandiseUpdate = _merchandiseRepository.GetById(id); + if (merchandiseUpdate == null) + { + return new + { + Code = 104, + Data = "", + Msg = "你要更新的商品不存在" + }; + } + + merchandiseUpdate.Name = MerchandiseName; + + var details=_detailsRepository.Table.ToList(); + + _merchandiseRepository.Update(merchandiseUpdate); + + return new + { + Code = 1000, + Data = merchandiseUpdate, + Msg = "更新商品名称成功" + }; + + // return JsonHelper.Serialize(res); + + } + + //根据id删除商品 [HttpDelete("{id}")] public dynamic Dalete(int id) { diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MerchantController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MerchantController.cs" index 30788c10a6d68bd17dbdeead576205a5c9944f15..a2a922df7304830fd8ec89751d53ca346699ff28 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MerchantController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/MerchantController.cs" @@ -12,7 +12,7 @@ using ShoppingCenter.Backend.Api.Utils; namespace ShoppingCenter.Backend.Api.Controllers { - [Authorize] + // [Authorize] [ApiController] [Route("[controller]")] @@ -37,8 +37,11 @@ namespace ShoppingCenter.Backend.Api.Controllers var currentPage = int.Parse(Request.Query["currentPage"][0]); var pageSize = int.Parse(Request.Query["pageSize"][0]); - // 分页 - var merchants = _merchantRepository.Table.ToList().Skip((currentPage - 1) * pageSize).Take(pageSize); ; + + var merchants = _merchantRepository.Table.ToList(); + + // 分页 + var merchant=merchants.Skip((currentPage - 1) * pageSize).Take(pageSize); ; @@ -47,7 +50,7 @@ namespace ShoppingCenter.Backend.Api.Controllers Code = 1000, Data = new { - Data = merchants, + Data = merchant, Pager = new { currentPage, pageSize, totalSize = merchants.Count() } }, Msg = "获取所有商家成功" diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/OrdersController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/OrdersController.cs" index 2096c86fe6a1483d9cf0cd725583c9b085b8cc7c..3bb9d155042e09a56748dc8b7fd79f2f289034e1 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/OrdersController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/OrdersController.cs" @@ -12,7 +12,7 @@ using ShoppingCenter.Backend.Api.Utils; namespace ShoppingCenter.Backend.Api.Controllers { - [Authorize] + // [Authorize] [ApiController] [Route("[controller]")] @@ -43,8 +43,9 @@ namespace ShoppingCenter.Backend.Api.Controllers var currentPage = int.Parse(Request.Query["currentPage"][0]); var pageSize = int.Parse(Request.Query["pageSize"][0]); + var orders = _orderRepository.Table.ToList(); // 分页 - var orders = _orderRepository.Table.ToList().Skip((currentPage - 1) * pageSize).Take(pageSize); ; + var order = orders.Skip((currentPage - 1) * pageSize).Take(pageSize); ; return new diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/PayController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/PayController.cs" new file mode 100644 index 0000000000000000000000000000000000000000..91dfba4a86b1c8fc8543a1790fc4634531262e15 --- /dev/null +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/PayController.cs" @@ -0,0 +1,180 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Configuration; +using ShoppingCenter.Backend.Api.Model; +using ShoppingCenter.Backend.Api.Params; +using ShoppingCenter.Backend.Api.Repository; +using ShoppingCenter.Backend.Api.Utils; + +namespace ShoppingCenter.Backend.Api.Controllers +{ + // [Authorize] + [ApiController] + [Route("[controller]")] + + //支付控制器 + public class PayController : ControllerBase + { + private IConfiguration _configuration; + + // 支付方式 + IRepository _payRepository; + + + public PayController(IConfiguration configuration, IRepository payRepository) + { + _configuration = configuration; + _payRepository = payRepository; + } + + //获取所有 支付方式 + public dynamic Get() + { + + var currentPage = int.Parse(Request.Query["currentPage"][0]); + var pageSize = int.Parse(Request.Query["pageSize"][0]); + + var pays = _payRepository.Table.ToList(); + + // 分页 + var pay = pays.Skip((currentPage - 1) * pageSize).Take(pageSize); ; + + + return new + { + Code = 1000, + Data = new + { + Data = pays, + Pager = new { currentPage, pageSize, totalSize = pays.Count() } + }, + Msg = "获取所有支付方式成功" + }; + } + + + //添加支付方式 + [HttpPost] + public dynamic Post(CUR_Pay newPay) + { + var payName = newPay.payName.Trim(); + var payUrl = FilesController.payUrl; + + if (string.IsNullOrEmpty(payName) || string.IsNullOrEmpty(payUrl)) + { + + return new + { + Code = 104, + Data = "", + Msg = "支付或支付的二维码图不能为空" + }; + } + + var addPay = new Pay + { + WeChat = payName, + Alipay = payUrl, + }; + + + //将支付或支付的二维码图插入表中 + _payRepository.Insert(addPay); + + return new + { + Code = 1000, + Data = addPay, + Msg = "添加支付方式成功" + }; + + //将结果实例化后输出 + + } + + //修改支付方式 + [HttpPut("{id}")] + public dynamic Put(int id, CUR_Pay updatePay) + { + var payName = updatePay.payName.Trim(); + var payUrl = FilesController.payUrl; + + + if (string.IsNullOrEmpty(payName) || string.IsNullOrEmpty(payUrl)) + { + return new + { + Code = 104, + Data = "", + Msg = "支付或支付的二维码图不能为空" + }; + } + + + //通过Id获取要修改的支付方式 + var payUpdate = _payRepository.GetById(id); + + if (payUpdate == null) + { + return new + { + Code = 104, + Data = "", + Msg = "你要更新的支付方式不存在" + }; + } + + + + //将要修改的支付类型名称和图片重新赋给pay + payUpdate.WeChat = updatePay.payName; + payUpdate.Alipay = payUrl; + + + //更新数据 + _payRepository.Update(payUpdate); + + return new + { + Code = 1000, + Data = payUpdate, + Msg = "更新支付方式成功" + }; + + // return JsonHelper.Serialize(res); + + } + + + //根据id删除支付方式 + [HttpDelete("{id}")] + public dynamic Dalete(int id) + { + + var pay = _payRepository.GetById(id); + + if (pay == null) + { + return new + { + Code = 104, + Data = "", + Msg = string.Format("无法删除id为{0}的支付方式", id) + }; + } + + _payRepository.Delete(id); + + return new + { + Code = 1000, + Data = "", + Msg = "删除当前支付方式成功" + }; + } + } +} \ No newline at end of file diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/ShoppingCartsController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/ShoppingCartsController.cs" index 70a9ecf81196edb9708dc1617aedd824608f4ed2..c3be90068d46977c84bd86c35161ff9ec209bc00 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/ShoppingCartsController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/ShoppingCartsController.cs" @@ -12,7 +12,7 @@ using ShoppingCenter.Backend.Api.Utils; namespace ShoppingCenter.Backend.Api.Controllers { - [Authorize] + // [Authorize] [ApiController] [Route("[controller]")] @@ -37,15 +37,16 @@ namespace ShoppingCenter.Backend.Api.Controllers var currentPage = int.Parse(Request.Query["currentPage"][0]); var pageSize = int.Parse(Request.Query["pageSize"][0]); + var shoppingCarts = _shoppingCartRepository.Table.ToList(); // 分页 - var shoppingCarts = _shoppingCartRepository.Table.ToList().Skip((currentPage - 1) * pageSize).Take(pageSize); ; + var shoppingCart=shoppingCarts.ToList().Skip((currentPage - 1) * pageSize).Take(pageSize); ; return new { Code = 1000, Data = new { - Data = shoppingCarts, + Data = shoppingCart, Pager = new { currentPage, pageSize, totalSize = shoppingCarts.Count() } }, Msg = "获取所有用户的购物车成功" diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/SpecificationsController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/SpecificationsController.cs" index a5bacdfe1697e9d9d9a05f879884a699e597eda6..1787cd53c9221f196cb532fa4ae1f5f481a335b0 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/SpecificationsController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/SpecificationsController.cs" @@ -14,7 +14,7 @@ using ShoppingCenter.Backend.Api.Utils; namespace ShoppingCenter.Backend.Api.Controllers { - [Authorize] + // [Authorize] [ApiController] [Route("[controller]")] @@ -49,27 +49,78 @@ namespace ShoppingCenter.Backend.Api.Controllers var shopingDb = new ShoppingCenterDb(); // 分页 - var specifications = shopingDb.Specifications.Include(x => x.Attribute).Include(x => x.Attribute_value).ToList().Skip((currentPage - 1) * pageSize).Take(pageSize); ; - - + var specifications = shopingDb.Specifications.Include(x => x.Attribute).Include(x => x.Attribute_value).ToList(); + var specification=specifications.Skip((currentPage - 1) * pageSize).Take(pageSize); return new { Code = 1000, Data = new { - Data = specifications, + Data = specification, Pager = new { currentPage, pageSize, totalSize = specifications.Count() } }, Msg = "获取规格表成功" }; } + + //根据商品id获取指定规格 + [HttpGet("{merchandiseId}")] + public dynamic Get(int merchandiseId) + { + var Attribute = _attributeRepository.Table.ToList(); + var attributeValue = _attributeValueRepository.Table.ToList(); + + // 根据商品id获取指定规格 + var specifications = _specificationsRepository.Table.Where(x => x.MerchandiseId == merchandiseId); + + + return new + { + Code = 1000, + Data = specifications, + Msg = "获取当前规格成功" + }; + } + + //获取所有属性 + [HttpGet, Route("Attribute")] + public dynamic GetAttribute() + { + + var Attributes = _attributeRepository.Table.ToList(); + + return new + { + Code = 1000, + Data = Attributes, + Msg = "获取所有属性成功" + }; + } + //获取所有属性值 + [HttpGet, Route("AttributeValue")] + public dynamic GetAttributeValue() + { + + var attributesValue = _attributeValueRepository.Table.ToList(); + + return new + { + Code = 1000, + Data = attributesValue, + Msg = "获取所有属性值成功" + }; + } + + + + //添加属性 [HttpPost, Route("addAttribute")] public dynamic AddAttribute(CUR_Specifications newSpecifications) { - var Attribute = _attributeRepository.Table.Where(x => x.Name == newSpecifications.Attribute); + var Attribute = _attributeRepository.Table.Where(x => x.Name == newSpecifications.Attribute).FirstOrDefault(); if (Attribute == null) { @@ -164,16 +215,133 @@ namespace ShoppingCenter.Backend.Api.Controllers var attribute = _attributeRepository.Table.Where(x => x.Name == newSpecifications.Attribute).FirstOrDefault(); var attributeValue = _attributeValueRepository.Table.Where(x => x.Name == newSpecifications.Attribute_value).FirstOrDefault(); - if (attribute == null || attributeValue == null) + //如果属性和属性值都为空 + if (attribute == null && attributeValue == null) { + //将属性添加到对应的表中 + var att = new Model.Attribute + { + Name = newSpecifications.Attribute + }; + + //将属性值添加到对应的表中 + var attValue = new Attribute_value + { + Name = newSpecifications.Attribute_value + }; + + _attributeRepository.Insert(att); + _attributeValueRepository.Insert(attValue); + + // 获取刚刚插入的属性id + var attributeId = _attributeRepository.Table + .Where(x => x.Name == newSpecifications.Attribute) + .ToList() + .LastOrDefault().Id; + + //获取刚刚插入的属性值id + var attributeValueId = _attributeValueRepository.Table + .Where(x => x.Name == newSpecifications.Attribute_value) + .ToList() + .LastOrDefault().Id; + + // 插入规格表 + var spec001 = new Specifications + { + AttributeId = attributeId, + Attribute_valueId = attributeValueId, + MerchandiseId = merchandiseId, + Inventory = newSpecifications.Inventory, + Price = newSpecifications.Price + }; + + _specificationsRepository.Insert(spec001); + return new { Code = 1000, - Data = "", - Msg = "当前的属性或属性值不存在,请去分类参数添加商品属性或属性值" + Data = spec001, + Msg = "添加规格成功" + }; + + + } + + if (attribute == null) + { + //将属性添加到对应的表中 + var att = new Model.Attribute + { + Name = newSpecifications.Attribute + }; + + _attributeRepository.Insert(att); + + // 获取刚刚插入的属性id + var attributeId = _attributeRepository.Table + .Where(x => x.Name == newSpecifications.Attribute) + .ToList() + .LastOrDefault().Id; + + // 插入规格表 + var spec001 = new Specifications + { + AttributeId = attributeId, + Attribute_valueId = attributeValue.Id, + MerchandiseId = merchandiseId, + Inventory = newSpecifications.Inventory, + Price = newSpecifications.Price + }; + + _specificationsRepository.Insert(spec001); + + return new + { + Code = 1000, + Data = spec001, + Msg = "添加规格成功" + }; + + } + + if (attributeValue == null) + { + //将属性值添加到对应的表中 + var attValue = new Attribute_value + { + Name = newSpecifications.Attribute_value + }; + + _attributeValueRepository.Insert(attValue); + + //获取刚刚插入的属性值id + var attributeValueId = _attributeValueRepository.Table + .Where(x => x.Name == newSpecifications.Attribute_value) + .ToList() + .LastOrDefault().Id; + + // 插入规格表 + var spec001 = new Specifications + { + AttributeId = attribute.Id, + Attribute_valueId = attributeValueId, + MerchandiseId = merchandiseId, + Inventory = newSpecifications.Inventory, + Price = newSpecifications.Price + }; + + _specificationsRepository.Insert(spec001); + + return new + { + Code = 1000, + Data = spec001, + Msg = "添加规格成功" }; } + //如果属性和属性值都不为空(表里都可以找到当前属性和值) + // 插入规格表 var spec = new Specifications { diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/SupplierController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/SupplierController.cs" index 4ae191c7a98e9b06cb12817f14ad3c80ec6baeb6..6eda99a918d26394b0f0b7653a7527cef397b3af 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/SupplierController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/SupplierController.cs" @@ -14,7 +14,7 @@ using ShoppingCenter.Backend.Api.Utils; namespace ShoppingCenter.Backend.Api.Controllers { - [Authorize] + // [Authorize] [ApiController] [Route("[controller]")] @@ -42,14 +42,15 @@ namespace ShoppingCenter.Backend.Api.Controllers var shopingDb = new ShoppingCenterDb(); // 分页 - var suppliers = shopingDb.Supplier.Include(x => x.Merchant).ToList().Skip((currentPage - 1) * pageSize).Take(pageSize); ; + var suppliers = shopingDb.Supplier.Include(x => x.Merchant).ToList(); + var supplier=suppliers.Skip((currentPage - 1) * pageSize).Take(pageSize); ; return new { Code = 1000, Data = new { - Data = suppliers, + Data = supplier, Pager = new { currentPage, pageSize, totalSize = suppliers.Count() } }, Msg = "获取所有供应商成功" diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/UsersController.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/UsersController.cs" index ed09fed6cd0010e1374b65b8511d5a8c4df1aef3..628734ef0b3745a11daa7a7f7cc5b629ce15899b 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/UsersController.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Controllers/UsersController.cs" @@ -82,7 +82,8 @@ namespace ShoppingCenter.Backend.Api.Controllers var pageSize = int.Parse(Request.Query["pageSize"][0]); // 分页 - var users = _usersRepository.Table.ToList().OrderBy(x => x.Id).Skip((currentPage - 1) * pageSize).Take(pageSize);; + var users = _usersRepository.Table.ToList().OrderBy(x => x.Id); + var user=users.Skip((currentPage - 1) * pageSize).Take(pageSize);; return new { diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Db/ShoppingCenterDb.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Db/ShoppingCenterDb.cs" index dbddd85fe33e1cc09dff82620560c00d113f1504..95401f4f738c8efc3fc8bb4cd2db4eca5e4978f4 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Db/ShoppingCenterDb.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Db/ShoppingCenterDb.cs" @@ -73,7 +73,7 @@ namespace ShoppingCenter.Backend.Api.Db protected override void OnConfiguring(DbContextOptionsBuilder builder) { - builder.UseSqlServer(@"server=.;database=shoppingCenter;uid=sa;pwd=1;"); + builder.UseSqlServer(@"server=.;database=ShoppingCenter;uid=sa;pwd=1"); } } } \ No newline at end of file diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Migrations/20210823151207_init.Designer.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Migrations/20210823151207_init.Designer.cs" new file mode 100644 index 0000000000000000000000000000000000000000..dae1bb4d1e4ded7bc934e12b7273c8b0a138b6b0 --- /dev/null +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Migrations/20210823151207_init.Designer.cs" @@ -0,0 +1,1128 @@ +// +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using ShoppingCenter.Backend.Api.Db; + +namespace ShoppingCenter.Backend.sln.Migrations +{ + [DbContext(typeof(ShoppingCenterDb))] + [Migration("20210823151207_init")] + partial class init + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("Relational:MaxIdentifierLength", 128) + .HasAnnotation("ProductVersion", "5.0.8") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Admin", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Password") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("Admins"); + + b.HasData( + new + { + Id = 1, + CreatedTime = "2021-08-23 23:12:06", + IsActived = true, + IsDeleted = false, + Name = "admin", + Password = "123", + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06" + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Attribute", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("Attribute"); + + b.HasData( + new + { + Id = 1, + CreatedTime = "2021-08-23 23:12:06", + IsActived = true, + IsDeleted = false, + Name = "颜色", + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06" + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Attribute_value", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("AttributeValue"); + + b.HasData( + new + { + Id = 1, + CreatedTime = "2021-08-23 23:12:06", + IsActived = true, + IsDeleted = false, + Name = "黄色", + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06" + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Broadcast_map", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("Address") + .HasColumnType("nvarchar(max)"); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("Broadcast_map"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Comment", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("Content") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("FromUserId") + .HasColumnType("int"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("MerchandiseId") + .HasColumnType("int"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("FromUserId"); + + b.HasIndex("MerchandiseId"); + + b.ToTable("Comments"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Commodity_category", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("GradeId") + .HasColumnType("int"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ParentCategoryId") + .HasColumnType("int"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("commodityCategory"); + + b.HasData( + new + { + Id = 1, + CreatedTime = "2021-08-23 23:12:06", + GradeId = 1, + IsActived = true, + IsDeleted = false, + Name = "军事武器", + ParentCategoryId = 0, + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06" + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Details", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("Image") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("Word") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("Details"); + + b.HasData( + new + { + Id = 1, + CreatedTime = "2021-08-23 23:12:06", + IsActived = true, + IsDeleted = false, + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06", + Word = "这是去过伊拉克战争的航空母舰,很顶" + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.MallMsg", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("ICP") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Logo") + .HasColumnType("nvarchar(max)"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PSR") + .HasColumnType("nvarchar(max)"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("MallMsg"); + + b.HasData( + new + { + Id = 1, + CreatedTime = "2021-08-23 23:12:06", + IsActived = true, + IsDeleted = false, + Name = "天狗商城", + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06" + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Merchandise", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("Commodity_categoryId") + .HasColumnType("int"); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("DetailsId") + .HasColumnType("int"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("MerchantId") + .HasColumnType("int"); + + b.Property("Msg") + .HasColumnType("nvarchar(max)"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("Commodity_categoryId"); + + b.HasIndex("DetailsId"); + + b.HasIndex("MerchantId"); + + b.ToTable("Merchandise"); + + b.HasData( + new + { + Id = 1, + Commodity_categoryId = 1, + CreatedTime = "2021-08-23 23:12:06", + DetailsId = 1, + IsActived = true, + IsDeleted = false, + MerchantId = 1, + Msg = "辽宁号超屌", + Name = "航空母舰", + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06" + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Merchant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("Merchant"); + + b.HasData( + new + { + Id = 1, + CreatedTime = "2021-08-23 23:12:06", + IsActived = true, + IsDeleted = false, + Name = "航空母舰网购旗舰店", + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06" + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Order", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsPay") + .HasColumnType("bit"); + + b.Property("MerchandiseId") + .HasColumnType("int"); + + b.Property("OrderNum") + .HasColumnType("int"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("MerchandiseId"); + + b.HasIndex("UserId"); + + b.ToTable("Orders"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Pay", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("Alipay") + .HasColumnType("nvarchar(max)"); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("WeChat") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("Pay"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Praise", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("FromUserId") + .HasColumnType("int"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsPraise") + .HasColumnType("bit"); + + b.Property("MerchandiseId") + .HasColumnType("int"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("FromUserId"); + + b.HasIndex("MerchandiseId"); + + b.ToTable("Praises"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Receiving_information", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("ConsigneeName") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("DetailedAddress") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Phone") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Receiving_address") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("receivingInformation"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Shopping_Cart", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("BuyNum") + .HasColumnType("int"); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("MerchandiseId") + .HasColumnType("int"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("MerchandiseId"); + + b.HasIndex("UserId"); + + b.ToTable("shoppingCarts"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Specifications", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("AttributeId") + .HasColumnType("int"); + + b.Property("Attribute_valueId") + .HasColumnType("int"); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("Inventory") + .HasColumnType("int"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("MerchandiseId") + .HasColumnType("int"); + + b.Property("Price") + .HasColumnType("int"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("AttributeId"); + + b.HasIndex("Attribute_valueId"); + + b.HasIndex("MerchandiseId"); + + b.ToTable("Specifications"); + + b.HasData( + new + { + Id = 1, + AttributeId = 1, + Attribute_valueId = 1, + CreatedTime = "2021-08-23 23:12:06", + Inventory = 2, + IsActived = true, + IsDeleted = false, + MerchandiseId = 1, + Price = 992300, + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06" + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Supplier", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("MerchantId") + .HasColumnType("int"); + + b.Property("Msg") + .HasColumnType("nvarchar(max)"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("MerchantId"); + + b.ToTable("Supplier"); + + b.HasData( + new + { + Id = 1, + CreatedTime = "2021-08-23 23:12:06", + IsActived = true, + IsDeleted = false, + MerchantId = 1, + Msg = "我这里啥都有", + Name = "楼下小黑", + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06" + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.User", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("Name") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Password") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.ToTable("Users"); + + b.HasData( + new + { + Id = 1, + CreatedTime = "2021-08-23 23:12:06", + IsActived = true, + IsDeleted = false, + Name = "uu", + Password = "123", + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06" + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.UserMsg", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); + + b.Property("CreatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("Gender") + .HasColumnType("nvarchar(max)"); + + b.Property("Himage") + .HasColumnType("nvarchar(max)"); + + b.Property("IsActived") + .HasColumnType("bit"); + + b.Property("IsDeleted") + .HasColumnType("bit"); + + b.Property("IsRestrict_login") + .HasColumnType("bit"); + + b.Property("Remarks") + .HasColumnType("nvarchar(max)"); + + b.Property("UpdatedTime") + .HasColumnType("nvarchar(max)"); + + b.Property("UserId") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("UserId"); + + b.ToTable("UserMsgs"); + + b.HasData( + new + { + Id = 1, + CreatedTime = "2021-08-23 23:12:06", + Gender = "男", + IsActived = true, + IsDeleted = false, + IsRestrict_login = false, + Remarks = "种子数据", + UpdatedTime = "2021-08-23 23:12:06", + UserId = 1 + }); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Comment", b => + { + b.HasOne("ShoppingCenter.Backend.Api.Model.User", "FromUser") + .WithMany("Comment") + .HasForeignKey("FromUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("ShoppingCenter.Backend.Api.Model.Merchandise", "Merchandise") + .WithMany("Comment") + .HasForeignKey("MerchandiseId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("FromUser"); + + b.Navigation("Merchandise"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Merchandise", b => + { + b.HasOne("ShoppingCenter.Backend.Api.Model.Commodity_category", "Commodity_category") + .WithMany("Merchandise") + .HasForeignKey("Commodity_categoryId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("ShoppingCenter.Backend.Api.Model.Details", "Details") + .WithMany("Merchandise") + .HasForeignKey("DetailsId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("ShoppingCenter.Backend.Api.Model.Merchant", "Merchant") + .WithMany("Merchandise") + .HasForeignKey("MerchantId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Commodity_category"); + + b.Navigation("Details"); + + b.Navigation("Merchant"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Order", b => + { + b.HasOne("ShoppingCenter.Backend.Api.Model.Merchandise", "Merchandise") + .WithMany("Order") + .HasForeignKey("MerchandiseId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("ShoppingCenter.Backend.Api.Model.User", "User") + .WithMany("Order") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Merchandise"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Praise", b => + { + b.HasOne("ShoppingCenter.Backend.Api.Model.User", "FromUser") + .WithMany("Praise") + .HasForeignKey("FromUserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("ShoppingCenter.Backend.Api.Model.Merchandise", "Merchandise") + .WithMany("Praise") + .HasForeignKey("MerchandiseId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("FromUser"); + + b.Navigation("Merchandise"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Receiving_information", b => + { + b.HasOne("ShoppingCenter.Backend.Api.Model.User", "User") + .WithMany("Receiving_information") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Shopping_Cart", b => + { + b.HasOne("ShoppingCenter.Backend.Api.Model.Merchandise", "Merchandise") + .WithMany("Shopping_Cart") + .HasForeignKey("MerchandiseId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("ShoppingCenter.Backend.Api.Model.User", "User") + .WithMany("Shopping_Cart") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Merchandise"); + + b.Navigation("User"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Specifications", b => + { + b.HasOne("ShoppingCenter.Backend.Api.Model.Attribute", "Attribute") + .WithMany("Specifications") + .HasForeignKey("AttributeId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("ShoppingCenter.Backend.Api.Model.Attribute_value", "Attribute_value") + .WithMany("Specifications") + .HasForeignKey("Attribute_valueId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.HasOne("ShoppingCenter.Backend.Api.Model.Merchandise", "Merchandise") + .WithMany("Specifications") + .HasForeignKey("MerchandiseId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Attribute"); + + b.Navigation("Attribute_value"); + + b.Navigation("Merchandise"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Supplier", b => + { + b.HasOne("ShoppingCenter.Backend.Api.Model.Merchant", "Merchant") + .WithMany("Supplier") + .HasForeignKey("MerchantId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Merchant"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.UserMsg", b => + { + b.HasOne("ShoppingCenter.Backend.Api.Model.User", "User") + .WithMany("UserMsg") + .HasForeignKey("UserId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("User"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Attribute", b => + { + b.Navigation("Specifications"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Attribute_value", b => + { + b.Navigation("Specifications"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Commodity_category", b => + { + b.Navigation("Merchandise"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Details", b => + { + b.Navigation("Merchandise"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Merchandise", b => + { + b.Navigation("Comment"); + + b.Navigation("Order"); + + b.Navigation("Praise"); + + b.Navigation("Shopping_Cart"); + + b.Navigation("Specifications"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.Merchant", b => + { + b.Navigation("Merchandise"); + + b.Navigation("Supplier"); + }); + + modelBuilder.Entity("ShoppingCenter.Backend.Api.Model.User", b => + { + b.Navigation("Comment"); + + b.Navigation("Order"); + + b.Navigation("Praise"); + + b.Navigation("Receiving_information"); + + b.Navigation("Shopping_Cart"); + + b.Navigation("UserMsg"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Migrations/20210823151207_init.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Migrations/20210823151207_init.cs" new file mode 100644 index 0000000000000000000000000000000000000000..154b5cec17daca9d123c4323e731e3362e281161 --- /dev/null +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Migrations/20210823151207_init.cs" @@ -0,0 +1,694 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace ShoppingCenter.Backend.sln.Migrations +{ + public partial class init : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Admins", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Name = table.Column(type: "nvarchar(max)", nullable: false), + Password = table.Column(type: "nvarchar(max)", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Admins", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Attribute", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Name = table.Column(type: "nvarchar(max)", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Attribute", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "AttributeValue", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Name = table.Column(type: "nvarchar(max)", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_AttributeValue", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Broadcast_map", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Address = table.Column(type: "nvarchar(max)", nullable: true), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Broadcast_map", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "commodityCategory", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Name = table.Column(type: "nvarchar(max)", nullable: false), + GradeId = table.Column(type: "int", nullable: false), + ParentCategoryId = table.Column(type: "int", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_commodityCategory", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Details", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Word = table.Column(type: "nvarchar(max)", nullable: true), + Image = table.Column(type: "nvarchar(max)", nullable: true), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Details", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "MallMsg", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Name = table.Column(type: "nvarchar(max)", nullable: false), + Logo = table.Column(type: "nvarchar(max)", nullable: true), + ICP = table.Column(type: "nvarchar(max)", nullable: true), + PSR = table.Column(type: "nvarchar(max)", nullable: true), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_MallMsg", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Merchant", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Name = table.Column(type: "nvarchar(max)", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Merchant", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Pay", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + WeChat = table.Column(type: "nvarchar(max)", nullable: true), + Alipay = table.Column(type: "nvarchar(max)", nullable: true), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Pay", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Users", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Name = table.Column(type: "nvarchar(max)", nullable: false), + Password = table.Column(type: "nvarchar(max)", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Users", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Merchandise", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Name = table.Column(type: "nvarchar(max)", nullable: false), + Commodity_categoryId = table.Column(type: "int", nullable: false), + DetailsId = table.Column(type: "int", nullable: false), + MerchantId = table.Column(type: "int", nullable: false), + Msg = table.Column(type: "nvarchar(max)", nullable: true), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Merchandise", x => x.Id); + table.ForeignKey( + name: "FK_Merchandise_commodityCategory_Commodity_categoryId", + column: x => x.Commodity_categoryId, + principalTable: "commodityCategory", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Merchandise_Details_DetailsId", + column: x => x.DetailsId, + principalTable: "Details", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Merchandise_Merchant_MerchantId", + column: x => x.MerchantId, + principalTable: "Merchant", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Supplier", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Name = table.Column(type: "nvarchar(max)", nullable: false), + Msg = table.Column(type: "nvarchar(max)", nullable: true), + MerchantId = table.Column(type: "int", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Supplier", x => x.Id); + table.ForeignKey( + name: "FK_Supplier_Merchant_MerchantId", + column: x => x.MerchantId, + principalTable: "Merchant", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "receivingInformation", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + UserId = table.Column(type: "int", nullable: false), + ConsigneeName = table.Column(type: "nvarchar(max)", nullable: false), + Receiving_address = table.Column(type: "nvarchar(max)", nullable: false), + DetailedAddress = table.Column(type: "nvarchar(max)", nullable: false), + Phone = table.Column(type: "nvarchar(max)", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_receivingInformation", x => x.Id); + table.ForeignKey( + name: "FK_receivingInformation_Users_UserId", + column: x => x.UserId, + principalTable: "Users", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "UserMsgs", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + UserId = table.Column(type: "int", nullable: false), + Himage = table.Column(type: "nvarchar(max)", nullable: true), + Gender = table.Column(type: "nvarchar(max)", nullable: true), + IsRestrict_login = table.Column(type: "bit", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_UserMsgs", x => x.Id); + table.ForeignKey( + name: "FK_UserMsgs_Users_UserId", + column: x => x.UserId, + principalTable: "Users", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Comments", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + MerchandiseId = table.Column(type: "int", nullable: false), + FromUserId = table.Column(type: "int", nullable: false), + Content = table.Column(type: "nvarchar(max)", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Comments", x => x.Id); + table.ForeignKey( + name: "FK_Comments_Merchandise_MerchandiseId", + column: x => x.MerchandiseId, + principalTable: "Merchandise", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Comments_Users_FromUserId", + column: x => x.FromUserId, + principalTable: "Users", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Orders", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + UserId = table.Column(type: "int", nullable: false), + MerchandiseId = table.Column(type: "int", nullable: false), + OrderNum = table.Column(type: "int", nullable: false), + IsPay = table.Column(type: "bit", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Orders", x => x.Id); + table.ForeignKey( + name: "FK_Orders_Merchandise_MerchandiseId", + column: x => x.MerchandiseId, + principalTable: "Merchandise", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Orders_Users_UserId", + column: x => x.UserId, + principalTable: "Users", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Praises", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + FromUserId = table.Column(type: "int", nullable: false), + MerchandiseId = table.Column(type: "int", nullable: false), + IsPraise = table.Column(type: "bit", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Praises", x => x.Id); + table.ForeignKey( + name: "FK_Praises_Merchandise_MerchandiseId", + column: x => x.MerchandiseId, + principalTable: "Merchandise", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Praises_Users_FromUserId", + column: x => x.FromUserId, + principalTable: "Users", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "shoppingCarts", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + UserId = table.Column(type: "int", nullable: false), + MerchandiseId = table.Column(type: "int", nullable: false), + BuyNum = table.Column(type: "int", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_shoppingCarts", x => x.Id); + table.ForeignKey( + name: "FK_shoppingCarts_Merchandise_MerchandiseId", + column: x => x.MerchandiseId, + principalTable: "Merchandise", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_shoppingCarts_Users_UserId", + column: x => x.UserId, + principalTable: "Users", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Specifications", + columns: table => new + { + Id = table.Column(type: "int", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Attribute_valueId = table.Column(type: "int", nullable: false), + AttributeId = table.Column(type: "int", nullable: false), + MerchandiseId = table.Column(type: "int", nullable: false), + Inventory = table.Column(type: "int", nullable: false), + Price = table.Column(type: "int", nullable: false), + IsActived = table.Column(type: "bit", nullable: false), + IsDeleted = table.Column(type: "bit", nullable: false), + CreatedTime = table.Column(type: "nvarchar(max)", nullable: true), + UpdatedTime = table.Column(type: "nvarchar(max)", nullable: true), + Remarks = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Specifications", x => x.Id); + table.ForeignKey( + name: "FK_Specifications_Attribute_AttributeId", + column: x => x.AttributeId, + principalTable: "Attribute", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Specifications_AttributeValue_Attribute_valueId", + column: x => x.Attribute_valueId, + principalTable: "AttributeValue", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + table.ForeignKey( + name: "FK_Specifications_Merchandise_MerchandiseId", + column: x => x.MerchandiseId, + principalTable: "Merchandise", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.InsertData( + table: "Admins", + columns: new[] { "Id", "CreatedTime", "IsActived", "IsDeleted", "Name", "Password", "Remarks", "UpdatedTime" }, + values: new object[] { 1, "2021-08-23 23:12:06", true, false, "admin", "123", "种子数据", "2021-08-23 23:12:06" }); + + migrationBuilder.InsertData( + table: "Attribute", + columns: new[] { "Id", "CreatedTime", "IsActived", "IsDeleted", "Name", "Remarks", "UpdatedTime" }, + values: new object[] { 1, "2021-08-23 23:12:06", true, false, "颜色", "种子数据", "2021-08-23 23:12:06" }); + + migrationBuilder.InsertData( + table: "AttributeValue", + columns: new[] { "Id", "CreatedTime", "IsActived", "IsDeleted", "Name", "Remarks", "UpdatedTime" }, + values: new object[] { 1, "2021-08-23 23:12:06", true, false, "黄色", "种子数据", "2021-08-23 23:12:06" }); + + migrationBuilder.InsertData( + table: "Details", + columns: new[] { "Id", "CreatedTime", "Image", "IsActived", "IsDeleted", "Remarks", "UpdatedTime", "Word" }, + values: new object[] { 1, "2021-08-23 23:12:06", null, true, false, "种子数据", "2021-08-23 23:12:06", "这是去过伊拉克战争的航空母舰,很顶" }); + + migrationBuilder.InsertData( + table: "MallMsg", + columns: new[] { "Id", "CreatedTime", "ICP", "IsActived", "IsDeleted", "Logo", "Name", "PSR", "Remarks", "UpdatedTime" }, + values: new object[] { 1, "2021-08-23 23:12:06", null, true, false, null, "天狗商城", null, "种子数据", "2021-08-23 23:12:06" }); + + migrationBuilder.InsertData( + table: "Merchant", + columns: new[] { "Id", "CreatedTime", "IsActived", "IsDeleted", "Name", "Remarks", "UpdatedTime" }, + values: new object[] { 1, "2021-08-23 23:12:06", true, false, "航空母舰网购旗舰店", "种子数据", "2021-08-23 23:12:06" }); + + migrationBuilder.InsertData( + table: "Users", + columns: new[] { "Id", "CreatedTime", "IsActived", "IsDeleted", "Name", "Password", "Remarks", "UpdatedTime" }, + values: new object[] { 1, "2021-08-23 23:12:06", true, false, "uu", "123", "种子数据", "2021-08-23 23:12:06" }); + + migrationBuilder.InsertData( + table: "commodityCategory", + columns: new[] { "Id", "CreatedTime", "GradeId", "IsActived", "IsDeleted", "Name", "ParentCategoryId", "Remarks", "UpdatedTime" }, + values: new object[] { 1, "2021-08-23 23:12:06", 1, true, false, "军事武器", 0, "种子数据", "2021-08-23 23:12:06" }); + + migrationBuilder.InsertData( + table: "Merchandise", + columns: new[] { "Id", "Commodity_categoryId", "CreatedTime", "DetailsId", "IsActived", "IsDeleted", "MerchantId", "Msg", "Name", "Remarks", "UpdatedTime" }, + values: new object[] { 1, 1, "2021-08-23 23:12:06", 1, true, false, 1, "辽宁号超屌", "航空母舰", "种子数据", "2021-08-23 23:12:06" }); + + migrationBuilder.InsertData( + table: "Supplier", + columns: new[] { "Id", "CreatedTime", "IsActived", "IsDeleted", "MerchantId", "Msg", "Name", "Remarks", "UpdatedTime" }, + values: new object[] { 1, "2021-08-23 23:12:06", true, false, 1, "我这里啥都有", "楼下小黑", "种子数据", "2021-08-23 23:12:06" }); + + migrationBuilder.InsertData( + table: "UserMsgs", + columns: new[] { "Id", "CreatedTime", "Gender", "Himage", "IsActived", "IsDeleted", "IsRestrict_login", "Remarks", "UpdatedTime", "UserId" }, + values: new object[] { 1, "2021-08-23 23:12:06", "男", null, true, false, false, "种子数据", "2021-08-23 23:12:06", 1 }); + + migrationBuilder.InsertData( + table: "Specifications", + columns: new[] { "Id", "AttributeId", "Attribute_valueId", "CreatedTime", "Inventory", "IsActived", "IsDeleted", "MerchandiseId", "Price", "Remarks", "UpdatedTime" }, + values: new object[] { 1, 1, 1, "2021-08-23 23:12:06", 2, true, false, 1, 992300, "种子数据", "2021-08-23 23:12:06" }); + + migrationBuilder.CreateIndex( + name: "IX_Comments_FromUserId", + table: "Comments", + column: "FromUserId"); + + migrationBuilder.CreateIndex( + name: "IX_Comments_MerchandiseId", + table: "Comments", + column: "MerchandiseId"); + + migrationBuilder.CreateIndex( + name: "IX_Merchandise_Commodity_categoryId", + table: "Merchandise", + column: "Commodity_categoryId"); + + migrationBuilder.CreateIndex( + name: "IX_Merchandise_DetailsId", + table: "Merchandise", + column: "DetailsId"); + + migrationBuilder.CreateIndex( + name: "IX_Merchandise_MerchantId", + table: "Merchandise", + column: "MerchantId"); + + migrationBuilder.CreateIndex( + name: "IX_Orders_MerchandiseId", + table: "Orders", + column: "MerchandiseId"); + + migrationBuilder.CreateIndex( + name: "IX_Orders_UserId", + table: "Orders", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_Praises_FromUserId", + table: "Praises", + column: "FromUserId"); + + migrationBuilder.CreateIndex( + name: "IX_Praises_MerchandiseId", + table: "Praises", + column: "MerchandiseId"); + + migrationBuilder.CreateIndex( + name: "IX_receivingInformation_UserId", + table: "receivingInformation", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_shoppingCarts_MerchandiseId", + table: "shoppingCarts", + column: "MerchandiseId"); + + migrationBuilder.CreateIndex( + name: "IX_shoppingCarts_UserId", + table: "shoppingCarts", + column: "UserId"); + + migrationBuilder.CreateIndex( + name: "IX_Specifications_Attribute_valueId", + table: "Specifications", + column: "Attribute_valueId"); + + migrationBuilder.CreateIndex( + name: "IX_Specifications_AttributeId", + table: "Specifications", + column: "AttributeId"); + + migrationBuilder.CreateIndex( + name: "IX_Specifications_MerchandiseId", + table: "Specifications", + column: "MerchandiseId"); + + migrationBuilder.CreateIndex( + name: "IX_Supplier_MerchantId", + table: "Supplier", + column: "MerchantId"); + + migrationBuilder.CreateIndex( + name: "IX_UserMsgs_UserId", + table: "UserMsgs", + column: "UserId"); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "Admins"); + + migrationBuilder.DropTable( + name: "Broadcast_map"); + + migrationBuilder.DropTable( + name: "Comments"); + + migrationBuilder.DropTable( + name: "MallMsg"); + + migrationBuilder.DropTable( + name: "Orders"); + + migrationBuilder.DropTable( + name: "Pay"); + + migrationBuilder.DropTable( + name: "Praises"); + + migrationBuilder.DropTable( + name: "receivingInformation"); + + migrationBuilder.DropTable( + name: "shoppingCarts"); + + migrationBuilder.DropTable( + name: "Specifications"); + + migrationBuilder.DropTable( + name: "Supplier"); + + migrationBuilder.DropTable( + name: "UserMsgs"); + + migrationBuilder.DropTable( + name: "Attribute"); + + migrationBuilder.DropTable( + name: "AttributeValue"); + + migrationBuilder.DropTable( + name: "Merchandise"); + + migrationBuilder.DropTable( + name: "Users"); + + migrationBuilder.DropTable( + name: "commodityCategory"); + + migrationBuilder.DropTable( + name: "Details"); + + migrationBuilder.DropTable( + name: "Merchant"); + } + } +} diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Attribute.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Attribute.cs" index 85619f2365095f2e295f53f94b8604b2d2d958cf..4162a76af2e6fa031de82cf2bddff2d5df1b4b5a 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Attribute.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Attribute.cs" @@ -7,7 +7,6 @@ namespace ShoppingCenter.Backend.Api.Model public class Attribute : BaseModel { public IEnumerable Specifications { get; set; } - [Required] public string Name { get; set; } } diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Attribute_value.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Attribute_value.cs" index 046d203f0d2b2e33c05ea0173739c35bbc226537..29987e9a9b0adea195b694ffd6feda31a9508557 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Attribute_value.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Attribute_value.cs" @@ -6,6 +6,7 @@ namespace ShoppingCenter.Backend.Api.Model public class Attribute_value : BaseModel { public IEnumerable Specifications { get; set; } + [Required] public string Name { get; set; } } diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Commodity_category.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Commodity_category.cs" index d567708f9e2f167cd64ac8a37da1990ff93ab9c6..d897c2c0de08cb1153b46d252c0c4141f68ae0a8 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Commodity_category.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Commodity_category.cs" @@ -13,5 +13,7 @@ namespace ShoppingCenter.Backend.Api.Model public int ParentCategoryId { get; set; } public IEnumerable Merchandise { get; set; } + + } } \ No newline at end of file diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/SeedData.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/SeedData.cs" index f9b5cef1b9aa4a4277f05fcfda5f96bafa3a21ca..32b0c67ebcc6505f6495725f50e718ccc6c15f71 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/SeedData.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/SeedData.cs" @@ -46,7 +46,7 @@ namespace ShoppingCenter.Backend.Api.Model { Id = 1, UserId = 1, - Gender="男", + Gender = "男", IsActived = true, IsDeleted = false, CreatedTime = currentData, @@ -160,7 +160,7 @@ namespace ShoppingCenter.Backend.Api.Model new Details { Id = 1, - Word="这是去过伊拉克战争的航空母舰,很顶", + Word = "这是去过伊拉克战争的航空母舰,很顶", IsActived = true, IsDeleted = false, CreatedTime = currentData, diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Specifications.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Specifications.cs" index d73d7318412123864dfb35b308a5c444279b323c..90fa8ffefa25f71e7e965ab8db7945fb5f49ed2b 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Specifications.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Model/Specifications.cs" @@ -11,7 +11,9 @@ namespace ShoppingCenter.Backend.Api.Model public virtual Attribute Attribute { get; set; } public int AttributeId { get; set; } + public virtual Merchandise Merchandise { get; set; } + //商品id public int MerchandiseId { get; set; } public int Inventory { get; set; } diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Params/CUR_Merchandise.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Params/CUR_Merchandise.cs" index 4d8a38ad76d6e4ea9ed1e8e7688388b809ec708b..a323bbcf4efab00a3e4f5c0b041b0f96eafc7e68 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Params/CUR_Merchandise.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Params/CUR_Merchandise.cs" @@ -4,11 +4,11 @@ namespace ShoppingCenter.Backend.Api.Params { public string Name { get; set; } - //商品类别ID - public int Commodity_categoryId { get; set; } + //商品类别 + public string Commodity_category { get; set; } - //商家Id - public int MerchantId { get; set; } + //商家 + public string Merchant { get; set; } //属性 public string Attribute { get; set; } diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Params/CUR_Pays.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Params/CUR_Pays.cs" new file mode 100644 index 0000000000000000000000000000000000000000..492c7d278c6db01d8afe0743709b61f12ddd6821 --- /dev/null +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/Params/CUR_Pays.cs" @@ -0,0 +1,13 @@ + +namespace ShoppingCenter.Backend.Api.Params +{ + public class CUR_Pay + { + // 支付名称 + public string payName { get; set; } + + // 支付方式图 + // public string Alipay { get; set; } + + } +} \ No newline at end of file diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/0b43d98837ec4382a5bdfddd9242a875.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/0b43d98837ec4382a5bdfddd9242a875.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..3a93720c76366210524288377b362816dc5da8cd Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/0b43d98837ec4382a5bdfddd9242a875.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/0c043597f1844418a0cb42f9f8f1fbbd.jpeg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/0c043597f1844418a0cb42f9f8f1fbbd.jpeg" new file mode 100644 index 0000000000000000000000000000000000000000..53b6ca2f9ac2370f52515bf534eb38da8d3aa16f Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/0c043597f1844418a0cb42f9f8f1fbbd.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/0ed946916b3e4cfd8d2f07b4c1fdf4a6.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/0ed946916b3e4cfd8d2f07b4c1fdf4a6.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..3a93720c76366210524288377b362816dc5da8cd Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/0ed946916b3e4cfd8d2f07b4c1fdf4a6.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/1c8c2e181524465a93e0082236e9fe0a.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/1c8c2e181524465a93e0082236e9fe0a.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a245dcf8bd284ea3d31efbdef6413d1ec8edd618 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/1c8c2e181524465a93e0082236e9fe0a.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/2180624bea0e40df8b1189981fb9d008.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/2180624bea0e40df8b1189981fb9d008.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..1c06b513395fd29dcf0db75e559f99a663c365f0 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/2180624bea0e40df8b1189981fb9d008.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/2229ac08da2c496eb004eae78284fa08.jpeg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/2229ac08da2c496eb004eae78284fa08.jpeg" new file mode 100644 index 0000000000000000000000000000000000000000..53b6ca2f9ac2370f52515bf534eb38da8d3aa16f Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/2229ac08da2c496eb004eae78284fa08.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/23cfacd95565486cb46de98045e8b9ac.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/23cfacd95565486cb46de98045e8b9ac.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a245dcf8bd284ea3d31efbdef6413d1ec8edd618 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/23cfacd95565486cb46de98045e8b9ac.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/355c1deafa1e4228b5db5e5e361e7bb0.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/355c1deafa1e4228b5db5e5e361e7bb0.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..26a0b8438e7867f6e8d8c241b663890be838f738 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/355c1deafa1e4228b5db5e5e361e7bb0.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/3779808da30142f79bc74559af30973e.jpeg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/3779808da30142f79bc74559af30973e.jpeg" new file mode 100644 index 0000000000000000000000000000000000000000..53b6ca2f9ac2370f52515bf534eb38da8d3aa16f Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/3779808da30142f79bc74559af30973e.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/3951bec13d9c46febdef9f3802d3389f.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/3951bec13d9c46febdef9f3802d3389f.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..709f06b117f6441d6ff64f5d52142691e0675aa6 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/3951bec13d9c46febdef9f3802d3389f.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/444bfb77ee93494fa4478ca503e5c059.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/444bfb77ee93494fa4478ca503e5c059.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..3a93720c76366210524288377b362816dc5da8cd Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/444bfb77ee93494fa4478ca503e5c059.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/4a25d6aaf23740e7850e00e75fbeb624.jpeg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/4a25d6aaf23740e7850e00e75fbeb624.jpeg" new file mode 100644 index 0000000000000000000000000000000000000000..d7a4ee94086c39bb952c792962c39cddfed03251 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/4a25d6aaf23740e7850e00e75fbeb624.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/52dabad25d6743ebb62454dae6b9e024.jpeg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/52dabad25d6743ebb62454dae6b9e024.jpeg" new file mode 100644 index 0000000000000000000000000000000000000000..d7a4ee94086c39bb952c792962c39cddfed03251 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/52dabad25d6743ebb62454dae6b9e024.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/54aeaff2076f413ba1c62c320a0d7603.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/54aeaff2076f413ba1c62c320a0d7603.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..59f8683a4bfd8f1035d46c747b1d93f4f301807e Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/54aeaff2076f413ba1c62c320a0d7603.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/619679f714a246b29669ed9d18a83e23.jpeg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/619679f714a246b29669ed9d18a83e23.jpeg" new file mode 100644 index 0000000000000000000000000000000000000000..d7a4ee94086c39bb952c792962c39cddfed03251 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/619679f714a246b29669ed9d18a83e23.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/65e6d777fc6c4486866fe10171b7c8f9.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/65e6d777fc6c4486866fe10171b7c8f9.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..709f06b117f6441d6ff64f5d52142691e0675aa6 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/65e6d777fc6c4486866fe10171b7c8f9.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/6ea4873a59824732a4653b9c0c3a4b80.jpeg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/6ea4873a59824732a4653b9c0c3a4b80.jpeg" new file mode 100644 index 0000000000000000000000000000000000000000..d7a4ee94086c39bb952c792962c39cddfed03251 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/6ea4873a59824732a4653b9c0c3a4b80.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/78c740f1219e492fbbded2763773b596.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/78c740f1219e492fbbded2763773b596.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..1c06b513395fd29dcf0db75e559f99a663c365f0 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/78c740f1219e492fbbded2763773b596.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/7c04bafafc634290b8139857909a4dce.jpeg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/7c04bafafc634290b8139857909a4dce.jpeg" new file mode 100644 index 0000000000000000000000000000000000000000..8098c4ae32b40640682d61d988cd00f4c05b3f40 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/7c04bafafc634290b8139857909a4dce.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/8b78f9d81b994c9cbb14f8e362387c3d.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/8b78f9d81b994c9cbb14f8e362387c3d.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..3a93720c76366210524288377b362816dc5da8cd Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/8b78f9d81b994c9cbb14f8e362387c3d.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/aff7d96e69f244c89c6eced44ce1850f.jpeg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/aff7d96e69f244c89c6eced44ce1850f.jpeg" new file mode 100644 index 0000000000000000000000000000000000000000..d7a4ee94086c39bb952c792962c39cddfed03251 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/aff7d96e69f244c89c6eced44ce1850f.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/b5c4c2040967458db7e80d6302b76c11.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/b5c4c2040967458db7e80d6302b76c11.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a245dcf8bd284ea3d31efbdef6413d1ec8edd618 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/b5c4c2040967458db7e80d6302b76c11.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/c04d9c0099654ea48fb67ffc8c4c2a9c.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/c04d9c0099654ea48fb67ffc8c4c2a9c.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..d5268e9ef7d2f475311c54db4634b264d7bfb9bd Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/c04d9c0099654ea48fb67ffc8c4c2a9c.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/db895b1d363647a0863aa7b30dabd121.jpeg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/db895b1d363647a0863aa7b30dabd121.jpeg" new file mode 100644 index 0000000000000000000000000000000000000000..2ff010c6fc7b3022592af8785ae855a2d4ae062b Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/db895b1d363647a0863aa7b30dabd121.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/eddbd823c71548509c85124ad8c3a3c6.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/eddbd823c71548509c85124ad8c3a3c6.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..05b0d75c413eaa58cda704ada90903e1dcdcebb8 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/eddbd823c71548509c85124ad8c3a3c6.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/ee9a359a55ee48fa946410259e54cabf.jpeg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/ee9a359a55ee48fa946410259e54cabf.jpeg" new file mode 100644 index 0000000000000000000000000000000000000000..53b6ca2f9ac2370f52515bf534eb38da8d3aa16f Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/ee9a359a55ee48fa946410259e54cabf.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/f7674e8925db447997b79db41ccccd02.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/f7674e8925db447997b79db41ccccd02.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a245dcf8bd284ea3d31efbdef6413d1ec8edd618 Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/f7674e8925db447997b79db41ccccd02.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/fe2d566bfc5c44a78f19748bb1263f6f.jpg" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/fe2d566bfc5c44a78f19748bb1263f6f.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..3a93720c76366210524288377b362816dc5da8cd Binary files /dev/null and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/UploadFiles/Images/fe2d566bfc5c44a78f19748bb1263f6f.jpg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ShoppingCenter.Backend.sln.dll" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ShoppingCenter.Backend.sln.dll" index 4aea3213ca9d3077f0318c07abe8ba0005ec96ff..84d627d4e2023a775d56a0e4c434e887c6a3c299 100644 Binary files "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ShoppingCenter.Backend.sln.dll" and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ShoppingCenter.Backend.sln.dll" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ShoppingCenter.Backend.sln.pdb" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ShoppingCenter.Backend.sln.pdb" index b5bc58bbee9157b29b1cc507221dbd695ee1be43..a2764934cf926159cec1e28aa083c3af9de53abd 100644 Binary files "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ShoppingCenter.Backend.sln.pdb" and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ShoppingCenter.Backend.sln.pdb" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ref/ShoppingCenter.Backend.sln.dll" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ref/ShoppingCenter.Backend.sln.dll" index 488768b7667a390b60f2344fa78a7f8f5c8e1caa..99c2f28f448d94386475d6b0d086a8b696e84786 100644 Binary files "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ref/ShoppingCenter.Backend.sln.dll" and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/bin/Debug/net5.0/ref/ShoppingCenter.Backend.sln.dll" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.AssemblyInfo.cs" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.AssemblyInfo.cs" index f35a7a013075a845a626e0617df01159e41e499e..8bc17e485ff63beb543f6e4b80ae0bd56769509c 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.AssemblyInfo.cs" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.AssemblyInfo.cs" @@ -1,10 +1,9 @@ //------------------------------------------------------------------------------ // -// 此代码由工具生成。 -// 运行时版本:4.0.30319.42000 +// This code was generated by a tool. // -// 对此文件的更改可能会导致不正确的行为,并且如果 -// 重新生成代码,这些更改将会丢失。 +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. // //------------------------------------------------------------------------------ @@ -19,5 +18,5 @@ using System.Reflection; [assembly: System.Reflection.AssemblyTitleAttribute("ShoppingCenter.Backend.sln")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] -// Generated by the MSBuild WriteCodeFragment class. +// 由 MSBuild WriteCodeFragment 类生成。 diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csproj.CoreCompileInputs.cache" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csproj.CoreCompileInputs.cache" index cfd2b77a033e95c17971d070d3185b912261e79c..cc16380b2f6bba88b87e5fa4bedc9e9097c5a333 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csproj.CoreCompileInputs.cache" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csproj.CoreCompileInputs.cache" @@ -1 +1 @@ -de33d48a38327d303b96516ee14f418150a33d92 +ddc1b05dd9bdec03b072a6e0d402ce0c791f452f diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csproj.FileListAbsolute.txt" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csproj.FileListAbsolute.txt" index a77cab183a34ca75227b8a198301f896db6f819b..47b238dc075fc8af22cc5f06775caa3f76285bff 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csproj.FileListAbsolute.txt" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csproj.FileListAbsolute.txt" @@ -193,81 +193,6 @@ C:\Users\Administrator\桌面\景衡光\ShoppingCenter.Backend\ShoppingCenter.Ba C:\Users\Administrator\桌面\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ref\ShoppingCenter.Backend.sln.dll C:\Users\Administrator\桌面\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.pdb C:\Users\Administrator\桌面\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.genruntimeconfig.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\ShoppingCenter.Backend.sln.exe -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\ShoppingCenter.Backend.sln.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.AspNetCore.Authentication.JwtBearer.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.AspNetCore.JsonPatch.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.EntityFrameworkCore.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.EntityFrameworkCore.Relational.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.Extensions.DependencyInjection.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.OpenApi.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Newtonsoft.Json.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Swashbuckle.AspNetCore.Swagger.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerGen.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Swashbuckle.AspNetCore.SwaggerUI.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\appsettings.Development.json -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\appsettings.json -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\ShoppingCenter.Backend.sln.deps.json -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\ShoppingCenter.Backend.sln.runtimeconfig.json -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\ShoppingCenter.Backend.sln.runtimeconfig.dev.json -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\ref\ShoppingCenter.Backend.sln.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\ShoppingCenter.Backend.sln.pdb -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Humanizer.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.Data.SqlClient.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.EntityFrameworkCore.Abstractions.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.EntityFrameworkCore.Design.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.EntityFrameworkCore.SqlServer.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.Identity.Client.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.IdentityModel.JsonWebTokens.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.IdentityModel.Logging.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.IdentityModel.Protocols.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Microsoft.IdentityModel.Tokens.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\Newtonsoft.Json.Bson.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\System.Configuration.ConfigurationManager.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\System.Diagnostics.DiagnosticSource.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\System.IdentityModel.Tokens.Jwt.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\System.Runtime.Caching.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\System.Security.Cryptography.ProtectedData.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\unix\lib\netcoreapp3.1\Microsoft.Data.SqlClient.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win\lib\netcoreapp3.1\Microsoft.Data.SqlClient.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win-arm\native\Microsoft.Data.SqlClient.SNI.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win-arm\native\Microsoft.Data.SqlClient.SNI.pdb -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win-arm64\native\Microsoft.Data.SqlClient.SNI.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win-arm64\native\Microsoft.Data.SqlClient.SNI.pdb -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win-x64\native\Microsoft.Data.SqlClient.SNI.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win-x64\native\Microsoft.Data.SqlClient.SNI.pdb -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win-x86\native\Microsoft.Data.SqlClient.SNI.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win-x86\native\Microsoft.Data.SqlClient.SNI.pdb -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win\lib\netstandard2.0\System.Runtime.Caching.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win\lib\netstandard2.0\System.Security.Cryptography.ProtectedData.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.csprojAssemblyReference.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.GeneratedMSBuildEditorConfig.editorconfig -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.AssemblyInfoInputs.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.AssemblyInfo.cs -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.csproj.CoreCompileInputs.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.MvcApplicationPartsAssemblyInfo.cs -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.MvcApplicationPartsAssemblyInfo.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\staticwebassets\ShoppingCenter.Backend.sln.StaticWebAssets.Manifest.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\staticwebassets\ShoppingCenter.Backend.sln.StaticWebAssets.xml -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\scopedcss\bundle\ShoppingCenter.Backend.sln.styles.css -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.RazorTargetAssemblyInfo.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.csproj.CopyComplete -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ref\ShoppingCenter.Backend.sln.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.pdb -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\景衡光\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.genruntimeconfig.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.csprojAssemblyReference.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.GeneratedMSBuildEditorConfig.editorconfig -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.AssemblyInfoInputs.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.AssemblyInfo.cs -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.csproj.CoreCompileInputs.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.MvcApplicationPartsAssemblyInfo.cs -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.MvcApplicationPartsAssemblyInfo.cache -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ref\ShoppingCenter.Backend.sln.dll -C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.pdb C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\appsettings.Development.json C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\appsettings.json C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\ShoppingCenter.Backend.sln.exe @@ -317,11 +242,21 @@ C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCente C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win-x86\native\Microsoft.Data.SqlClient.SNI.pdb C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win\lib\netstandard2.0\System.Runtime.Caching.dll C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\runtimes\win\lib\netstandard2.0\System.Security.Cryptography.ProtectedData.dll +C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.csprojAssemblyReference.cache +C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.AssemblyInfoInputs.cache +C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.AssemblyInfo.cs +C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.csproj.CoreCompileInputs.cache +C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.MvcApplicationPartsAssemblyInfo.cs +C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.MvcApplicationPartsAssemblyInfo.cache C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\staticwebassets\ShoppingCenter.Backend.sln.StaticWebAssets.Manifest.cache C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\staticwebassets\ShoppingCenter.Backend.sln.StaticWebAssets.xml C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\scopedcss\bundle\ShoppingCenter.Backend.sln.styles.css C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.RazorTargetAssemblyInfo.cache C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.csproj.CopyComplete +C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.dll +C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ref\ShoppingCenter.Backend.sln.dll +C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.pdb C:\Users\86180\Desktop\Shopping管理系统\shopping-center\鲁瀚\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\obj\Debug\net5.0\ShoppingCenter.Backend.sln.genruntimeconfig.cache D:\新建文件夹\shopping-center\韩冰冰\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\appsettings.Development.json D:\新建文件夹\shopping-center\韩冰冰\ShoppingCenter.Backend\ShoppingCenter.Backend.Api\bin\Debug\net5.0\appsettings.json diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csprojAssemblyReference.cache" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csprojAssemblyReference.cache" index 75940df840642780bc759ae85ef34644b32cf2d7..ec6baa6f91df9ec2bed0a91651b9bfee3aa720c8 100644 Binary files "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csprojAssemblyReference.cache" and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.csprojAssemblyReference.cache" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.dll" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.dll" index 4aea3213ca9d3077f0318c07abe8ba0005ec96ff..84d627d4e2023a775d56a0e4c434e887c6a3c299 100644 Binary files "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.dll" and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.dll" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.pdb" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.pdb" index b5bc58bbee9157b29b1cc507221dbd695ee1be43..a2764934cf926159cec1e28aa083c3af9de53abd 100644 Binary files "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.pdb" and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ShoppingCenter.Backend.sln.pdb" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/project.razor.json" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/project.razor.json" index cd6253e27453c01b0c2a57738068759d31e50889..984c01f31159f7dffdbfa960536c0af3667a8190 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/project.razor.json" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/project.razor.json" @@ -1,5 +1,5 @@ { - "FilePath": "c:\\Users\\86180\\Desktop\\Shopping管理系统\\shopping-center\\景衡光\\ShoppingCenter.Backend\\ShoppingCenter.Backend.Api\\ShoppingCenter.Backend.sln.csproj", + "FilePath": "c:\\Users\\Administrator\\桌面\\景衡光\\ShoppingCenter.Backend\\ShoppingCenter.Backend.Api\\ShoppingCenter.Backend.sln.csproj", "Configuration": { "ConfigurationName": "MVC-3.0", "LanguageVersion": "5.0", diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ref/ShoppingCenter.Backend.sln.dll" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ref/ShoppingCenter.Backend.sln.dll" index 488768b7667a390b60f2344fa78a7f8f5c8e1caa..99c2f28f448d94386475d6b0d086a8b696e84786 100644 Binary files "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ref/ShoppingCenter.Backend.sln.dll" and "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.Api/obj/Debug/net5.0/ref/ShoppingCenter.Backend.sln.dll" differ diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.http" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.http" index 14717b541ecbdfc5c922f5ce8dea3d3b4d4e7b98..aef1c33ac2c12dc63398cef437c9341f12f42608 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.http" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/ShoppingCenter.Backend.http" @@ -1,3 +1,4 @@ + ### 登录普通用户获取token POST http://localhost:5000/users/token HTTP/1.1 Content-Type: application/json @@ -75,13 +76,13 @@ Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hc GET http://localhost:5000/comment HTTP/1.1 Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoidXUiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJhZG1pbiIsImV4cCI6MTYyOTA1ODI5NywiaXNzIjoiamhnIn0.kAF1gOZLxXG3NR0KFDbg3VsekYFHFmwateFHlc4VjbI +### 获取所有订单 +GET http://localhost:5000/orders HTTP/1.1 +Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoidXUiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJhZG1pbiIsImV4cCI6MTYyOTI5NTkyMSwiaXNzIjoiamhnIn0.6bRmZTO_g3xIJRutrhbPRU54BjDIOlykRa1rHfWiym8 + ### 获取所有商品分类 GET http://localhost:5000/CommodityCategory HTTP/1.1 -Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoidXUiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJhZG1pbiIsImV4cCI6MTYyOTU3MTc5MCwiaXNzIjoiamhnIn0.HvpWksiIhpRN-nXCbrUIrRPjM99J_TY4dU0szw9kSG8 - -### 获取所有订单 -GET http://localhost:5000/orders HTTP/1.1 Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoidXUiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJhZG1pbiIsImV4cCI6MTYyOTI5NTkyMSwiaXNzIjoiamhnIn0.6bRmZTO_g3xIJRutrhbPRU54BjDIOlykRa1rHfWiym8 @@ -91,20 +92,18 @@ Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hc Content-Type: application/json { - "Name":"三星10x", - "ParentName":"手机" + "Name":"123", + "ParentName":"" } ###修改商品分类 PUT http://localhost:5000/CommodityCategory/6 HTTP/1.1 - -Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoidXUiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJhZG1pbiIsImV4cCI6MTYyOTI5NTkyMSwiaXNzIjoiamhnIn0.6bRmZTO_g3xIJRutrhbPRU54BjDIOlykRa1rHfWiym8 Content-Type: application/json { - "Name":"电子手表", + "name":"小米11", } ### 根据id删除商品分类 -DELETE http://localhost:5000/CommodityCategory/6 HTTP/1.1 +DELETE http://localhost:5000/CommodityCategory/2 HTTP/1.1 Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoidXUiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJhZG1pbiIsImV4cCI6MTYyOTI5NTkyMSwiaXNzIjoiamhnIn0.6bRmZTO_g3xIJRutrhbPRU54BjDIOlykRa1rHfWiym8 diff --git "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/Specifications.http" "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/Specifications.http" index 5d572ffbc402ab711a3e95c8b25e322d7c2d74e4..8b7321a9ea664912e76115f208fa76a2392db1e5 100644 --- "a/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/Specifications.http" +++ "b/\351\237\251\345\206\260\345\206\260/ShoppingCenter.Backend/Specifications.http" @@ -2,3 +2,36 @@ ### 获取所有规格 GET http://localhost:5000/Specifications HTTP/1.1 Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoidXUiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJhZG1pbiIsImV4cCI6MTYyOTMxNTM3MSwiaXNzIjoiamhnIn0.befNgUf_wGse0V692DhHPJkwm21zPb9NjG1YZK5vkBs + +### 获取指定商品的规格 +GET http://localhost:5000/Specifications/5 HTTP/1.1 +Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoidXUiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJhZG1pbiIsImV4cCI6MTYyOTMxNTM3MSwiaXNzIjoiamhnIn0.befNgUf_wGse0V692DhHPJkwm21zPb9NjG1YZK5vkBs + + +### 获取所有属性 +GET http://localhost:5000/Specifications/Attribute HTTP/1.1 + +### 获取所有属性值 +GET http://localhost:5000/Specifications/AttributeValue HTTP/1.1 + +### 添加属性 +Post http://localhost:5000/Specifications/addAttribute HTTP/1.1 +Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoidXUiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJhZG1pbiIsImV4cCI6MTYyOTI5NTkyMSwiaXNzIjoiamhnIn0.6bRmZTO_g3xIJRutrhbPRU54BjDIOlykRa1rHfWiym8 +Content-Type: application/json + +{ + "Attribute":"重量" +} + +### 添加规格 +Post http://localhost:5000/Specifications HTTP/1.1 +Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoidXUiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJhZG1pbiIsImV4cCI6MTYyOTI5NTkyMSwiaXNzIjoiamhnIn0.6bRmZTO_g3xIJRutrhbPRU54BjDIOlykRa1rHfWiym8 +Content-Type: application/json + +{ + "merchandiseId":2, + "Attribute":"长度", + "Attribute_value":"18cm", + "Inventory":9, + "Price":9999999 +} \ No newline at end of file diff --git "a/\351\237\251\345\206\260\345\206\260/back-end/router/routes.js" "b/\351\237\251\345\206\260\345\206\260/back-end/router/routes.js" index 22b1fcd7580b169ad69dbd98c5ce0d614bfcc4db..5783302517b347cf7e559206f2bf71a3a91ac8ec 100644 --- "a/\351\237\251\345\206\260\345\206\260/back-end/router/routes.js" +++ "b/\351\237\251\345\206\260\345\206\260/back-end/router/routes.js" @@ -207,30 +207,6 @@ let routes = [ ], }, - //网站管理 - { - path: '/websitemanagement', - component: Layout, - name: 'websitemanagement', - title: '网站管理', - meta: { - title: '网站管理', - icon: 'el-icon-connection' - }, - children: [ - { - path: 'websiteinformation', - title: '网站信息', - name: 'websiteinformation', - meta: { - title: '网站信息', - icon: 'el-icon-open' - }, - component: () => import('../src/views/websiteinformation.vue'), - }, - ], - }, - //登录 { path: '/login', diff --git "a/\351\237\251\345\206\260\345\206\260/back-end/src/api/productlist.js" "b/\351\237\251\345\206\260\345\206\260/back-end/src/api/productlist.js" new file mode 100644 index 0000000000000000000000000000000000000000..bf5e6ecdb58863767dbe6a6d5ab03b94bfa1e1e4 --- /dev/null +++ "b/\351\237\251\345\206\260\345\206\260/back-end/src/api/productlist.js" @@ -0,0 +1,13 @@ +// 引入导出的axios +import request from "../utils/request"; + + +//查询所有的商品信息 get请求 +export function getlistMerchandise(params) { + return request.get('/Merchandise', { params: params }) + } + + //新增商品 post请求 +export function addMerchandise(data) { + return request.post('/Merchandise', data) +} \ No newline at end of file diff --git "a/\351\237\251\345\206\260\345\206\260/back-end/src/api/qrcode.js" "b/\351\237\251\345\206\260\345\206\260/back-end/src/api/qrcode.js" index f1af7b2136149d9ba494ce100aea4aa10bd311c9..fcfcc04fad3b035a1966f277a91b76ade7d60fab 100644 --- "a/\351\237\251\345\206\260\345\206\260/back-end/src/api/qrcode.js" +++ "b/\351\237\251\345\206\260\345\206\260/back-end/src/api/qrcode.js" @@ -1,25 +1,23 @@ // 引入导出的axios import request from "../utils/request"; - //查询所有的qrcode信息 get请求 export function getList(params){ - return request.get('/qrcode',{params:params}) + return request.get('/Pay',{params:params}) } //新增 post请求 export function addqrcode(data){ - return request.post('/qrcode',data) + return request.post('/Pay',data) } //更改 put请求 export function modqrcode(id,data){ - return request.put(`/qrcode/${id}`,data) + return request.put(`/Pay/${id}`,data) } - //删除 delete请求 export function delqrcode(id){ - return request.delete(`/qrcode/${id}`) + return request.delete(`/Pay/${id}`) } diff --git "a/\351\237\251\345\206\260\345\206\260/back-end/src/api/specifications.js" "b/\351\237\251\345\206\260\345\206\260/back-end/src/api/specifications.js" new file mode 100644 index 0000000000000000000000000000000000000000..f9def5e30dd5af46cdf2911fb7b237c335f72ad5 --- /dev/null +++ "b/\351\237\251\345\206\260\345\206\260/back-end/src/api/specifications.js" @@ -0,0 +1,29 @@ +// 引入导出的axios +import request from "../utils/request"; + +//根据商品id获取规格信息 get请求 +export function getSpecificationsBymerchandiseId(merchandiseId) { + return request.get(`/specifications/${merchandiseId}`) +} + + +//获取属性 get请求 +export function getAttribute() { + return request.get(`/Specifications/Attribute`) +} + +//获取属性值 get请求 +export function getAttributeValue() { + return request.get(`/Specifications/AttributeValue`) +} + + +//新增属性请求 +export function addAttribute(data) { + return request.post('/specifications/addAttribute', data) +} + +//新增规格 +export function addSpecifications(data) { + return request.post('/Specifications', data) +} \ No newline at end of file diff --git "a/\351\237\251\345\206\260\345\206\260/\351\241\271\347\233\256\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246/\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246.docx" "b/\351\237\251\345\206\260\345\206\260/back-end/src/assets/1.jpeg" similarity index 30% rename from "\351\237\251\345\206\260\345\206\260/\351\241\271\347\233\256\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246/\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246.docx" rename to "\351\237\251\345\206\260\345\206\260/back-end/src/assets/1.jpeg" index 225af80874123d02a3cacd97f809611b1705bc72..473149f935b3f1d87d89ae38ce023d10a0626625 100644 Binary files "a/\351\237\251\345\206\260\345\206\260/\351\241\271\347\233\256\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246/\351\234\200\346\261\202\350\247\204\346\240\274\350\257\264\346\230\216\344\271\246.docx" and "b/\351\237\251\345\206\260\345\206\260/back-end/src/assets/1.jpeg" differ diff --git "a/\351\237\251\345\206\260\345\206\260/back-end/src/views/add.vue" "b/\351\237\251\345\206\260\345\206\260/back-end/src/views/add.vue" index 5341e92359f41e4f2ceaa0e402d5abef0df1b5ba..75be0ea040e4295ed5d59c2a6781e363eddfab9e 100644 --- "a/\351\237\251\345\206\260\345\206\260/back-end/src/views/add.vue" +++ "b/\351\237\251\345\206\260\345\206\260/back-end/src/views/add.vue" @@ -12,34 +12,61 @@ - + + + + + + + + + + + - + - + + + + + + + - - - - - - - + +
@@ -88,6 +115,9 @@ diff --git "a/\351\237\251\345\206\260\345\206\260/back-end/src/views/login.vue" "b/\351\237\251\345\206\260\345\206\260/back-end/src/views/login.vue" index 87da3e1ea0f972fcf25ac77da9f799be02937983..de9194c18d9d09b210ad6a8e38baa4f17375058a 100644 --- "a/\351\237\251\345\206\260\345\206\260/back-end/src/views/login.vue" +++ "b/\351\237\251\345\206\260\345\206\260/back-end/src/views/login.vue" @@ -103,12 +103,12 @@ export default { align-items: center; justify-content: center; height: 100vh; - /* background-image: url("../assets/14.jpg"); */ - background-color: rgba(255, 192, 203, 0.418); + background-image: url("../assets/1.jpeg"); + background-color: rgba(255, 192, 203, 0.212); } /* 背景框虚化 */ .el-card { - opacity: 0.7; + opacity: 0.6; } \ No newline at end of file diff --git "a/\351\237\251\345\206\260\345\206\260/back-end/src/views/paylist.vue" "b/\351\237\251\345\206\260\345\206\260/back-end/src/views/paylist.vue" index 4ade7388bcaf31ead337748e7f288b0694aa1d31..6bd3d8b5c591d1e811e369e73e088ee9535fbd18 100644 --- "a/\351\237\251\345\206\260\345\206\260/back-end/src/views/paylist.vue" +++ "b/\351\237\251\345\206\260\345\206\260/back-end/src/views/paylist.vue" @@ -21,18 +21,16 @@ + - + @@ -120,23 +122,8 @@ export default { currentAddresses: "http://localhost:5000", imageUrl: "", //初始化一些数据 - tableData: [ - { - id: 1, - typename: "微信支付", - isActived: true, - }, - { - id: 2, - typename: "QQ支付", - isActived: true, - }, - { - id: 3, - typename: "支付宝支付", - isActived: true, - }, - ], + tableData: [], + currentIndex: 0, dialogFormVisible: false, pager: { @@ -147,19 +134,32 @@ export default { }, formData: { id: 0, - username: "", - password: "", - remarks: "", - IsActived: this.isActived, + payName: "", + payUrl: "", + IsActived: true, }, msg: "", curIndex: 0, }; }, methods: { + //预览图片时 + handlePreview(file) { + console.log(file); + }, + //删除图片时 + handleRemove(file, fileList) { + console.log(file, fileList); + this.fileLength = 0; + + //显示上传按钮 + this.hiddenUploadBtn = false; + }, //文件上传成功 handleAvatarSuccess(res, file) { - this.imageUrl = URL.createObjectURL(file.raw); + this.formData.payUrl = URL.createObjectURL(file.raw); + this.imageUrl = this.formData.payUrl; + }, //文章上传前验证 beforeAvatarUpload(file) { @@ -188,13 +188,14 @@ export default { }, // 编辑 handleEdit(index, row) { - this.dialogFormVisible = true; this.formData.id = row.id; - this.formData.username = row.username; - this.formData.password = row.password; - this.formData.remarks = row.remarks; + this.dialogFormVisible = true; + this.formData.payName = row.weChat, + this.formData.payUrl = this.currentAddresses + "/files/picPath?picUrl=" + row.alipay, this.formData.IsActived = row.isActived; this.curIndex = index; + + console.log(this.formData); }, // 删除 handleDelete(index, row) { @@ -238,9 +239,9 @@ export default { handleadd() { this.dialogFormVisible = true; this.formData.id = 0; - this.formData.username = ""; - this.formData.password = ""; - this.formData.remarks = ""; + this.formData.payName = ""; + this.formData.payUrl = ""; + }, // 取消按钮 handleCancel() { @@ -250,8 +251,10 @@ export default { handleSave() { this.dialogFormVisible = false; console.log(this.formData); + //新增 if (this.formData.id === 0) { + console.log(this.formData); addqrcode(this.formData).then((res) => { console.log(res); this.tableData.push(res.data); @@ -298,18 +301,19 @@ export default { // }); }, }, - // computed: { - // uploadActionHeaders() { - // return { - // Authorization: "Bearer " + "token", - // }; - // }, - // uploadActionUrl() { - // let baseUrl = "http://localhost:5000"; - // let url = "/files/uploadfiles"; - // return baseUrl + url; - // }, - // }, + computed: { + uploadActionHeaders() { + return { + Authorization: "Bearer " + "token", + }; + }, + // 图片上传路径 + uploadActionUrl() { + let baseUrl = "http://localhost:5000"; + let url = "/files/UploadPayment"; + return baseUrl + url; + }, + }, created() { this.fetchData(); }, @@ -342,5 +346,9 @@ export default { height: 178px; display: block; } +img { + width: 178px; +} + diff --git "a/\351\237\251\345\206\260\345\206\260/back-end/src/views/productlist.vue" "b/\351\237\251\345\206\260\345\206\260/back-end/src/views/productlist.vue" index 9cfb444e7207d391c8696f691fb2ad4404410383..f5a63ec5e74b463231c92e45bd4d16203f591566 100644 --- "a/\351\237\251\345\206\260\345\206\260/back-end/src/views/productlist.vue" +++ "b/\351\237\251\345\206\260\345\206\260/back-end/src/views/productlist.vue" @@ -90,13 +90,7 @@ autocomplete="off" >
- - - +