├── .idea ├── .gitignore ├── compiler.xml ├── dataSources.xml ├── encodings.xml ├── jarRepositories.xml ├── libraries │ ├── Maven__ch_qos_logback_logback_classic_1_2_3.xml │ ├── Maven__ch_qos_logback_logback_core_1_2_3.xml │ ├── Maven__cn_hutool_hutool_all_5_7_20.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_11_3.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_11_3.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_11_3.xml │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_11_3.xml │ ├── Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_11_3.xml │ ├── Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_11_3.xml │ ├── Maven__com_github_virtuald_curvesapi_1_06.xml │ ├── Maven__com_google_code_gson_gson_2_8_6.xml │ ├── Maven__com_jayway_jsonpath_json_path_2_4_0.xml │ ├── Maven__com_qcloud_cos_api_5_6_89.xml │ ├── Maven__com_squareup_okhttp_logging_interceptor_2_7_5.xml │ ├── Maven__com_squareup_okhttp_okhttp_2_7_5.xml │ ├── Maven__com_squareup_okio_okio_1_12_0.xml │ ├── Maven__com_tencentcloudapi_tencentcloud_sdk_java_common_3_1_213.xml │ ├── Maven__com_tencentcloudapi_tencentcloud_sdk_java_kms_3_1_213.xml │ ├── Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml │ ├── Maven__com_zaxxer_HikariCP_3_4_5.xml │ ├── Maven__com_zaxxer_SparseBitSet_1_2.xml │ ├── Maven__commons_codec_commons_codec_1_14.xml │ ├── Maven__commons_logging_commons_logging_1_2.xml │ ├── Maven__io_jsonwebtoken_jjwt_0_9_1.xml │ ├── Maven__io_lettuce_lettuce_core_5_3_5_RELEASE.xml │ ├── Maven__io_netty_netty_buffer_4_1_55_Final.xml │ ├── Maven__io_netty_netty_codec_4_1_55_Final.xml │ ├── Maven__io_netty_netty_common_4_1_55_Final.xml │ ├── Maven__io_netty_netty_handler_4_1_55_Final.xml │ ├── Maven__io_netty_netty_resolver_4_1_55_Final.xml │ ├── Maven__io_netty_netty_transport_4_1_55_Final.xml │ ├── Maven__io_projectreactor_reactor_core_3_3_12_RELEASE.xml │ ├── Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml │ ├── Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml │ ├── Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml │ ├── Maven__javax_activation_activation_1_1.xml │ ├── Maven__javax_activation_javax_activation_api_1_2_0.xml │ ├── Maven__javax_mail_mail_1_4_7.xml │ ├── Maven__javax_xml_bind_jaxb_api_2_3_1.xml │ ├── Maven__joda_time_joda_time_2_9_9.xml │ ├── Maven__junit_junit_4_13_1.xml │ ├── Maven__mysql_mysql_connector_java_8_0_22.xml │ ├── Maven__net_bytebuddy_byte_buddy_1_10_18.xml │ ├── Maven__net_bytebuddy_byte_buddy_agent_1_10_18.xml │ ├── Maven__net_minidev_accessors_smart_1_2.xml │ ├── Maven__net_minidev_json_smart_2_3.xml │ ├── Maven__org_apache_commons_commons_collections4_4_4.xml │ ├── Maven__org_apache_commons_commons_compress_1_19.xml │ ├── Maven__org_apache_commons_commons_math3_3_6_1.xml │ ├── Maven__org_apache_httpcomponents_httpclient_4_5_13.xml │ ├── Maven__org_apache_httpcomponents_httpcore_4_4_14.xml │ ├── Maven__org_apache_logging_log4j_log4j_api_2_13_3.xml │ ├── Maven__org_apache_logging_log4j_log4j_to_slf4j_2_13_3.xml │ ├── Maven__org_apache_poi_poi_4_1_2.xml │ ├── Maven__org_apache_poi_poi_ooxml_4_1_2.xml │ ├── Maven__org_apache_poi_poi_ooxml_schemas_4_1_2.xml │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_41.xml │ ├── Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_41.xml │ ├── Maven__org_apache_xmlbeans_xmlbeans_3_1_0.xml │ ├── Maven__org_apiguardian_apiguardian_api_1_1_0.xml │ ├── Maven__org_assertj_assertj_core_3_16_1.xml │ ├── Maven__org_bouncycastle_bcprov_jdk15on_1_67.xml │ ├── Maven__org_glassfish_jakarta_el_3_0_3.xml │ ├── Maven__org_hamcrest_hamcrest_2_2.xml │ ├── Maven__org_hamcrest_hamcrest_core_2_2.xml │ ├── Maven__org_junit_jupiter_junit_jupiter_5_6_3.xml │ ├── Maven__org_junit_jupiter_junit_jupiter_api_5_6_3.xml │ ├── Maven__org_junit_jupiter_junit_jupiter_engine_5_6_3.xml │ ├── Maven__org_junit_jupiter_junit_jupiter_params_5_6_3.xml │ ├── Maven__org_junit_platform_junit_platform_commons_1_6_3.xml │ ├── Maven__org_junit_platform_junit_platform_engine_1_6_3.xml │ ├── Maven__org_mockito_mockito_core_3_3_3.xml │ ├── Maven__org_mockito_mockito_junit_jupiter_3_3_3.xml │ ├── Maven__org_mybatis_mybatis_3_5_9.xml │ ├── Maven__org_mybatis_mybatis_spring_2_0_7.xml │ ├── Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_2_2_2.xml │ ├── Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_2_2_2.xml │ ├── Maven__org_objenesis_objenesis_2_6.xml │ ├── Maven__org_opentest4j_opentest4j_1_2_0.xml │ ├── Maven__org_ow2_asm_asm_5_0_4.xml │ ├── Maven__org_projectlombok_lombok_1_18_16.xml │ ├── Maven__org_reactivestreams_reactive_streams_1_0_3.xml │ ├── Maven__org_skyscreamer_jsonassert_1_5_0.xml │ ├── Maven__org_slf4j_jul_to_slf4j_1_7_30.xml │ ├── Maven__org_slf4j_slf4j_api_1_7_30.xml │ ├── Maven__org_springframework_boot_spring_boot_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_autoconfigure_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_devtools_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_data_redis_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_jdbc_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_json_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_logging_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_test_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_tomcat_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_starter_web_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_test_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_3_7_RELEASE.xml │ ├── Maven__org_springframework_data_spring_data_commons_2_3_6_RELEASE.xml │ ├── Maven__org_springframework_data_spring_data_keyvalue_2_3_6_RELEASE.xml │ ├── Maven__org_springframework_data_spring_data_redis_2_3_6_RELEASE.xml │ ├── Maven__org_springframework_spring_aop_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_beans_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_context_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_context_support_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_core_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_expression_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_jcl_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_jdbc_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_oxm_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_test_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_tx_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_web_5_2_12_RELEASE.xml │ ├── Maven__org_springframework_spring_webmvc_5_2_12_RELEASE.xml │ ├── Maven__org_xmlunit_xmlunit_core_2_7_0.xml │ └── Maven__org_yaml_snakeyaml_1_26.xml ├── misc.xml ├── modules.xml ├── runConfigurations.xml ├── uiDesigner.xml └── vcs.xml ├── README.md ├── cakeshopspringboot.iml ├── cakeshopvue ├── .idea │ ├── .gitignore │ ├── cakeshopvue.iml │ ├── misc.xml │ ├── modules.xml │ ├── runConfigurations.xml │ └── vcs.xml ├── README.md ├── babel.config.js ├── package-lock.json ├── package.json ├── public │ ├── favicon.ico │ └── index.html └── src │ ├── App.vue │ ├── assets │ ├── bg.jpg │ ├── gloable.css │ ├── images │ │ ├── 8-2.jpg │ │ ├── bg.jpg │ │ ├── cakebg.jpg │ │ ├── l1.jpg │ │ ├── l2.jpg │ │ ├── l3.jpg │ │ ├── login.jpg │ │ └── recommand.png │ ├── logo.png │ └── picture │ │ ├── 1-1.jpg │ │ ├── 1-2.jpg │ │ ├── 1-3.jpg │ │ ├── 10-1.jpg │ │ ├── 10-2.jpg │ │ ├── 10-3.jpg │ │ ├── 11-1.jpg │ │ ├── 12-1.jpg │ │ ├── 12-2.jpg │ │ ├── 13-1.jpg │ │ ├── 14-1.jpg │ │ ├── 2-1.jpg │ │ ├── 2-2.jpg │ │ ├── 2-3.jpg │ │ ├── 3-1.jpg │ │ ├── 3-2.jpg │ │ ├── 3-3.jpg │ │ ├── 4-1.jpg │ │ ├── 4-2.jpg │ │ ├── 4-3.jpg │ │ ├── 5-1.jpg │ │ ├── 5-2.jpg │ │ ├── 5-3.jpg │ │ ├── 6-1.jpg │ │ ├── 6-2.jpg │ │ ├── 6-3.jpg │ │ ├── 7-1.jpg │ │ ├── 7-2.jpg │ │ ├── 7-3.jpg │ │ ├── 8-1.jpg │ │ ├── 8-2.jpg │ │ ├── 8-3.jpg │ │ ├── 9-1.jpg │ │ ├── 9-2.jpg │ │ └── 9-3.jpg │ ├── components │ ├── Aside.vue │ └── Header.vue │ ├── main.js │ ├── router │ └── index.js │ ├── store │ └── index.js │ ├── userview │ ├── Category.vue │ ├── Goods.vue │ ├── Index.vue │ ├── Layout.vue │ ├── Nav.vue │ ├── Order.vue │ ├── UserCenter.vue │ ├── UserHome.vue │ └── cart.vue │ ├── utils │ └── request.js │ └── views │ ├── About.vue │ ├── CateGoryAdmin.vue │ ├── Goods.vue │ ├── GoodsDetailsView.vue │ ├── Home.vue │ ├── Login.vue │ ├── Manage.vue │ ├── OrderListAdmin.vue │ ├── Register.vue │ ├── User.vue │ └── emailLogin.vue ├── pom.xml ├── sql └── cakeshop.sql └── src ├── main ├── java │ └── com │ │ └── cakeshopspringboot │ │ ├── CakeshopspringbootApplication.java │ │ ├── Interceptor │ │ ├── HandleInterceptor.java │ │ └── WebConfig.java │ │ ├── common │ │ ├── Constants.java │ │ └── Result.java │ │ ├── config │ │ └── CorsConfig.java │ │ ├── controller │ │ ├── CategoryController.java │ │ ├── GoodsController.java │ │ ├── OrderAdminController.java │ │ ├── OrderController.java │ │ ├── TypeController.java │ │ └── UserController.java │ │ ├── dao │ │ ├── GoodsDao.java │ │ ├── OrderAdminDao.java │ │ ├── OrderDao.java │ │ ├── TypeDao.java │ │ └── UserDao.java │ │ ├── entity │ │ ├── Goods.java │ │ ├── Order.java │ │ ├── OrderAdminVo.java │ │ ├── Type.java │ │ └── User.java │ │ ├── service │ │ ├── GoodsService.java │ │ ├── OrderAdminService.java │ │ ├── OrderService.java │ │ ├── TypeService.java │ │ ├── UserService.java │ │ └── impl │ │ │ ├── GoodsServiceImpl.java │ │ │ ├── OrderAdminServiceImpl.java │ │ │ ├── OrderServiceImpl.java │ │ │ ├── TypeServiceImpl.java │ │ │ └── UserServiceImpl.java │ │ ├── utils │ │ ├── EmailUtils.java │ │ ├── JWTUtils.java │ │ ├── cosClient.java │ │ └── uploadUtils.java │ │ └── vo │ │ ├── EmailVo.java │ │ ├── GoodsVo.java │ │ ├── OrderItemVo.java │ │ ├── OrderListVo.java │ │ ├── OrderVo.java │ │ ├── OrderVo1.java │ │ ├── PageVo.java │ │ ├── RegisterVo.java │ │ ├── UserLoginVo.java │ │ ├── UserVo.java │ │ └── gouwucheVo.java └── resources │ ├── application.properties │ └── mapper │ ├── GoodsMapper.xml │ ├── OrderMapper.xml │ └── UserMapper.xml └── test └── java └── com └── cakeshopspringboot └── CakeshopspringbootApplicationTests.java /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /.idea/dataSources.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | mysql.8 6 | true 7 | com.mysql.cj.jdbc.Driver 8 | jdbc:mysql://localhost:3306/cakeshop 9 | $ProjectFileDir$ 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__ch_qos_logback_logback_classic_1_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__ch_qos_logback_logback_core_1_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__cn_hutool_hutool_all_5_7_20.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_core_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_databind_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jdk8_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_datatype_jackson_datatype_jsr310_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_module_jackson_module_parameter_names_2_11_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_github_virtuald_curvesapi_1_06.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_google_code_gson_gson_2_8_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_jayway_jsonpath_json_path_2_4_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_qcloud_cos_api_5_6_89.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_squareup_okhttp_logging_interceptor_2_7_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_squareup_okhttp_okhttp_2_7_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_squareup_okio_okio_1_12_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_tencentcloudapi_tencentcloud_sdk_java_common_3_1_213.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_tencentcloudapi_tencentcloud_sdk_java_kms_3_1_213.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_zaxxer_HikariCP_3_4_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_zaxxer_SparseBitSet_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_codec_commons_codec_1_14.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_jsonwebtoken_jjwt_0_9_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_lettuce_lettuce_core_5_3_5_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_netty_netty_buffer_4_1_55_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_netty_netty_codec_4_1_55_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_netty_netty_common_4_1_55_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_netty_netty_handler_4_1_55_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_netty_netty_resolver_4_1_55_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_netty_netty_transport_4_1_55_Final.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__io_projectreactor_reactor_core_3_3_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_activation_jakarta_activation_api_1_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_annotation_jakarta_annotation_api_1_3_5.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jakarta_xml_bind_jakarta_xml_bind_api_2_3_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_activation_activation_1_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_activation_javax_activation_api_1_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_mail_mail_1_4_7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_xml_bind_jaxb_api_2_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__joda_time_joda_time_2_9_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__junit_junit_4_13_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__mysql_mysql_connector_java_8_0_22.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_bytebuddy_byte_buddy_1_10_18.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_bytebuddy_byte_buddy_agent_1_10_18.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_minidev_accessors_smart_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_minidev_json_smart_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_commons_commons_collections4_4_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_commons_commons_compress_1_19.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_commons_commons_math3_3_6_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_httpcomponents_httpclient_4_5_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_httpcomponents_httpcore_4_4_14.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_logging_log4j_log4j_api_2_13_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_logging_log4j_log4j_to_slf4j_2_13_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_poi_poi_4_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_poi_poi_ooxml_4_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_poi_poi_ooxml_schemas_4_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_core_9_0_41.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_tomcat_embed_tomcat_embed_websocket_9_0_41.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_xmlbeans_xmlbeans_3_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apiguardian_apiguardian_api_1_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_assertj_assertj_core_3_16_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_bouncycastle_bcprov_jdk15on_1_67.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_glassfish_jakarta_el_3_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hamcrest_hamcrest_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hamcrest_hamcrest_core_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_5_6_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_api_5_6_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_engine_5_6_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_jupiter_junit_jupiter_params_5_6_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_platform_junit_platform_commons_1_6_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_junit_platform_junit_platform_engine_1_6_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mockito_mockito_core_3_3_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mockito_mockito_junit_jupiter_3_3_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_mybatis_3_5_9.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_mybatis_spring_2_0_7.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_autoconfigure_2_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_spring_boot_mybatis_spring_boot_starter_2_2_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_objenesis_objenesis_2_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_opentest4j_opentest4j_1_2_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_ow2_asm_asm_5_0_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_projectlombok_lombok_1_18_16.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_reactivestreams_reactive_streams_1_0_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_skyscreamer_jsonassert_1_5_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_slf4j_jul_to_slf4j_1_7_30.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_slf4j_slf4j_api_1_7_30.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_autoconfigure_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_devtools_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_data_redis_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_jdbc_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_json_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_logging_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_test_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_tomcat_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_starter_web_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_test_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_boot_spring_boot_test_autoconfigure_2_3_7_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_data_spring_data_commons_2_3_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_data_spring_data_keyvalue_2_3_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_data_spring_data_redis_2_3_6_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_aop_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_beans_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_context_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_context_support_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_core_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_expression_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_jcl_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_jdbc_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_oxm_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_test_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_tx_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_web_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_webmvc_5_2_12_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_xmlunit_xmlunit_core_2_7_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_yaml_snakeyaml_1_26.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 项目所用技术:mysql,springboot,vue -------------------------------------------------------------------------------- /cakeshopvue/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /cakeshopvue/.idea/cakeshopvue.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /cakeshopvue/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /cakeshopvue/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cakeshopvue/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | -------------------------------------------------------------------------------- /cakeshopvue/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /cakeshopvue/README.md: -------------------------------------------------------------------------------- 1 | # cakeshopvue 2 | 3 | ## Project setup 4 | ``` 5 | npm install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | npm run serve 11 | ``` 12 | 13 | ### Compiles and minifies for production 14 | ``` 15 | npm run build 16 | ``` 17 | 18 | ### Customize configuration 19 | See [Configuration Reference](https://cli.vuejs.org/config/). 20 | -------------------------------------------------------------------------------- /cakeshopvue/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /cakeshopvue/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cakeshopvue", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build" 8 | }, 9 | "dependencies": { 10 | "axios": "^1.2.0", 11 | "core-js": "^3.6.5", 12 | "element-ui": "^2.15.12", 13 | "vue": "^2.6.11", 14 | "vue-router": "^3.2.0", 15 | "vuex": "^4.1.0" 16 | }, 17 | "devDependencies": { 18 | "@vue/cli-plugin-babel": "~4.5.15", 19 | "@vue/cli-plugin-router": "~4.5.15", 20 | "@vue/cli-service": "~4.5.15", 21 | "vue-template-compiler": "^2.6.11" 22 | }, 23 | "browserslist": [ 24 | "> 1%", 25 | "last 2 versions", 26 | "not dead" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /cakeshopvue/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/public/favicon.ico -------------------------------------------------------------------------------- /cakeshopvue/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | <%= htmlWebpackPlugin.options.title %> 9 | 10 | 11 | 14 |
15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /cakeshopvue/src/App.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 10 | -------------------------------------------------------------------------------- /cakeshopvue/src/assets/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/bg.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/gloable.css: -------------------------------------------------------------------------------- 1 | *{ 2 | margin: 0; 3 | padding: 0; 4 | box-sizing: border-box; 5 | } 6 | .ml-5 { 7 | margin-left: 5px; 8 | } 9 | .mr-5 { 10 | margin-right: 5px; 11 | } 12 | .pd-10 { 13 | padding: 10px 0; 14 | } -------------------------------------------------------------------------------- /cakeshopvue/src/assets/images/8-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/images/8-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/images/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/images/bg.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/images/cakebg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/images/cakebg.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/images/l1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/images/l1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/images/l2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/images/l2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/images/l3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/images/l3.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/images/login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/images/login.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/images/recommand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/images/recommand.png -------------------------------------------------------------------------------- /cakeshopvue/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/logo.png -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/1-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/1-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/1-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/1-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/1-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/1-3.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/10-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/10-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/10-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/10-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/10-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/10-3.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/11-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/11-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/12-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/12-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/12-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/12-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/13-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/13-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/14-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/14-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/2-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/2-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/2-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/2-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/2-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/2-3.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/3-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/3-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/3-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/3-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/3-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/3-3.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/4-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/4-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/4-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/4-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/4-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/4-3.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/5-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/5-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/5-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/5-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/5-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/5-3.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/6-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/6-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/6-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/6-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/6-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/6-3.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/7-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/7-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/7-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/7-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/7-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/7-3.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/8-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/8-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/8-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/8-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/8-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/8-3.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/9-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/9-1.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/9-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/9-2.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/assets/picture/9-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zwxl/cakeshop-Springboot-Vue/de4eabe520aefffb5621441c61e940f63811010f/cakeshopvue/src/assets/picture/9-3.jpg -------------------------------------------------------------------------------- /cakeshopvue/src/components/Aside.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 53 | 54 | 57 | -------------------------------------------------------------------------------- /cakeshopvue/src/components/Header.vue: -------------------------------------------------------------------------------- 1 | 29 | 30 | 101 | 102 | -------------------------------------------------------------------------------- /cakeshopvue/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | import router from './router' 4 | import ElementUI from 'element-ui'; 5 | import 'element-ui/lib/theme-chalk/index.css'; 6 | import './assets/gloable.css' 7 | import request from "@/utils/request"; 8 | import axios from 'axios' 9 | import store from "./store"; 10 | 11 | Vue.config.productionTip = false 12 | 13 | // 自定义格式化时间的全局过滤器 14 | Vue.filter('dataFormat', function(originVal) { 15 | const dt = new Date(originVal) 16 | const y = dt.getFullYear() 17 | const m = (dt.getMonth() + 1 + '').padStart(2, '0') 18 | const d = (dt.getDate() + '').padStart(2, '0') 19 | const hh = (dt.getHours() + '').padStart(2, '0') 20 | const mm = (dt.getMinutes() + '').padStart(2, '0') 21 | const ss = (dt.getSeconds() + '').padStart(2, '0') 22 | return `${y}-${m}-${d} ${hh}:${mm}:${ss}` 23 | }) 24 | Vue.prototype.$axios = axios 25 | Vue.use(ElementUI, { size: "mini" }); 26 | Vue.prototype.request=request 27 | new Vue({ 28 | router, 29 | store, 30 | axios, 31 | render: h => h(App) 32 | }).$mount('#app') -------------------------------------------------------------------------------- /cakeshopvue/src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VueRouter from 'vue-router' 3 | import Manage from '../views/Manage.vue' 4 | Vue.use(VueRouter) 5 | 6 | const routes = [ 7 | { 8 | path: '/manage', 9 | name: 'Manage', 10 | component: Manage, 11 | redirect:"/login", 12 | children:[ 13 | { 14 | path: '/home', 15 | component: () => import('../views/Home.vue') 16 | }, 17 | { 18 | path: '/user', 19 | name: '用户管理', 20 | component: () => import('../views/User.vue') 21 | }, 22 | { 23 | path: '/goods', 24 | name: '商品管理', 25 | component: () => import('../views/Goods.vue') 26 | }, 27 | { 28 | path: '/cateGoryAdmin', 29 | name: '商品分类', 30 | component: () => import('../views/CateGoryAdmin.vue'), 31 | }, 32 | { 33 | path: '/orderListAdmin', 34 | name: '订单管理', 35 | component: () => import('../views/OrderListAdmin.vue'), 36 | }, 37 | 38 | ] 39 | }, 40 | { 41 | path: '/about', 42 | name: 'About', 43 | component: () => import('../views/About.vue') 44 | }, 45 | { 46 | path: '/emailLogin', 47 | name: 'emailLogin', 48 | component: () => import('../views/emailLogin.vue') 49 | }, 50 | { 51 | path: '/register', 52 | name: 'Register', 53 | component: () => import('../views/Register.vue') 54 | }, 55 | { 56 | path: '/', 57 | name: 'Login', 58 | component: () => import('../views/Login.vue') 59 | }, 60 | { 61 | path: '/layout', 62 | name: 'Layout', 63 | component: () => import('../userview/Layout'), 64 | children: [ { 65 | path: '/userhome', 66 | name: 'UserHome', 67 | component: () => import('../userview/UserHome.vue'), 68 | }, 69 | { 70 | path: '/cart', 71 | name: 'Cart', 72 | component: () => import('../userview/cart.vue'), 73 | }, 74 | { 75 | path: '/order', 76 | name: 'Order', 77 | component: () => import('../userview/Order.vue'), 78 | }, 79 | { 80 | path: '/category', 81 | name: 'Category', 82 | component: () => import('../userview/Category.vue'), 83 | }, 84 | { 85 | path: '/goodsDetailsView', 86 | name: 'GoodsDetailsView', 87 | component: () => import('../views/GoodsDetailsView.vue'), 88 | }, 89 | ] 90 | }, 91 | { 92 | path: '/userCenter', 93 | name: 'UserCenter', 94 | component: () => import('../userview/UserCenter.vue'), 95 | }, 96 | ] 97 | 98 | const router = new VueRouter({ 99 | mode: 'history', 100 | base: process.env.BASE_URL, 101 | routes 102 | }) 103 | export default router 104 | -------------------------------------------------------------------------------- /cakeshopvue/src/store/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Vuex from 'vuex' 3 | 4 | Vue.use(Vuex) 5 | 6 | const store = new Vuex.Store({ 7 | state: { 8 | collapse: false 9 | }, 10 | mutations: { 11 | change (state) { 12 | console.log("gsdgfdfg") 13 | state.collapse = !state.collapse 14 | } 15 | } 16 | }) 17 | 18 | export default store -------------------------------------------------------------------------------- /cakeshopvue/src/userview/Category.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 80 | 81 | -------------------------------------------------------------------------------- /cakeshopvue/src/userview/Goods.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /cakeshopvue/src/userview/Layout.vue: -------------------------------------------------------------------------------- 1 | 7 | 8 | 17 | 18 | -------------------------------------------------------------------------------- /cakeshopvue/src/userview/Nav.vue: -------------------------------------------------------------------------------- 1 | 25 | 26 | 62 | 63 | -------------------------------------------------------------------------------- /cakeshopvue/src/userview/UserCenter.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 64 | 65 | -------------------------------------------------------------------------------- /cakeshopvue/src/userview/cart.vue: -------------------------------------------------------------------------------- 1 | 35 | 36 | 102 | 103 | -------------------------------------------------------------------------------- /cakeshopvue/src/utils/request.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios' 2 | 3 | const request = axios.create({ 4 | baseURL: '/api', 5 | timeout: 5000 6 | }) 7 | 8 | // request 拦截器 9 | // 可以自请求发送前对请求做一些处理 10 | // 比如统一加token,对请求参数统一加密 11 | request.interceptors.request.use(config => { 12 | config.headers['Content-Type'] = 'application/json;charset=utf-8'; 13 | 14 | // config.headers['token'] = user.token; // 设置请求头 15 | return config 16 | }, error => { 17 | return Promise.reject(error) 18 | }); 19 | 20 | // response 拦截器 21 | // 可以在接口响应后统一处理结果 22 | request.interceptors.response.use( 23 | response => { 24 | let res = response.data; 25 | // 如果是返回的文件 26 | if (response.config.responseType === 'blob') { 27 | return res 28 | } 29 | // 兼容服务端返回的字符串数据 30 | if (typeof res === 'string') { 31 | res = res ? JSON.parse(res) : res 32 | } 33 | return res; 34 | }, 35 | error => { 36 | console.log('err' + error) // for debug 37 | return Promise.reject(error) 38 | } 39 | ) 40 | 41 | 42 | export default request 43 | 44 | -------------------------------------------------------------------------------- /cakeshopvue/src/views/About.vue: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /cakeshopvue/src/views/CateGoryAdmin.vue: -------------------------------------------------------------------------------- 1 | 52 | 53 | 133 | 134 | -------------------------------------------------------------------------------- /cakeshopvue/src/views/Home.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 22 | 23 | -------------------------------------------------------------------------------- /cakeshopvue/src/views/Login.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | 79 | 80 | -------------------------------------------------------------------------------- /cakeshopvue/src/views/Manage.vue: -------------------------------------------------------------------------------- 1 | 30 | 31 | 63 | 64 | -------------------------------------------------------------------------------- /cakeshopvue/src/views/Register.vue: -------------------------------------------------------------------------------- 1 | 34 | 35 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /cakeshopvue/src/views/emailLogin.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 29 | 30 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/CakeshopspringbootApplication.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class CakeshopspringbootApplication { 8 | public static void main(String[] args) { 9 | SpringApplication.run(CakeshopspringbootApplication.class, args); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/Interceptor/HandleInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.Interceptor; 2 | 3 | import org.springframework.stereotype.Component; 4 | import org.springframework.web.servlet.HandlerInterceptor; 5 | import org.springframework.web.servlet.ModelAndView; 6 | 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | /** 11 | * @Author 张伟雄 12 | * @Date 2022/12/12 13 | **/ 14 | /* 15 | 拦截器 16 | */ 17 | 18 | @Component 19 | public class HandleInterceptor implements HandlerInterceptor { 20 | @Override 21 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { 22 | String token = request.getHeader("token"); 23 | System.out.println("token: "+token); 24 | // return HandlerInterceptor.super.preHandle(request, response, handler); 25 | return true; 26 | } 27 | 28 | @Override 29 | public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { 30 | HandlerInterceptor.super.postHandle(request, response, handler, modelAndView); 31 | } 32 | 33 | @Override 34 | public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception { 35 | HandlerInterceptor.super.afterCompletion(request, response, handler, ex); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/Interceptor/WebConfig.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.Interceptor; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; 6 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 7 | 8 | /** 9 | * @Author 张伟雄 10 | * @Date 2022/12/12 11 | **/ 12 | @Configuration 13 | public class WebConfig implements WebMvcConfigurer { 14 | 15 | @Bean 16 | public HandleInterceptor getHandleInterceptor(){ 17 | return new HandleInterceptor(); 18 | } 19 | 20 | @Override 21 | public void addInterceptors(InterceptorRegistry registry) { 22 | registry.addInterceptor(getHandleInterceptor()).addPathPatterns("/user/login"); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/common/Constants.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.common; 2 | 3 | /** 4 | * @Author 张伟雄 5 | * @Date 2022/12/2 6 | **/ 7 | public interface Constants { 8 | 9 | String CODE_200 = "200"; //成功 10 | String CODE_401 = "401"; // 权限不足 11 | String CODE_400 = "400"; // 参数错误 12 | String CODE_500 = "500"; // 系统错误 13 | String CODE_600 = "600"; // 其他业务异常 14 | 15 | String DICT_TYPE_ICON = "icon"; 16 | 17 | String FILES_KEY = "FILES_FRONT_ALL"; 18 | 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/common/Result.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.common; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | /** 8 | * @Author 张伟雄 9 | * @Date 2022/12/2 10 | **/ 11 | @Data 12 | @NoArgsConstructor 13 | @AllArgsConstructor 14 | public class Result { 15 | 16 | private String code; 17 | private String msg; 18 | private Object data; 19 | 20 | public static Result success() { 21 | return new Result(Constants.CODE_200, "", null); 22 | } 23 | 24 | public static Result success(Object data) { 25 | return new Result(Constants.CODE_200, "", data); 26 | } 27 | 28 | 29 | public static Result error(String code, String msg) { 30 | return new Result(code, msg, null); 31 | } 32 | 33 | public static Result error() { 34 | return new Result(Constants.CODE_500, "系统错误", null); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/config/CorsConfig.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.config; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.Configuration; 5 | import org.springframework.web.cors.CorsConfiguration; 6 | import org.springframework.web.cors.UrlBasedCorsConfigurationSource; 7 | import org.springframework.web.filter.CorsFilter; 8 | 9 | /** 10 | * @Author 张伟雄 11 | * @Date 2022/12/3 12 | **/ 13 | @Configuration 14 | public class CorsConfig { 15 | 16 | // 当前跨域请求最大有效时长。这里默认1天 17 | private static final long MAX_AGE = 24 * 60 * 60; 18 | 19 | @Bean 20 | public CorsFilter corsFilter() { 21 | UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource(); 22 | CorsConfiguration corsConfiguration = new CorsConfiguration(); 23 | corsConfiguration.addAllowedOrigin("http://localhost:8080"); // 1 设置访问源地址 24 | corsConfiguration.addAllowedHeader("*"); // 2 设置访问源请求头 25 | corsConfiguration.addAllowedMethod("*"); // 3 设置访问源请求方法 26 | corsConfiguration.setMaxAge(MAX_AGE); 27 | source.registerCorsConfiguration("/**", corsConfiguration); // 4 对接口配置跨域设置 28 | return new CorsFilter(source); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/controller/CategoryController.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.controller; 2 | 3 | import com.cakeshopspringboot.dao.GoodsDao; 4 | import com.cakeshopspringboot.vo.GoodsVo; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.web.bind.annotation.GetMapping; 7 | import org.springframework.web.bind.annotation.PathVariable; 8 | import org.springframework.web.bind.annotation.RestController; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @Author 张伟雄 14 | * @Date 2022/12/10 15 | **/ 16 | @RestController("/category") 17 | public class CategoryController { 18 | @Autowired 19 | private GoodsDao goodsDao; 20 | // @GetMapping("/{id}") 21 | @GetMapping 22 | public List findAllGoods(){ 23 | return goodsDao.findGoods(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/controller/GoodsController.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.controller; 2 | 3 | import com.cakeshopspringboot.common.Result; 4 | import com.cakeshopspringboot.dao.OrderDao; 5 | import com.cakeshopspringboot.entity.Goods; 6 | import com.cakeshopspringboot.entity.Order; 7 | import com.cakeshopspringboot.service.GoodsService; 8 | import com.cakeshopspringboot.utils.JWTUtils; 9 | import com.cakeshopspringboot.vo.OrderVo1; 10 | import org.springframework.beans.factory.annotation.Autowired; 11 | import org.springframework.util.StringUtils; 12 | import org.springframework.web.bind.annotation.*; 13 | 14 | import java.text.SimpleDateFormat; 15 | import java.util.Date; 16 | import java.util.HashMap; 17 | import java.util.List; 18 | import java.util.Map; 19 | 20 | /** 21 | * @Author 张伟雄 22 | * @Date 2022/12/6 23 | **/ 24 | @RestController 25 | @RequestMapping("/goods") 26 | public class GoodsController { 27 | @Autowired 28 | private GoodsService goodsService; 29 | @Autowired 30 | private OrderDao orderDao; 31 | 32 | @GetMapping 33 | public Map pageFindGoods(@RequestParam Integer pageNum, @RequestParam Integer pageSize){ 34 | pageNum = (pageNum - 1) * pageSize; 35 | List data = goodsService.findgoods(pageNum, pageSize); 36 | Integer total = goodsService.selectTotal(); 37 | Map res = new HashMap<>(); 38 | res.put("data", data); 39 | res.put("total", total); 40 | return res; 41 | } 42 | 43 | @PutMapping 44 | public Result updateGoods(@RequestBody Goods goods){ 45 | return goodsService.updateGoods(goods); 46 | } 47 | 48 | @DeleteMapping("/{id}") 49 | public Result deleteGoods(@PathVariable Integer id){ 50 | return goodsService.deleteGoods(id); 51 | } 52 | 53 | @GetMapping("/goodsfind/{id}") 54 | public List findGood(@PathVariable int id){ 55 | System.out.println(id); 56 | return goodsService.findGoodsbyId(id); 57 | } 58 | @GetMapping("/goodsfind") 59 | public List findGoods(){ 60 | return goodsService.findAllGoods(); 61 | } 62 | 63 | @PostMapping("/addOrder") 64 | public Result addOrder(@RequestBody Order order, @RequestHeader("Authorization") String token){ 65 | Map map = JWTUtils.checkToken(token); 66 | if(StringUtils.isEmpty(map)){ 67 | return null; 68 | } 69 | Date date = new Date(); // this object contains the current date value 70 | SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 71 | String format = formatter.format(date); 72 | System.out.println(order); 73 | int userid = Integer.parseInt((String) map.get("userId")); 74 | OrderVo1 orderVo1 = new OrderVo1(); 75 | orderVo1.setTotal(order.getPrice()); 76 | orderVo1.setAmount(order.getAmount()); 77 | orderVo1.setStatus(order.getStatus()); 78 | orderVo1.setPaytype(order.getPaytype()); 79 | orderVo1.setDatetime(format); 80 | orderVo1.setUserid(userid); 81 | orderVo1.setGoodsid(order.getId()); 82 | if(orderDao.addOrder(orderVo1)&&orderDao.modifyGoods(order.getStock(),order.getId())){ 83 | return Result.success(); 84 | } 85 | return Result.error(); 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/controller/OrderAdminController.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.controller; 2 | 3 | import com.cakeshopspringboot.common.Result; 4 | import com.cakeshopspringboot.dao.OrderAdminDao; 5 | import com.cakeshopspringboot.entity.Order; 6 | import com.cakeshopspringboot.entity.OrderAdminVo; 7 | import com.cakeshopspringboot.entity.User; 8 | import com.cakeshopspringboot.service.OrderAdminService; 9 | import com.cakeshopspringboot.vo.OrderItemVo; 10 | import org.springframework.beans.factory.annotation.Autowired; 11 | import org.springframework.util.StringUtils; 12 | import org.springframework.web.bind.annotation.*; 13 | 14 | import java.util.HashMap; 15 | import java.util.List; 16 | import java.util.Map; 17 | 18 | /** 19 | * @Author 张伟雄 20 | * @Date 2022/12/17 21 | **/ 22 | @RestController 23 | @RequestMapping("/orderadmin") 24 | public class OrderAdminController { 25 | @Autowired 26 | private OrderAdminDao orderAdminDao; 27 | @Autowired 28 | private OrderAdminService orderAdminService; 29 | 30 | @GetMapping("/pagefind") 31 | public Map findPage(@RequestParam Integer pageNum, @RequestParam Integer pageSize, @RequestParam String name) { 32 | name = "%" + name + "%"; 33 | pageNum = (pageNum - 1) * pageSize; 34 | List data = orderAdminDao.selectPage(pageNum, pageSize,name); 35 | Integer total = orderAdminDao.selectTotal(name); 36 | Map res = new HashMap<>(); 37 | res.put("data", data); 38 | res.put("total", total); 39 | return res; 40 | } 41 | 42 | @PostMapping 43 | public Result editOrderAdmin(@RequestBody OrderItemVo orderItemVo){ 44 | if(StringUtils.isEmpty(orderItemVo)){ 45 | return Result.error("10008","不能为空"); 46 | } 47 | return orderAdminService.updateOrderAdmin(orderItemVo); 48 | } 49 | 50 | @GetMapping("/checkOrder/{id}") 51 | public Result checkOrder(@PathVariable int id){ 52 | if(orderAdminDao.updateOrderStatus(id)){ 53 | return Result.success(); 54 | } 55 | return Result.error("10011","订单审核失败"); 56 | } 57 | 58 | @GetMapping("/shipments/{id}") 59 | public Result shipments(@PathVariable int id){ 60 | if(orderAdminDao.updateOrderStatus1(id)){ 61 | return Result.success(); 62 | } 63 | return Result.error("10012","发货失败"); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/controller/OrderController.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.controller; 2 | 3 | import com.cakeshopspringboot.common.Result; 4 | import com.cakeshopspringboot.dao.OrderDao; 5 | import com.cakeshopspringboot.entity.Order; 6 | import com.cakeshopspringboot.service.OrderService; 7 | import com.cakeshopspringboot.utils.JWTUtils; 8 | import com.cakeshopspringboot.vo.OrderListVo; 9 | import com.cakeshopspringboot.vo.OrderVo; 10 | import com.cakeshopspringboot.vo.PageVo; 11 | import com.cakeshopspringboot.vo.gouwucheVo; 12 | import org.springframework.beans.factory.annotation.Autowired; 13 | import org.springframework.util.StringUtils; 14 | import org.springframework.web.bind.annotation.*; 15 | 16 | import java.text.SimpleDateFormat; 17 | import java.util.*; 18 | 19 | /** 20 | * @Author 张伟雄 21 | * @Date 2022/12/6 22 | **/ 23 | @RestController 24 | @RequestMapping("/order") 25 | public class OrderController { 26 | 27 | @Autowired 28 | private OrderService orderService; 29 | @Autowired 30 | private OrderDao orderDao; 31 | 32 | @PostMapping 33 | public Map pageFindOrder(@RequestBody PageVo pageVo, @RequestHeader("Authorization") String token){ 34 | Map map = JWTUtils.checkToken(token); 35 | if(StringUtils.isEmpty(map)){ 36 | return null; 37 | } 38 | int userId = Integer.parseInt((String) map.get("userId")); 39 | Integer pageNum = (pageVo.getPageNum() - 1) * pageVo.getPageSize(); 40 | // List data = orderService.selectOrder(userId,pageNum, pageVo.getPageSize()); 41 | // Integer total = orderService.selectTotal(userId); 42 | List data = orderDao.findOrderListByUserId(userId,pageNum,pageVo.getPageSize()); 43 | Integer total = orderDao.selectTotal(userId); 44 | Map res = new HashMap<>(); 45 | res.put("data", data); 46 | res.put("total", total); 47 | return res; 48 | } 49 | //付款 50 | @PostMapping("/list") 51 | public Result orderList(@RequestBody List order,@RequestHeader("Authorization") String token){ 52 | Map map = JWTUtils.checkToken(token); 53 | if(StringUtils.isEmpty(map)){ 54 | return null; 55 | } 56 | int userid = Integer.parseInt((String) map.get("userId")); 57 | Date date = new Date(); // this object contains the current date value 58 | SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 59 | String format = formatter.format(date); 60 | for(Order attribute : order) { 61 | System.out.println(attribute); 62 | attribute.setTotal(attribute.getTotal()*attribute.getAmount()); 63 | attribute.setDatetime(format); 64 | attribute.setUserid(userid); 65 | } 66 | if(orderDao.InsertOrder(order)){ 67 | return Result.success(); 68 | } 69 | return Result.error("1001","fail"); 70 | } 71 | @GetMapping("/orderlist") 72 | public List findList(@RequestHeader("Authorization") String token){ 73 | Map map = JWTUtils.checkToken(token); 74 | if(StringUtils.isEmpty(map)){ 75 | return null; 76 | } 77 | int userid = Integer.parseInt((String) map.get("userId")); 78 | return orderDao.find(userid); 79 | } 80 | @GetMapping("/updateStatus/{id}") 81 | public Result updateStatus(@PathVariable int id){ 82 | if(orderDao.updateStatusOrder(id)){ 83 | return Result.success(); 84 | } 85 | return Result.error("10010","订单状态修改失败"); 86 | } 87 | @GetMapping("/updateStatus1/{id}") 88 | public Result updateStatus1(@PathVariable int id){ 89 | if(orderDao.updateStatusOrder1(id)){ 90 | return Result.success(); 91 | } 92 | return Result.error("10010","订单状态修改失败"); 93 | } 94 | @DeleteMapping("{id}") 95 | public Result deleteOwnOrder(@PathVariable int id){ 96 | if(orderDao.deleteById(id)){ 97 | return Result.success(); 98 | } 99 | return Result.error("10011","订单状态删除失败"); 100 | } 101 | @PostMapping("/OrderItem") 102 | public Result OrderItem(@RequestBody List order){ 103 | int flag = 0; 104 | for(Order attribute : order) { 105 | if(orderDao.OrderItem(attribute)){ 106 | flag++; 107 | } 108 | } 109 | if(flag == order.toArray().length){ 110 | return Result.success(); 111 | } 112 | return Result.error(); 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/controller/TypeController.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.controller; 2 | 3 | import com.cakeshopspringboot.common.Result; 4 | import com.cakeshopspringboot.entity.Goods; 5 | import com.cakeshopspringboot.entity.Type; 6 | import com.cakeshopspringboot.entity.User; 7 | import com.cakeshopspringboot.service.TypeService; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.web.bind.annotation.*; 10 | 11 | import java.util.HashMap; 12 | import java.util.List; 13 | import java.util.Map; 14 | 15 | /** 16 | * @Author 张伟雄 17 | * @Date 2022/12/11 18 | **/ 19 | @RestController 20 | @RequestMapping("/type") 21 | public class TypeController { 22 | @Autowired 23 | private TypeService typeService; 24 | @GetMapping 25 | public List getTypeName(){ 26 | return typeService.findAllTypeName(); 27 | } 28 | 29 | @GetMapping("typefind/{id}") 30 | public List getTypeGoods(@PathVariable int id){ 31 | return typeService.findGoodsById(id); 32 | } 33 | 34 | @GetMapping("/page") 35 | public Map pageType(@RequestParam Integer pageNum, @RequestParam Integer pageSize){ 36 | pageNum = (pageNum - 1) * pageSize; 37 | List data = typeService.pageFindType(pageNum, pageSize); 38 | Integer total = typeService.selectTotal(); 39 | Map res = new HashMap<>(); 40 | res.put("data", data); 41 | res.put("total", total); 42 | return res; 43 | } 44 | @PostMapping 45 | public Result addType(@RequestBody Type type){ 46 | if(type.getId()==0){ 47 | return typeService.addType(type); 48 | } 49 | else{ 50 | return typeService.updateType(type); 51 | } 52 | } 53 | 54 | @DeleteMapping("{id}") 55 | public Integer deleteUser(@PathVariable Integer id){ 56 | 57 | return typeService.deleteType(id); 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/dao/GoodsDao.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.dao; 2 | 3 | import com.cakeshopspringboot.entity.Goods; 4 | import com.cakeshopspringboot.vo.GoodsVo; 5 | import org.apache.ibatis.annotations.Delete; 6 | import org.apache.ibatis.annotations.Mapper; 7 | import org.apache.ibatis.annotations.Param; 8 | import org.apache.ibatis.annotations.Select; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @Author 张伟雄 14 | * @Date 2022/12/6 15 | **/ 16 | @Mapper 17 | public interface GoodsDao { 18 | @Select("select id,name,images1,price,intro,stock,typeid from goods limit #{pageNum}, #{pageSize}") 19 | List findPageGoods(@Param("pageNum")Integer pageNum, @Param("pageSize") Integer pageSize); 20 | 21 | @Select("select count(*) from goods") 22 | Integer selectTotal(); 23 | 24 | Boolean updateGoods(Goods goods); 25 | 26 | @Delete("delete from goods where id = #{id}") 27 | Boolean deleteGoods(Integer id); 28 | 29 | @Select("select name,images1,price from goods") 30 | List findGoods(); 31 | 32 | @Select("select goods.id,name,price,images1,intro,stock,typeid from goods where id = #{id}") 33 | List findGoodsById(int id); 34 | 35 | @Select("select goods.id,name,price,images1,intro,stock,typeid from goods") 36 | List findAllGoods(); 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/dao/OrderAdminDao.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.dao; 2 | import com.cakeshopspringboot.entity.OrderAdminVo; 3 | import com.cakeshopspringboot.vo.OrderItemVo; 4 | import org.apache.ibatis.annotations.*; 5 | import java.util.List; 6 | 7 | /** 8 | * @Author 张伟雄 9 | * @Date 2022/12/17 10 | **/ 11 | @Mapper 12 | public interface OrderAdminDao { 13 | @Select("select orderlist.id,total,status,datetime,user.name,phone,address,goods.name as name1 from orderlist,user,goods WHERE goodsid = goods.id AND userid = user.id and user.name like #{name} limit #{pageNum}, #{pageSize}") 14 | List selectPage(@Param("pageNum")Integer pageNum, @Param("pageSize") Integer pageSize, @Param("name")String name); 15 | 16 | @Select("select count(*) from orderlist,user,goods WHERE goodsid = goods.id AND userid = user.id and user.name like #{name}") 17 | Integer selectTotal(@Param("name")String name); 18 | 19 | @Delete("delete from orderlist where id = #{id}") 20 | Boolean deleteOrder(@Param("id")int id); 21 | @Update("update orderlist,user,goods set user.name = #{name},phone = #{phone},address = #{address} WHERE goodsid = goods.id AND userid = user.id and orderlist.id = #{id}") 22 | Boolean updateOrderList(OrderItemVo orderItemVo); 23 | 24 | @Update("update orderlist set status = 5 WHERE id = #{id}") 25 | Boolean updateOrderStatus(@Param("id") int id); 26 | 27 | @Update("update orderlist set status = 3 WHERE id = #{id}") 28 | Boolean updateOrderStatus1(@Param("id") int id); 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/dao/OrderDao.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.dao; 2 | 3 | import com.cakeshopspringboot.entity.Order; 4 | import com.cakeshopspringboot.vo.OrderListVo; 5 | import com.cakeshopspringboot.vo.OrderVo; 6 | import com.cakeshopspringboot.vo.OrderVo1; 7 | import com.cakeshopspringboot.vo.gouwucheVo; 8 | import com.sun.org.apache.xpath.internal.operations.Bool; 9 | import org.apache.ibatis.annotations.*; 10 | import java.util.List; 11 | 12 | /** 13 | * @Author 张伟雄 14 | * @Date 2022/12/6 15 | **/ 16 | 17 | @Mapper 18 | public interface OrderDao { 19 | 20 | @Update("update orderlist set amount = amount+1 where id = #{id}") 21 | Boolean addOrderNum(int num,int id); 22 | 23 | @Update("update orderlist set amount = amount-1 where id = #{id}") 24 | Boolean subOrderNum(int num,int id); 25 | 26 | @Select("select amount from orderlist where id = #{id}") 27 | int findamount(int id); 28 | 29 | @Insert("insert into orderlist(total,amount,status,paytype,datetime,userid,goodsid) values(#{total},#{amount},#{status},#{paytype},#{datetime},#{userid},#{goodsid})") 30 | Bool Insertorder(Order order); 31 | 32 | // @Select("select id,total,amount,status from orderlist where userid = #{userid} limit #{pageNum}, #{pageSize}") 33 | @Select("select orderlist.id,total,amount,status,name from orderlist,goods WHERE orderlist.goodsid = goods.id and userid = #{userid} limit #{pageNum}, #{pageSize}") 34 | List findOrderListByUserId(@Param("userid") int userid,@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize); 35 | 36 | @Select("select count(*) from orderlist where userid = #{userid}") 37 | Integer selectTotal(@Param("userid") int userid); 38 | 39 | Boolean InsertOrder(List order); 40 | 41 | @Select("SELECT orderlist.id,total,amount,images1,name,goods.id as goodsid from orderlist,goods WHERE orderlist.goodsid = goods.id AND status = 0 and userid=#{userid} ") 42 | List find(int userid); 43 | 44 | @Update("update orderlist set status = 1 WHERE id = #{id}") 45 | Boolean updateStatusOrder(@Param("id") int id); 46 | 47 | @Update("update orderlist set status = 4 WHERE id = #{id}") 48 | Boolean updateStatusOrder1(@Param("id") int id); 49 | 50 | @Delete("delete from orderlist where id = #{id}") 51 | Boolean deleteById(@Param("id") Integer id); 52 | 53 | @Insert("insert into orderlist(total,amount,status,paytype,datetime,userid,goodsid) values (#{total},#{amount},#{status},#{paytype},#{datetime},#{userid},#{goodsid})") 54 | Boolean addOrder(OrderVo1 order); 55 | 56 | @Update("update goods set stock = #{stock} where id = #{id}") 57 | Boolean modifyGoods(@Param("stock") int stock,@Param("id") int id); 58 | 59 | 60 | Boolean OrderItem(Order order); 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/dao/TypeDao.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.dao; 2 | 3 | import com.cakeshopspringboot.common.Result; 4 | import com.cakeshopspringboot.entity.Goods; 5 | import com.cakeshopspringboot.entity.Type; 6 | import com.cakeshopspringboot.entity.User; 7 | import org.apache.ibatis.annotations.*; 8 | 9 | import java.util.List; 10 | 11 | /** 12 | * @Author 张伟雄 13 | * @Date 2022/12/13 14 | **/ 15 | @Mapper 16 | public interface TypeDao { 17 | @Select("select * from type") 18 | List findTypeName(); 19 | @Select("select * from goods where typeid = #{typeid}") 20 | List findTypeGoods(int typeid); 21 | @Select("select * from type limit #{pageNum}, #{pageSize}") 22 | List pageFind(@Param("pageNum")Integer pageNum, @Param("pageSize") Integer pageSize); 23 | 24 | @Select("select count(*) from user") 25 | Integer selectTotal(); 26 | 27 | @Insert("insert into type(typename) values(#{typename})") 28 | Boolean addType(Type type); 29 | 30 | @Update("update type set typename = #{typename} where id = #{id}") 31 | Boolean updateType(Type type); 32 | 33 | @Delete("delete from type where id = #{id}") 34 | Integer deleteType(int id); 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/dao/UserDao.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.dao; 2 | 3 | import com.cakeshopspringboot.entity.User; 4 | import com.cakeshopspringboot.vo.UserVo; 5 | import org.apache.ibatis.annotations.*; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | *@Author 张伟雄 11 | *@Date 2022/12/1 12 | **/ 13 | @Mapper 14 | public interface UserDao { 15 | @Select("SELECT id, username, password, name, email, phone, address from user") 16 | List findAll(); 17 | 18 | @Select("select * from user where username like #{username} or email like #{email} or address like #{address} limit #{pageNum}, #{pageSize}") 19 | List selectPage(@Param("pageNum")Integer pageNum,@Param("pageSize") Integer pageSize, @Param("username")String username,@Param("email") String email,@Param("address") String address); 20 | 21 | @Select("select count(*) from user where username like concat('%', #{username}, '%') or email like concat('%', #{email}, '%') or address like concat('%', #{address}, '%')") 22 | Integer selectTotal(@Param("username")String username,@Param("email")String email,@Param("address")String address); 23 | 24 | @Insert("insert into user(username,password,name,email,phone,address) values(#{username},#{password}," + 25 | "#{name},#{email},#{phone},#{address})") 26 | int addUser(User user); 27 | 28 | @Delete("delete from user where id = #{id}") 29 | Integer deleteById(@Param("id") Integer id); 30 | 31 | int updateUser(User user); 32 | 33 | Boolean Batchdelete(List list); 34 | Boolean BatchAddUser(@Param("list") List list); 35 | //用户登录 36 | /* 37 | * 通过用户的密码和 38 | * */ 39 | Boolean findIsAdmin(@Param("username")String username,@Param("password") String password); 40 | @Select("select * from user where username = #{username} and password = #{password}") 41 | User findUserId(@Param("username")String username,@Param("password") String password); 42 | 43 | @Select("select username from user where id = #{id}") 44 | String findUserName(int id); 45 | 46 | @Select("select * from user where id = #{id}") 47 | User findOneUser(int id); 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/entity/Goods.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.entity; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/6 8 | **/ 9 | @Data 10 | public class Goods { 11 | private int id; 12 | private String name; 13 | private int amount; 14 | private float price; 15 | private String intro; 16 | private String images1; 17 | private String stock; 18 | private String typeid; 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/entity/Order.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.entity; 2 | 3 | import lombok.Data; 4 | 5 | import java.io.Serializable; 6 | import java.util.Date; 7 | 8 | /** 9 | * @Author 张伟雄 10 | * @Date 2022/12/6 11 | **/ 12 | @Data 13 | public class Order implements Serializable { 14 | private int id; 15 | private float total; 16 | private float price; 17 | private int stock; 18 | private int amount; 19 | private int status; 20 | private int paytype; 21 | private String datetime; 22 | private int userid; 23 | private int goodsid; 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/entity/OrderAdminVo.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.entity; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/17 8 | **/ 9 | @Data 10 | public class OrderAdminVo { 11 | private int id; 12 | private float total; 13 | private String datetime; 14 | private String name; 15 | private String phone; 16 | private int status; 17 | private String address; 18 | private String name1; 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/entity/Type.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.entity; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/13 8 | **/ 9 | @Data 10 | public class Type { 11 | private int id; 12 | private String typename; 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/entity/User.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.entity; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | /** 8 | * @Author 张伟雄 9 | * @Date 2022/12/1 10 | **/ 11 | @Data 12 | @AllArgsConstructor 13 | @NoArgsConstructor 14 | public class User { 15 | private int id; 16 | private String username; 17 | private String password; 18 | private String name; 19 | private String email; 20 | private String phone; 21 | private String address; 22 | private Boolean isadmin; 23 | private Boolean isvalidate; 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/service/GoodsService.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.service; 2 | 3 | import com.cakeshopspringboot.common.Result; 4 | import com.cakeshopspringboot.entity.Goods; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * @Author 张伟雄 10 | * @Date 2022/12/6 11 | **/ 12 | public interface GoodsService { 13 | List findgoods(Integer pageNum,Integer pageSize); 14 | Integer selectTotal(); 15 | 16 | Result updateGoods(Goods goods); 17 | 18 | Result deleteGoods(Integer id); 19 | 20 | List findGoodsbyId(int id); 21 | 22 | List findAllGoods(); 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/service/OrderAdminService.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.service; 2 | 3 | import com.cakeshopspringboot.common.Result; 4 | import com.cakeshopspringboot.entity.OrderAdminVo; 5 | import com.cakeshopspringboot.vo.OrderItemVo; 6 | 7 | /** 8 | * @Author 张伟雄 9 | * @Date 2022/12/17 10 | **/ 11 | 12 | public interface OrderAdminService { 13 | Result deleteOrderAdmin(int id); 14 | Result updateOrderAdmin(OrderItemVo orderItemVo); 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/service/OrderService.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.service; 2 | 3 | import com.cakeshopspringboot.vo.OrderVo; 4 | import org.apache.ibatis.annotations.Mapper; 5 | import org.apache.ibatis.annotations.Result; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * @Author 张伟雄 11 | * @Date 2022/12/6 12 | **/ 13 | @Mapper 14 | public interface OrderService { 15 | List selectOrder(int userId, Integer pageNum, Integer pageSize); 16 | Integer selectTotal(int userId); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/service/TypeService.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.service; 2 | 3 | import com.cakeshopspringboot.common.Result; 4 | import com.cakeshopspringboot.entity.Goods; 5 | import com.cakeshopspringboot.entity.Type; 6 | 7 | import java.util.List; 8 | 9 | /** 10 | * @Author 张伟雄 11 | * @Date 2022/12/13 12 | **/ 13 | public interface TypeService { 14 | List findAllTypeName(); 15 | 16 | List findGoodsById(int id); 17 | 18 | List pageFindType(Integer pageNum, Integer pageSize); 19 | 20 | Integer selectTotal(); 21 | 22 | Result addType(Type type); 23 | Result updateType(Type type); 24 | Integer deleteType(int id); 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.service; 2 | 3 | import com.cakeshopspringboot.common.Result; 4 | import com.cakeshopspringboot.entity.User; 5 | import com.cakeshopspringboot.vo.RegisterVo; 6 | import com.cakeshopspringboot.vo.UserLoginVo; 7 | import com.cakeshopspringboot.vo.UserVo; 8 | import org.springframework.web.multipart.MultipartFile; 9 | 10 | import javax.servlet.http.HttpServletResponse; 11 | import java.io.IOException; 12 | import java.util.List; 13 | 14 | /** 15 | * @Author 张伟雄 16 | * @Date 2022/12/2 17 | **/ 18 | public interface UserService { 19 | int save(User user); 20 | Boolean removeByIds(List list); 21 | List findAllUser(); 22 | void exportExcel(HttpServletResponse response) throws IOException; 23 | Boolean importExcel(MultipartFile file) throws IOException; 24 | Result UserLogin(String username,String password); 25 | Result TokenLogin(String token); 26 | Result UserRegister(User user); 27 | String FindUserName(int userid); 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/service/impl/GoodsServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.service.impl; 2 | 3 | import com.cakeshopspringboot.common.Result; 4 | import com.cakeshopspringboot.dao.GoodsDao; 5 | import com.cakeshopspringboot.entity.Goods; 6 | import com.cakeshopspringboot.service.GoodsService; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @Author 张伟雄 14 | * @Date 2022/12/6 15 | **/ 16 | @Service 17 | public class GoodsServiceImpl implements GoodsService { 18 | @Autowired 19 | private GoodsDao goodsDao; 20 | @Override 21 | public List findgoods(Integer pageNum, Integer pageSize) { 22 | return goodsDao.findPageGoods(pageNum,pageSize); 23 | } 24 | 25 | @Override 26 | public Integer selectTotal() { 27 | return goodsDao.selectTotal(); 28 | } 29 | 30 | @Override 31 | public Result updateGoods(Goods goods) { 32 | Boolean isgoods = goodsDao.updateGoods(goods); 33 | if(isgoods){ 34 | return Result.success(); 35 | } 36 | return Result.error("110","修改商品操作失败"); 37 | } 38 | 39 | @Override 40 | public Result deleteGoods(Integer id) { 41 | Boolean flag = goodsDao.deleteGoods(id); 42 | if(flag){ 43 | return Result.success(); 44 | } 45 | return Result.error("112","删除操作失败"); 46 | } 47 | 48 | @Override 49 | public List findGoodsbyId(int id) { 50 | return goodsDao.findGoodsById(id); 51 | } 52 | 53 | @Override 54 | public List findAllGoods() { 55 | return goodsDao.findAllGoods(); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/service/impl/OrderAdminServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.service.impl; 2 | import com.cakeshopspringboot.common.Result; 3 | import com.cakeshopspringboot.dao.OrderAdminDao; 4 | import com.cakeshopspringboot.service.OrderAdminService; 5 | import com.cakeshopspringboot.vo.OrderItemVo; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | /** 10 | * @Author 张伟雄 11 | * @Date 2022/12/17 12 | **/ 13 | @Service 14 | public class OrderAdminServiceImpl implements OrderAdminService { 15 | @Autowired 16 | private OrderAdminDao orderAdminDao; 17 | @Override 18 | public Result deleteOrderAdmin(int id) { 19 | if(orderAdminDao.deleteOrder(id)){ 20 | return Result.success(); 21 | } 22 | return Result.error("10009","删除失败"); 23 | } 24 | @Override 25 | public Result updateOrderAdmin(OrderItemVo orderItemVo) { 26 | if(orderAdminDao.updateOrderList(orderItemVo)){ 27 | return Result.success(); 28 | } 29 | return Result.error("10009","修改失败"); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/service/impl/OrderServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.service.impl; 2 | 3 | import com.cakeshopspringboot.dao.OrderDao; 4 | import com.cakeshopspringboot.service.OrderService; 5 | import com.cakeshopspringboot.vo.OrderVo; 6 | import org.apache.ibatis.annotations.Result; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import java.util.List; 11 | 12 | /** 13 | * @Author 张伟雄 14 | * @Date 2022/12/6 15 | **/ 16 | @Service 17 | public class OrderServiceImpl implements OrderService { 18 | @Autowired 19 | private OrderDao orderDao; 20 | 21 | @Override 22 | public List selectOrder(int userId, Integer pageNum, Integer pageSize) { 23 | return orderDao.findOrderListByUserId(userId,pageNum,pageSize); 24 | } 25 | 26 | 27 | 28 | @Override 29 | public Integer selectTotal(int userId) { 30 | return orderDao.selectTotal(userId); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/service/impl/TypeServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.service.impl; 2 | 3 | import com.cakeshopspringboot.common.Result; 4 | import com.cakeshopspringboot.dao.GoodsDao; 5 | import com.cakeshopspringboot.dao.TypeDao; 6 | import com.cakeshopspringboot.entity.Goods; 7 | import com.cakeshopspringboot.entity.Type; 8 | import com.cakeshopspringboot.service.TypeService; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Service; 11 | 12 | import java.util.List; 13 | 14 | /** 15 | * @Author 张伟雄 16 | * @Date 2022/12/13 17 | **/ 18 | @Service 19 | public class TypeServiceImpl implements TypeService { 20 | @Autowired 21 | private TypeDao typeDao; 22 | @Autowired 23 | private GoodsDao goodsDao; 24 | @Override 25 | public List findAllTypeName() { 26 | return typeDao.findTypeName(); 27 | } 28 | 29 | @Override 30 | public List findGoodsById(int id) { 31 | return typeDao.findTypeGoods(id); 32 | } 33 | 34 | @Override 35 | public List pageFindType(Integer pageNum, Integer pageSize) { 36 | return typeDao.pageFind(pageNum,pageSize); 37 | } 38 | 39 | @Override 40 | public Integer selectTotal() { 41 | return typeDao.selectTotal(); 42 | } 43 | 44 | @Override 45 | public Result addType(Type type) { 46 | Boolean ty = typeDao.addType(type); 47 | if(ty){ 48 | return Result.success(); 49 | }else{ 50 | return Result.error("1006","增加失败"); 51 | } 52 | } 53 | 54 | @Override 55 | public Result updateType(Type type) { 56 | Boolean ty = typeDao.updateType(type); 57 | if(ty){ 58 | return Result.success(); 59 | }else{ 60 | return Result.error("1006","增加失败"); 61 | } 62 | } 63 | 64 | @Override 65 | public Integer deleteType(int id) { 66 | return typeDao.deleteType(id); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/utils/EmailUtils.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.utils; 2 | 3 | import org.junit.Test; 4 | 5 | import javax.mail.*; 6 | import javax.mail.internet.InternetAddress; 7 | import javax.mail.internet.MimeMessage; 8 | import java.util.Properties; 9 | import java.util.Random; 10 | 11 | /** 12 | * @Author 张伟雄 13 | * @Date 2022/12/12 14 | **/ 15 | public class EmailUtils { 16 | @Test 17 | public void qqmailtest() { 18 | String s = EmailUtils.codeFen(); 19 | System.out.println(s); 20 | 21 | try { 22 | testMail("QQ邮箱验证密码",s,"3102036223@qq.com"); 23 | } catch (Exception e) { 24 | e.printStackTrace(); 25 | } 26 | } 27 | //生成验证码 28 | public static String codeFen(){ 29 | String str = "0123456789"; 30 | //将字符串转换为一个新的字符数组。 31 | char[] VerificationCodeArray = str.toCharArray(); 32 | Random random = new Random(); 33 | int count = 0;//计数器 34 | StringBuilder stringBuilder = new StringBuilder(); 35 | while(true) { 36 | //随机生成一个随机数 37 | int index = random.nextInt(VerificationCodeArray.length); 38 | char c = VerificationCodeArray[index]; 39 | //限制四位不重复数字 40 | if (stringBuilder.indexOf(c + "") == -1) { 41 | stringBuilder.append(c); 42 | //计数器加1 43 | count++; 44 | } 45 | //当count等于4时结束,随机生成四位数的验证码 46 | if (count == 4) { 47 | break; 48 | } 49 | } 50 | return stringBuilder.toString(); 51 | } 52 | public static void testMail (String topic,String msg,String sendto) throws Exception { 53 | // 给用户发送邮件的邮箱 54 | final String from = "3036354190@qq.com"; 55 | // 邮箱的用户名 56 | final String username = "3036354190@qq.com"; 57 | // 邮箱授权码,刚刚保存的授权码,不是qq密码 58 | final String password = "aczwsvvgafjmddic"; 59 | // 发送邮件的服务器地址,QQ服务器 60 | final String host = "smtp.qq.com"; 61 | // 接收人邮箱 62 | final String to = sendto; 63 | // 邮件主题 64 | final String title = topic; 65 | 66 | // 使用QQ邮箱时配置 67 | Properties prop = new Properties(); 68 | prop.setProperty("mail.host", "smtp.qq.com"); // 设置QQ邮件服务器 69 | prop.setProperty("mail.transport.protocol", "smtp"); // 邮件发送协议 70 | prop.setProperty("mail.smtp.auth", "true"); // 需要验证用户名和密码 71 | 72 | 73 | // 关于QQ邮箱,还要设置SSL加密,其他邮箱不需要 可删减 74 | // MailSSLSocketFactory sf = new MailSSLSocketFactory(); 75 | // sf.setTrustAllHosts(true); 76 | // prop.put("mail.smtp.ssl.enable", "true"); 77 | // prop.put("mail.smtp.ssl.socketFactory", sf); 78 | 79 | // 创建定义整个邮件程序所需的环境信息的 Session 对象,QQ才有,其他邮箱就不用了 80 | Session session = Session.getDefaultInstance(prop, new Authenticator() { 81 | 82 | protected PasswordAuthentication getPasswordAuthentication() { 83 | // 发件人邮箱用户名,授权码 84 | return new PasswordAuthentication(username, password); 85 | } 86 | }); 87 | 88 | // 开启 Session 的 debug 模式,这样就可以查看程序发送 Email 的运行状态 89 | session.setDebug(false); //开发时打卡, 发布关闭 90 | 91 | // 通过 session 得到 transport 对象 92 | Transport ts = session.getTransport(); 93 | 94 | // 使用邮箱的用户名和授权码连上邮箱服务器 95 | ts.connect(host, username, password); 96 | 97 | // 创建邮件,写邮件 98 | MimeMessage message = new MimeMessage(session); 99 | message.setFrom(new InternetAddress(from)); // 指明邮件的发件人 100 | message.setRecipient(Message.RecipientType.TO, new InternetAddress(to)); // 指明邮件的收件人 101 | message.setSubject(title); // 邮件主题 102 | message.setContent(msg, "text/html;charset=utf-8"); // 邮件内容 103 | 104 | // 发送邮件 105 | ts.sendMessage(message, message.getAllRecipients()); 106 | System.out.println("验证码发送成功"); 107 | // 释放资源 108 | ts.close(); 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/utils/JWTUtils.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.utils; 2 | 3 | import io.jsonwebtoken.Jwt; 4 | import io.jsonwebtoken.JwtBuilder; 5 | import io.jsonwebtoken.Jwts; 6 | import io.jsonwebtoken.SignatureAlgorithm; 7 | 8 | import java.util.Date; 9 | import java.util.HashMap; 10 | import java.util.Map; 11 | 12 | /** 13 | * @Author 张伟雄 14 | * @Date 2022/12/6 15 | **/ 16 | public class JWTUtils { 17 | private static final String jwtToken = "123456@#$%^&*"; 18 | public static String createToken(String userId){ 19 | Map claims = new HashMap<>(); 20 | claims.put("userId",userId); 21 | JwtBuilder jwtBuilder = Jwts.builder() 22 | .signWith(SignatureAlgorithm.HS512,jwtToken)//签发算法,秘钥为jwtToken 23 | .setClaims(claims) //body数据,要唯一,自行设置 24 | .setIssuedAt(new Date())//设置签发时间 25 | .setExpiration(new Date(System.currentTimeMillis()+24*60*60*60*1000));//一天的有效时间 26 | String token = jwtBuilder.compact(); 27 | return token; 28 | } 29 | public static Map checkToken(String token){ 30 | try{ 31 | Jwt parse = Jwts.parser().setSigningKey(jwtToken).parse(token); 32 | return (Map)parse.getBody(); 33 | }catch (Exception e){ 34 | e.printStackTrace(); 35 | } 36 | return null; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/utils/cosClient.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.utils; 2 | 3 | import com.qcloud.cos.*; 4 | import com.qcloud.cos.auth.BasicCOSCredentials; 5 | import com.qcloud.cos.auth.COSCredentials; 6 | import com.qcloud.cos.http.HttpProtocol; 7 | import com.qcloud.cos.region.Region; 8 | 9 | 10 | /** 11 | * @Author 张伟雄 12 | * @Date 2022/12/3 13 | **/ 14 | public class cosClient { 15 | public static COSClient cos(){ 16 | // 1 初始化用户身份信息(secretId, secretKey)。 17 | // SECRETID和SECRETKEY请登录访问管理控制台 https://console.cloud.tencent.com/cam/capi 进行查看和管理 18 | String secretId = "AKIDBBuMYT7UbR0IJ3WhbEafSyDBH7fwvd4E"; 19 | String secretKey = "tVrwjFUSFm34nFQLzLQEl1zg6F7i36sN"; 20 | COSCredentials cred = new BasicCOSCredentials(secretId, secretKey); 21 | // 2 设置 bucket 的地域, COS 地域的简称请参照 https://cloud.tencent.com/document/product/436/6224 22 | // clientConfig 中包含了设置 region, https(默认 http), 超时, 代理等 set 方法, 使用可参见源码或者常见问题 Java SDK 部分。 23 | Region region = new Region("ap-nanjing"); 24 | ClientConfig clientConfig = new ClientConfig(region); 25 | // 这里建议设置使用 https 协议 26 | // 从 5.6.54 版本开始,默认使用了 https 27 | clientConfig.setHttpProtocol(HttpProtocol.https); 28 | // 3 生成 cos 客户端。 29 | COSClient cosClient = new COSClient(cred, clientConfig); 30 | return cosClient; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/utils/uploadUtils.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.utils; 2 | 3 | import org.springframework.web.multipart.MultipartFile; 4 | 5 | import java.io.File; 6 | 7 | /** 8 | * @Author 张伟雄 9 | * @Date 2022/12/27 10 | **/ 11 | public class uploadUtils { 12 | //MultipartFile转换File 13 | public static File MultipartFileToFile(MultipartFile multiFile) { 14 | // 获取文件名 15 | String fileName = multiFile.getOriginalFilename(); 16 | // 获取文件后缀 17 | String prefix = fileName.substring(fileName.lastIndexOf(".")); 18 | // 若须要防止生成的临时文件重复,能够在文件名后添加随机码 19 | try { 20 | File file = File.createTempFile(fileName, prefix); 21 | multiFile.transferTo(file); 22 | //返回的File文件 23 | return file; 24 | } catch (Exception e) { 25 | e.printStackTrace(); 26 | } 27 | return null; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/vo/EmailVo.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/14 8 | **/ 9 | @Data 10 | public class EmailVo { 11 | private String name; 12 | private String code; 13 | private String email; 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/vo/GoodsVo.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/10 8 | **/ 9 | @Data 10 | public class GoodsVo { 11 | private int id; 12 | private String goodsname; 13 | private String images1; 14 | private float price; 15 | private String intro; 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/vo/OrderItemVo.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/17 8 | **/ 9 | @Data 10 | public class OrderItemVo { 11 | private int id; 12 | private String name; 13 | private String phone; 14 | private String address; 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/vo/OrderListVo.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/10 8 | **/ 9 | @Data 10 | public class OrderListVo { 11 | private int id; 12 | private float total; 13 | private int amount; 14 | private String images1; 15 | private String name; 16 | private int goodsid; 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/vo/OrderVo.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/6 8 | **/ 9 | @Data 10 | public class OrderVo { 11 | private int id; 12 | private String name; 13 | private float total; 14 | private int amount; 15 | private int status; 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/vo/OrderVo1.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/19 8 | **/ 9 | @Data 10 | public class OrderVo1 { 11 | private int id; 12 | private float total; 13 | private int amount; 14 | private int status; 15 | private int paytype; 16 | private String datetime; 17 | private int userid; 18 | private int goodsid; 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/vo/PageVo.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/7 8 | **/ 9 | @Data 10 | public class PageVo { 11 | private Integer pageNum; 12 | private Integer pageSize; 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/vo/RegisterVo.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/6 8 | **/ 9 | @Data 10 | public class RegisterVo { 11 | private String username; 12 | private String password; 13 | private String name; 14 | private String email; 15 | private String phone; 16 | private String address; 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/vo/UserLoginVo.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/4 8 | **/ 9 | @Data 10 | public class UserLoginVo { 11 | private String username; 12 | private String password; 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/vo/UserVo.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.vo; 2 | 3 | import lombok.AllArgsConstructor; 4 | import lombok.Data; 5 | import lombok.NoArgsConstructor; 6 | 7 | /** 8 | * @Author 张伟雄 9 | * @Date 2022/12/3 10 | **/ 11 | @Data 12 | @AllArgsConstructor 13 | @NoArgsConstructor 14 | public class UserVo { 15 | private int id; 16 | private String username; 17 | private String password; 18 | private String name; 19 | private String email; 20 | private String phone; 21 | private String address; 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/cakeshopspringboot/vo/gouwucheVo.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot.vo; 2 | 3 | import lombok.Data; 4 | 5 | /** 6 | * @Author 张伟雄 7 | * @Date 2022/12/20 8 | **/ 9 | @Data 10 | public class gouwucheVo { 11 | private int id; 12 | private int amount; 13 | } 14 | -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | # 应用名称 3 | spring.application.name=cakeshopspringboot 4 | # 数据库驱动: 5 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 6 | # 数据源名称 7 | spring.datasource.name=defaultDataSource 8 | # 数据库连接地址 9 | spring.datasource.url=jdbc:mysql://127.0.0.1:3306/cakeshop?serverTimezone=UTC 10 | # 数据库用户名&密码: 11 | spring.datasource.username=root 12 | spring.datasource.password=5720 13 | # 应用服务 WEB 访问端口 14 | server.port=9090 15 | 16 | mybatis.type-aliases-package=com.cakeshopspringboot.entity 17 | mybatis.mapper-locations=classpath:mapper/*.xml 18 | mybatis.configuration.map-underscore-to-camel-case=true 19 | mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl 20 | 21 | logging.level.mapper=debug 22 | 23 | spring.redis.host=localhost 24 | spring.redis.port=6379 25 | -------------------------------------------------------------------------------- /src/main/resources/mapper/GoodsMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | update goods 7 | set name = #{name}, price = #{price},intro = #{intro},stock = #{stock}, typeid=#{typeid} 8 | where id = #{id} 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/main/resources/mapper/OrderMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | insert into orderlist (total,amount,status,datetime,userid,goodsid) 8 | values 9 | 10 | (#{item.total},#{item.amount},#{item.status},#{item.datetime},#{item.userid},#{item.goodsid}) 11 | 12 | 13 | 14 | update orderlist set 15 | amount = #{amount} 16 | where id = #{id} 17 | 18 | -------------------------------------------------------------------------------- /src/main/resources/mapper/UserMapper.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | update user 7 | set username = #{username}, password = #{password},email = #{email},name = #{name}, phone=#{phone}, address =#{address},isadmin=#{isadmin},isvalidate=#{isvalidate} 8 | where id = #{id} 9 | 10 | 11 | 12 | delete from user where id in 13 | #{id} 14 | 15 | 16 | 17 | insert into user (username,password,name,email,phone,address) 18 | values 19 | 20 | (#{item.username},#{item.password},#{item.name},#{item.email},#{item.phone},#{item.address}) 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/test/java/com/cakeshopspringboot/CakeshopspringbootApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.cakeshopspringboot; 2 | 3 | import com.cakeshopspringboot.entity.Order; 4 | import org.junit.jupiter.api.Test; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | 7 | import java.text.ParseException; 8 | import java.text.SimpleDateFormat; 9 | import java.util.Date; 10 | 11 | @SpringBootTest 12 | class CakeshopspringbootApplicationTests { 13 | 14 | @Test 15 | void contextLoads() throws ParseException { 16 | // Date date = new Date(); // this object contains the current date value 17 | // System.out.println(date); 18 | // SimpleDateFormat formatter = new SimpleDateFormat("yyyy-dd-MM HH:mm:ss"); 19 | // String format = formatter.format(date); 20 | // System.out.println(formatter.format(date)); 21 | // Order order = new Order(); 22 | // order.setDatetime(format); 23 | Date date = new Date();//获得系统时间. 24 | SimpleDateFormat sdf = new SimpleDateFormat( " yyyy-MM-dd HH:mm:ss " ); 25 | String nowTime = sdf.format(date); 26 | System.out.println(nowTime); 27 | Date time = sdf.parse( nowTime ); 28 | System.out.println(time); 29 | } 30 | 31 | } 32 | --------------------------------------------------------------------------------