├── .idea ├── artifacts │ ├── heart_admin_war.xml │ └── heart_admin_war_exploded.xml ├── compiler.xml ├── libraries │ ├── Maven__aopalliance_aopalliance_1_0.xml │ ├── Maven__cglib_cglib_3_2_6.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_3.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_core_2_9_3.xml │ ├── Maven__com_fasterxml_jackson_core_jackson_databind_2_9_3.xml │ ├── Maven__com_google_code_gson_gson_2_8_1.xml │ ├── Maven__com_qiniu_happy_dns_java_0_1_6.xml │ ├── Maven__com_qiniu_qiniu_java_sdk_7_2_10.xml │ ├── Maven__com_squareup_okhttp3_okhttp_3_8_1.xml │ ├── Maven__com_squareup_okio_okio_1_12_0.xml │ ├── Maven__commons_beanutils_commons_beanutils_1_9_3.xml │ ├── Maven__commons_chain_commons_chain_1_2.xml │ ├── Maven__commons_collections_commons_collections_3_1.xml │ ├── Maven__commons_dbcp_commons_dbcp_1_4.xml │ ├── Maven__commons_digester_commons_digester_2_1.xml │ ├── Maven__commons_fileupload_commons_fileupload_1_3_3.xml │ ├── Maven__commons_io_commons_io_2_6.xml │ ├── Maven__commons_lang_commons_lang_2_6.xml │ ├── Maven__commons_logging_commons_logging_1_2.xml │ ├── Maven__commons_logging_commons_logging_api_1_1.xml │ ├── Maven__commons_pool_commons_pool_1_6.xml │ ├── Maven__commons_validator_commons_validator_1_5_1.xml │ ├── Maven__javax_servlet_javax_servlet_api_4_0_0.xml │ ├── Maven__jstl_jstl_1_2.xml │ ├── Maven__junit_junit_4_12.xml │ ├── Maven__log4j_log4j_1_2_17.xml │ ├── Maven__mysql_mysql_connector_java_5_1_35.xml │ ├── Maven__net_sf_ezmorph_ezmorph_1_0_6.xml │ ├── Maven__net_sf_json_lib_json_lib_jdk15_2_4.xml │ ├── Maven__org_apache_ant_ant_1_9_6.xml │ ├── Maven__org_apache_ant_ant_launcher_1_9_6.xml │ ├── Maven__org_apache_tomcat_servlet_api_6_0_53.xml │ ├── Maven__org_aspectj_aspectjweaver_1_8_13.xml │ ├── Maven__org_freemarker_freemarker_2_3_23.xml │ ├── Maven__org_hamcrest_hamcrest_core_1_3.xml │ ├── Maven__org_javassist_javassist_3_21_0_GA.xml │ ├── Maven__org_mybatis_mybatis_3_3_1.xml │ ├── Maven__org_mybatis_mybatis_spring_1_2_3.xml │ ├── Maven__org_ow2_asm_asm_6_0.xml │ ├── Maven__org_springframework_spring_aop_4_3_3_RELEASE.xml │ ├── Maven__org_springframework_spring_aspects_4_3_3_RELEASE.xml │ ├── Maven__org_springframework_spring_beans_4_3_3_RELEASE.xml │ ├── Maven__org_springframework_spring_context_4_3_3_RELEASE.xml │ ├── Maven__org_springframework_spring_context_support_4_3_3_RELEASE.xml │ ├── Maven__org_springframework_spring_core_4_3_3_RELEASE.xml │ ├── Maven__org_springframework_spring_expression_4_3_3_RELEASE.xml │ ├── Maven__org_springframework_spring_jdbc_4_3_3_RELEASE.xml │ ├── Maven__org_springframework_spring_test_4_3_3_RELEASE.xml │ ├── Maven__org_springframework_spring_tx_4_3_3_RELEASE.xml │ ├── Maven__org_springframework_spring_web_4_3_3_RELEASE.xml │ └── Maven__org_springframework_spring_webmvc_4_3_3_RELEASE.xml ├── misc.xml ├── modules.xml └── workspace.xml ├── heart_admin.iml ├── pom.xml └── src └── main ├── java └── com │ └── xupt │ ├── controller_admin │ ├── AdminArticleController.java │ ├── AdminController.java │ ├── AdminForumController.java │ ├── AdminMusicController.java │ ├── AdminTestPaperController.java │ ├── AdminTestRecordController.java │ └── AdminUserController.java │ ├── dao_admin │ ├── AdminAmlCommentDao.java │ ├── AdminArticleCommentDao.java │ ├── AdminArticleDao.java │ ├── AdminDao.java │ ├── AdminFmlCommentDao.java │ ├── AdminForumCommentDao.java │ ├── AdminForumDao.java │ ├── AdminMusicDao.java │ ├── AdminTestAnswerDao.java │ ├── AdminTestPaperDao.java │ ├── AdminTestRecordDao.java │ ├── AdminTestTitleDao.java │ └── AdminUserDao.java │ ├── service_admin │ ├── AdminAmlCommentService.java │ ├── AdminArticleCommentService.java │ ├── AdminArticleService.java │ ├── AdminFmlCommentService.java │ ├── AdminForumCommentService.java │ ├── AdminForumService.java │ ├── AdminMusicService.java │ ├── AdminService.java │ ├── AdminTestAnswerService.java │ ├── AdminTestPaperService.java │ ├── AdminTestRecordService.java │ ├── AdminTestTitleService.java │ └── AdminUserService.java │ ├── service_impl_admin │ ├── AdminAmlCommentServiceImpl.java │ ├── AdminArticleCommentServiceImpl.java │ ├── AdminArticleServiceImpl.java │ ├── AdminFmlCommentServiceImpl.java │ ├── AdminForumCommentServiceImpl.java │ ├── AdminForumServiceImpl.java │ ├── AdminMusicServiceImpl.java │ ├── AdminServiceImpl.java │ ├── AdminTestAnswerServiceImpl.java │ ├── AdminTestPaperServiceImpl.java │ ├── AdminTestRecordServiceImpl.java │ ├── AdminTestTitleServiceImpl.java │ └── AdminUserServiceImpl.java │ ├── util │ ├── AdminAddArticleState.java │ ├── AdminAddTeatPaperState.java │ ├── AdminArticleCommentState.java │ ├── AdminArticleState.java │ ├── AdminArticleTypesState.java │ ├── AdminArticlesState.java │ ├── AdminForumCommsState.java │ ├── AdminForumTypesState.java │ ├── AdminForumsState.java │ ├── AdminMLFmlCommentState.java │ ├── AdminMoreLevelArticleComState.java │ ├── AdminMusicAddState.java │ ├── AdminMusicState.java │ ├── AdminMusicTypesState.java │ ├── AdminMusicsState.java │ ├── AdminTestAnswersState.java │ ├── AdminTestPaperState.java │ ├── AdminTestPaperTypesState.java │ ├── AdminTestPapersState.java │ ├── AdminTestRecordsState.java │ ├── AdminTestTitlesState.java │ ├── AdminUsersState.java │ ├── QiNiuUtils.java │ ├── State.java │ └── Utils.java │ └── vo_admin │ ├── Admin.java │ ├── AdminAmlComment.java │ ├── AdminAnswer.java │ ├── AdminArticle.java │ ├── AdminArticle2.java │ ├── AdminArticle3.java │ ├── AdminArticleComment.java │ ├── AdminArticleType.java │ ├── AdminFmlComment.java │ ├── AdminForum.java │ ├── AdminForumComment.java │ ├── AdminForumType.java │ ├── AdminMusic.java │ ├── AdminMusic2.java │ ├── AdminMusic3.java │ ├── AdminMusicType.java │ ├── AdminPageBean.java │ ├── AdminTestAnswer.java │ ├── AdminTestPaper.java │ ├── AdminTestPaper2.java │ ├── AdminTestPaperType.java │ ├── AdminTestTitle.java │ ├── AdminUser.java │ └── AdminUserTestRecord.java ├── resources ├── jdbc.properties ├── keyword.properties ├── log4j.properties ├── mapper │ ├── AdminAmlCommentDao.xml │ ├── AdminArticleCommentDao.xml │ ├── AdminArticleDao.xml │ ├── AdminDao.xml │ ├── AdminFmlCommentDao.xml │ ├── AdminForumCommentDao.xml │ ├── AdminForumDao.xml │ ├── AdminMusicDao.xml │ ├── AdminTestAnswerDao.xml │ ├── AdminTestPaperDao.xml │ ├── AdminTestRecordDao.xml │ ├── AdminTestTitleDao.xml │ └── AdminUserDao.xml ├── mybatis-config.xml └── spring │ ├── spring-dao.xml │ └── spring-servlet.xml └── webapp ├── WEB-INF └── web.xml ├── addArticle.jsp ├── addMusic.jsp ├── addTestPaper.jsp ├── index.html ├── index.jsp └── static ├── css ├── app.260fd38757c8d00ad9ef739ca97bb2c9.css ├── color-dark.css ├── datasource.css ├── main.css └── theme-green │ ├── color-green.css │ ├── fonts │ ├── element-icons.ttf │ └── element-icons.woff │ └── index.css ├── fonts └── element-icons.b02bdc1.ttf ├── img ├── brown-papersq.82cd9f5.png ├── img.2aab7b4.jpg └── img.jpg ├── js ├── 0.622f043eb960c5fad156.js ├── 1.f228879549d7729bc52b.js ├── 10.7778a2e79991523d6bcc.js ├── 11.6fb189f9b4ce14a6d9ea.js ├── 12.f158a006c6b507bd4c72.js ├── 13.a1a50c9e6929d4a7bc2b.js ├── 14.6ceb3e05d1a8d05b1c73.js ├── 15.6f721ea88d96bf850190.js ├── 16.df061be5d154fe6332e4.js ├── 17.6976e4a81f60c7b20cb1.js ├── 18.ea11b04dde2921527fa5.js ├── 19.4b50ea4f2c4f369c722f.js ├── 2.e060091f4ea65ebb4d2c.js ├── 20.3d1efac106148a44fcb4.js ├── 21.b089005a200a56fe5127.js ├── 22.7f82cd9dc7d48f981311.js ├── 23.60248e603f08405fc87e.js ├── 25.2b3e494bf9961d09c2bc.js ├── 3.f54fe99acba8b8941228.js ├── 4.9533f6db6deeebe09334.js ├── 5.59e79b03585e9af9e77d.js ├── 6.344041641887e1d059ed.js ├── 7.133ca102a3363fe20ada.js ├── 8.ca769e74f696b829e446.js ├── 9.484f2fe0ad8e4d44931d.js ├── app.3e23a10b15bc83456111.js ├── manifest.a9e0422ed9b2f99be89d.js └── vendor.dll.js └── song ├── song1.mp3 └── song2.mp3 /.idea/artifacts/heart_admin_war.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/target 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__aopalliance_aopalliance_1_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__cglib_cglib_3_2_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_fasterxml_jackson_core_jackson_annotations_2_9_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_9_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_9_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_google_code_gson_gson_2_8_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_qiniu_happy_dns_java_0_1_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_qiniu_qiniu_java_sdk_7_2_10.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__com_squareup_okhttp3_okhttp_3_8_1.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__commons_beanutils_commons_beanutils_1_9_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_chain_commons_chain_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_collections_commons_collections_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_dbcp_commons_dbcp_1_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_digester_commons_digester_2_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_fileupload_commons_fileupload_1_3_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_io_commons_io_2_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_lang_commons_lang_2_6.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__commons_logging_commons_logging_api_1_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_pool_commons_pool_1_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__commons_validator_commons_validator_1_5_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__javax_servlet_javax_servlet_api_4_0_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__jstl_jstl_1_2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__junit_junit_4_12.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__log4j_log4j_1_2_17.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__mysql_mysql_connector_java_5_1_35.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_sf_ezmorph_ezmorph_1_0_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__net_sf_json_lib_json_lib_jdk15_2_4.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_ant_ant_1_9_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_ant_ant_launcher_1_9_6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_apache_tomcat_servlet_api_6_0_53.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_aspectj_aspectjweaver_1_8_13.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_freemarker_freemarker_2_3_23.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_javassist_javassist_3_21_0_GA.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_mybatis_3_3_1.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_mybatis_mybatis_spring_1_2_3.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_ow2_asm_asm_6_0.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_aop_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_aspects_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_beans_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_context_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_context_support_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_core_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_expression_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_jdbc_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_test_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_tx_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_web_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/libraries/Maven__org_springframework_spring_webmvc_4_3_3_RELEASE.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/controller_admin/AdminController.java: -------------------------------------------------------------------------------- 1 | package com.xupt.controller_admin; 2 | 3 | import com.xupt.service_admin.AdminService; 4 | import com.xupt.util.State; 5 | import com.xupt.util.Utils; 6 | import com.xupt.vo_admin.Admin; 7 | import net.sf.json.JSONObject; 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.RequestMethod; 11 | import org.springframework.web.bind.annotation.ResponseBody; 12 | 13 | import javax.annotation.Resource; 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpSession; 16 | 17 | /** 18 | * 用户控制器 19 | */ 20 | @Controller 21 | @RequestMapping("/mapis/admin") 22 | public class AdminController { 23 | 24 | @Resource 25 | AdminService adminService; 26 | 27 | @RequestMapping(path = "/login",method = RequestMethod.POST) 28 | @ResponseBody 29 | public State login(HttpServletRequest request){ 30 | String jsonString = Utils.getRequestBody(request); 31 | JSONObject obj = JSONObject.fromObject(jsonString); 32 | State state = new State(); 33 | if(jsonString != null){ 34 | Admin admin = adminService.login(obj.getString("account"),obj.getString("password")); 35 | if(admin != null){ 36 | state.setState(1); 37 | state.setMsg("成功"); 38 | HttpSession session = request.getSession(); 39 | session.removeAttribute("userInfo"); 40 | session.setAttribute("admin", admin); 41 | }else{ 42 | state.setState(0); 43 | state.setMsg("登录失败"); 44 | } 45 | }else{ 46 | state.setState(0); 47 | state.setMsg("请填写账户和密码"); 48 | } 49 | return state; 50 | } 51 | 52 | } -------------------------------------------------------------------------------- /src/main/java/com/xupt/controller_admin/AdminTestRecordController.java: -------------------------------------------------------------------------------- 1 | package com.xupt.controller_admin; 2 | 3 | import com.xupt.service_admin.AdminTestRecordService; 4 | import com.xupt.util.AdminTestRecordsState; 5 | import com.xupt.util.State; 6 | import com.xupt.util.Utils; 7 | import com.xupt.vo_admin.AdminUserTestRecord; 8 | import net.sf.json.JSONArray; 9 | import net.sf.json.JSONObject; 10 | import org.springframework.stereotype.Controller; 11 | import org.springframework.web.bind.annotation.RequestMapping; 12 | import org.springframework.web.bind.annotation.ResponseBody; 13 | 14 | import javax.annotation.Resource; 15 | import javax.servlet.http.HttpServletRequest; 16 | import java.util.List; 17 | 18 | @Controller 19 | @RequestMapping("/mapis/record") 20 | public class AdminTestRecordController { 21 | 22 | @Resource 23 | AdminTestRecordService adminTestRecordService; 24 | 25 | @RequestMapping("/getUserRecordsByUserId") 26 | @ResponseBody 27 | public AdminTestRecordsState getUserRecordsByUserId(HttpServletRequest request){ 28 | String jsonString = Utils.getRequestBody(request); 29 | JSONObject obj = JSONObject.fromObject(jsonString); 30 | 31 | JSONArray arr = obj.getJSONArray("ids"); 32 | Integer[] item = new Integer[arr.size()]; 33 | for (int i = 0;i < arr.size();i++){ 34 | item[i] = arr.getInt(i); 35 | } 36 | AdminTestRecordsState adminTestRecordsState = new AdminTestRecordsState(); 37 | List records = adminTestRecordService.getUserRecordsByUserId(item); 38 | if(records != null){ 39 | adminTestRecordsState.setState(1); 40 | adminTestRecordsState.setMsg("成功"); 41 | adminTestRecordsState.setList(records); 42 | }else{ 43 | adminTestRecordsState.setState(0); 44 | adminTestRecordsState.setMsg("失败"); 45 | adminTestRecordsState.setList(null); 46 | } 47 | return adminTestRecordsState; 48 | } 49 | 50 | @RequestMapping("/changeRecordStatus") 51 | @ResponseBody 52 | public State changeRecordStatus(HttpServletRequest request){ 53 | String jsonString = Utils.getRequestBody(request); 54 | JSONObject obj = JSONObject.fromObject(jsonString); 55 | State state = new State(); 56 | Integer change = adminTestRecordService.changeRecordStatus(Integer.parseInt(obj.getString("recordId"))); 57 | if(change != null){ 58 | state.setState(1); 59 | state.setMsg("成功"); 60 | }else{ 61 | state.setState(0); 62 | state.setMsg("失败"); 63 | } 64 | return state; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/controller_admin/AdminUserController.java: -------------------------------------------------------------------------------- 1 | package com.xupt.controller_admin; 2 | 3 | import com.xupt.service_admin.AdminUserService; 4 | import com.xupt.util.AdminUsersState; 5 | import com.xupt.util.Utils; 6 | import com.xupt.vo_admin.AdminPageBean; 7 | import com.xupt.vo_admin.AdminUser; 8 | import net.sf.json.JSONObject; 9 | import org.springframework.stereotype.Controller; 10 | import org.springframework.web.bind.annotation.RequestMapping; 11 | import org.springframework.web.bind.annotation.ResponseBody; 12 | 13 | import javax.annotation.Resource; 14 | import javax.servlet.http.HttpServletRequest; 15 | import java.util.ArrayList; 16 | import java.util.List; 17 | 18 | /** 19 | * 用户控制器 20 | */ 21 | @Controller 22 | @RequestMapping("/mapis/user") 23 | public class AdminUserController { 24 | 25 | @Resource 26 | AdminUserService adminUserService; 27 | 28 | @RequestMapping("/getUsers") 29 | @ResponseBody 30 | public AdminUsersState getUsers(HttpServletRequest request){ 31 | String jsonString = Utils.getRequestBody(request); 32 | JSONObject obj = JSONObject.fromObject(jsonString); 33 | AdminUsersState adminUsersState = new AdminUsersState(); 34 | AdminPageBean adminPageBean = new AdminPageBean(Integer.parseInt(obj.getString("page")),10); 35 | 36 | //获取当前页用户列表 37 | List users = adminUserService.getUsers(adminPageBean); 38 | if(users != null){ 39 | adminUsersState.setState(1); 40 | adminUsersState.setMsg("成功"); 41 | adminUsersState.setList(users); 42 | }else{ 43 | adminUsersState.setState(0); 44 | adminUsersState.setMsg("失败"); 45 | adminUsersState.setList(null); 46 | } 47 | return adminUsersState; 48 | } 49 | 50 | @RequestMapping("/searchUser") 51 | @ResponseBody 52 | public AdminUsersState searchUser(HttpServletRequest request){ 53 | String jsonString = Utils.getRequestBody(request); 54 | JSONObject obj = JSONObject.fromObject(jsonString); 55 | AdminUsersState adminUsersState = new AdminUsersState(); 56 | List users = adminUserService.searchUser(); 57 | List list = new ArrayList(); 58 | if (users != null) { 59 | Boolean flag = false; 60 | for (int i = 0; i < users.size(); i++) { 61 | flag = users.get(i).toString().contains(obj.getString("keyWord")); 62 | if (flag) { 63 | list.add(users.get(i)); 64 | } 65 | } 66 | if (list.size() > 0) { 67 | adminUsersState.setState(1); 68 | adminUsersState.setMsg("成功"); 69 | adminUsersState.setList(list); 70 | adminUsersState.setTotal(list.size()); 71 | } else { 72 | adminUsersState.setState(0); 73 | adminUsersState.setMsg("未找到"); 74 | adminUsersState.setList(null); 75 | adminUsersState.setTotal(0); 76 | } 77 | } else { 78 | adminUsersState.setState(0); 79 | adminUsersState.setMsg("失败"); 80 | adminUsersState.setList(null); 81 | adminUsersState.setTotal(0); 82 | } 83 | return adminUsersState; 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminAmlCommentDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.AdminAmlComment; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminAmlCommentDao { 8 | 9 | /** 10 | * 根据评论编号,获取二级评论列表 11 | * @param articleId 12 | * @return 13 | */ 14 | public List getMoreLevelComment(Integer articleId); 15 | 16 | /** 17 | * 根据二级评论编号,删除评论 18 | * @param commentId 19 | * @return 20 | */ 21 | public Integer deleteMoreLevelComment(Integer commentId); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminArticleCommentDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.AdminArticleComment; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminArticleCommentDao { 8 | 9 | /** 10 | * 根据文章编号获取一级评论 11 | * @param articleId 12 | * @return 13 | */ 14 | public List getFirstLevelComment(Integer articleId); 15 | 16 | /** 17 | * 根据一级评论编号,删除评论 18 | * @param commentId 19 | * @return 20 | */ 21 | public Integer deleteFirstLevelComment(Integer commentId); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminArticleDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.*; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminArticleDao { 8 | 9 | /** 10 | * 获取文章类型列表 11 | * @return 12 | */ 13 | public List getLabels(); 14 | 15 | /** 16 | * 修改文章类型状态 17 | * @param lableId 18 | * @return 19 | */ 20 | public Integer changeLabelStatus(Integer lableId); 21 | 22 | /** 23 | * 添加文章类型 24 | * @param lableName 25 | * @return 26 | */ 27 | public Integer addLable(String lableName); 28 | 29 | /** 30 | * 获取文章列表 31 | * @param adminPageBean 32 | * @return 33 | */ 34 | public List getArticleList(AdminPageBean adminPageBean); 35 | 36 | /** 37 | * 获取文章总数 38 | * @return 39 | */ 40 | public Integer getTotalArticles(); 41 | 42 | /** 43 | * 根据文章编号获取文章信息 44 | * @param articleId 45 | * @return 46 | */ 47 | public AdminArticle getArticleById(Integer articleId); 48 | 49 | /** 50 | * 添加文章信息 51 | * @param adminArticle 52 | * @return 53 | */ 54 | public Integer addArticle(AdminArticle3 adminArticle); 55 | 56 | /** 57 | * 更新文章信息 58 | * @param adminArticle 59 | * @return 60 | */ 61 | public Integer editArticle(AdminArticle adminArticle); 62 | 63 | /** 64 | * 根据文章编号,删除文章 65 | * @param item 66 | * @return 67 | */ 68 | public Integer deleteArticles(Integer[] item); 69 | 70 | /** 71 | * 关键字搜索文章 72 | * @return 73 | */ 74 | public List searchArticles(); 75 | 76 | } 77 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.Admin; 4 | import org.apache.ibatis.annotations.Param; 5 | 6 | /** 7 | * 管理员数据库访问层接口 8 | */ 9 | public interface AdminDao { 10 | 11 | /** 12 | * 管理员密码登录 13 | * @param account 14 | * @param password 15 | * @return 16 | */ 17 | public Admin login(@Param("account") String account, @Param("password") String password); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminFmlCommentDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.AdminFmlComment; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminFmlCommentDao { 8 | 9 | /** 10 | * 根据论坛编号,获取二级评论信息 11 | * @param forumId 12 | * @return 13 | */ 14 | public List getMoreLevelComment(Integer forumId); 15 | 16 | /** 17 | * 根据二级评论编号,删除评论 18 | * @param commentId 19 | * @return 20 | */ 21 | public Integer deleteMoreLevelComment(Integer commentId); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminForumCommentDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.AdminForumComment; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminForumCommentDao { 8 | 9 | /** 10 | * 根据论坛编号,获取一级评论 11 | * @param forumId 12 | * @return 13 | */ 14 | public List getFirstLevelComment(Integer forumId); 15 | 16 | /** 17 | * 根据评论编号,删除评论 18 | * @param commentId 19 | * @return 20 | */ 21 | public Integer deleteFirstLevelComment(Integer commentId); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminForumDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.AdminForum; 4 | import com.xupt.vo_admin.AdminForumType; 5 | import com.xupt.vo_admin.AdminPageBean; 6 | 7 | import java.util.List; 8 | 9 | public interface AdminForumDao { 10 | 11 | /** 12 | * 获取评论列表 13 | * @param adminPageBean 14 | * @return 15 | */ 16 | public List getForumList(AdminPageBean adminPageBean); 17 | 18 | /** 19 | * 获取评论总数 20 | * @return 21 | */ 22 | public Integer getTotalForums(); 23 | 24 | /** 25 | * 搜索评论 26 | * @return 27 | */ 28 | public List searchForums(); 29 | 30 | /** 31 | * 根据评论编号,删除评论 32 | * @param item 33 | * @return 34 | */ 35 | public Integer deleteForums(Integer[] item); 36 | 37 | /** 38 | * 获取所有评论类型列表 39 | * @return 40 | */ 41 | public List getLabels(); 42 | 43 | /** 44 | * 根据类型编号,修改状态 45 | * @param labelId 46 | * @return 47 | */ 48 | public Integer changeLabelStatus(Integer labelId); 49 | 50 | /** 51 | * 添加评论类型 52 | * @param labelName 53 | * @return 54 | */ 55 | public Integer addLabel(String labelName); 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminMusicDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.*; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminMusicDao { 8 | 9 | /** 10 | * 获取音乐列表 11 | * @param adminPageBean 12 | * @return 13 | */ 14 | public List getMusicList(AdminPageBean adminPageBean); 15 | 16 | /** 17 | * 获取音乐总数 18 | * @return 19 | */ 20 | public Integer getTotalMusics(); 21 | 22 | /** 23 | * 根据音乐编号获取音乐信息 24 | * @param musicId 25 | * @return 26 | */ 27 | public AdminMusic2 getMusicById(Integer musicId); 28 | 29 | /** 30 | * 获取音乐类型列表 31 | * @return 32 | */ 33 | public List getLabels(); 34 | 35 | /** 36 | * 添加音乐 37 | * @param adminMusic3 38 | * @return 39 | */ 40 | public Integer addMusic(AdminMusic3 adminMusic3); 41 | 42 | /** 43 | * 更新音乐 44 | * @param adminMusic2 45 | * @return 46 | */ 47 | public Integer editMusic(AdminMusic2 adminMusic2); 48 | 49 | /** 50 | * 搜索音乐 51 | * @return 52 | */ 53 | public List searchMusics(); 54 | 55 | /** 56 | * 根据音乐编号删除音乐 57 | * @param item 58 | * @return 59 | */ 60 | public Integer deleteMusics(Integer[] item); 61 | 62 | /** 63 | * 根据类型编号,修改状态 64 | * @param labelId 65 | * @return 66 | */ 67 | public Integer changeLabelStatus(Integer labelId); 68 | 69 | /** 70 | * 添加音乐类型 71 | * @param labelName 72 | * @return 73 | */ 74 | public Integer addLabel(String labelName); 75 | } 76 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminTestAnswerDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.AdminAnswer; 4 | import com.xupt.vo_admin.AdminTestAnswer; 5 | 6 | public interface AdminTestAnswerDao { 7 | 8 | /** 9 | * 根据测试题目编号,获取测试答案 10 | * @param testId 11 | * @return 12 | */ 13 | public AdminTestAnswer getAnswer(Integer testId); 14 | 15 | /** 16 | * 更新测试答案 17 | * @param adminTestAnswer 18 | * @return 19 | */ 20 | public Integer editAnswer(AdminTestAnswer adminTestAnswer); 21 | 22 | /** 23 | * 添加指定测试试题的答案 24 | * @param adminAnswer 25 | * @return 26 | */ 27 | public Integer addAnswer(AdminAnswer adminAnswer); 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminTestPaperDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.AdminPageBean; 4 | import com.xupt.vo_admin.AdminTestPaper; 5 | import com.xupt.vo_admin.AdminTestPaper2; 6 | import com.xupt.vo_admin.AdminTestPaperType; 7 | 8 | import java.util.List; 9 | 10 | public interface AdminTestPaperDao { 11 | 12 | /** 13 | * 获取测试题列表 14 | * @param adminPageBean 15 | * @return 16 | */ 17 | public List getTestList(AdminPageBean adminPageBean); 18 | 19 | /** 20 | * 根据编号,获取测试题 21 | * @param testId 22 | * @return 23 | */ 24 | public AdminTestPaper2 getTestById(Integer testId); 25 | 26 | /** 27 | * 获取测试试题类型列表 28 | * @return 29 | */ 30 | public List getLabels(); 31 | 32 | /** 33 | * 更新测试题 34 | * @param adminTestPaper2 35 | * @return 36 | */ 37 | public Integer editTestPaper(AdminTestPaper2 adminTestPaper2); 38 | 39 | /** 40 | * 添加测试试题 41 | * @param adminTestPaper2 42 | * @return 43 | */ 44 | public Integer addTestPaper(AdminTestPaper2 adminTestPaper2); 45 | 46 | /** 47 | * 搜索试题 48 | * @return 49 | */ 50 | public List searchTest(); 51 | 52 | /** 53 | * 批量删除测试题 54 | * @param item 55 | * @return 56 | */ 57 | public Integer deleteTest(Integer[] item); 58 | 59 | /** 60 | * 根据编号,修改测试题的状态 61 | * @param labelId 62 | * @return 63 | */ 64 | public Integer changeLabelStatus(Integer labelId); 65 | 66 | /** 67 | * 添加测试类型 68 | * @param labelName 69 | * @return 70 | */ 71 | public Integer addLable(String labelName); 72 | } 73 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminTestRecordDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.AdminUserTestRecord; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminTestRecordDao { 8 | 9 | /** 10 | * 根据用户编号获取测试记录 11 | * @param item 12 | * @return 13 | */ 14 | public List getUserRecordsByUserId(Integer[] item); 15 | 16 | /** 17 | * 根据记录编号修改记录状态 18 | * @param recordId 19 | * @return 20 | */ 21 | public Integer changeRecordStatus(Integer recordId); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminTestTitleDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.AdminTestTitle; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminTestTitleDao { 8 | 9 | /** 10 | * 根据测试编号,获取测试题目 11 | * @param testId 12 | * @return 13 | */ 14 | public List getQuestions(Integer testId); 15 | 16 | /** 17 | * 批量删除问题 18 | * @param item 19 | * @return 20 | */ 21 | public Integer deleteTestQuestions(Integer[] item); 22 | 23 | /** 24 | * 添加试题题目 25 | * @param adminTestTitle 26 | * @return 27 | */ 28 | public Integer addQuestions(AdminTestTitle adminTestTitle); 29 | 30 | /** 31 | * 更新题目信息 32 | * @param adminTestTitle 33 | * @return 34 | */ 35 | public Integer editQuestions(AdminTestTitle adminTestTitle); 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/dao_admin/AdminUserDao.java: -------------------------------------------------------------------------------- 1 | package com.xupt.dao_admin; 2 | 3 | import com.xupt.vo_admin.AdminPageBean; 4 | import com.xupt.vo_admin.AdminUser; 5 | import com.xupt.vo_admin.AdminUserTestRecord; 6 | 7 | import java.util.ArrayList; 8 | import java.util.List; 9 | 10 | /** 11 | * User接口 12 | */ 13 | public interface AdminUserDao { 14 | /** 15 | * 获取当前页用户列表 16 | * @return 17 | */ 18 | public ArrayList getUsers(AdminPageBean adminPageBean); 19 | 20 | /** 21 | * 根据用户编号获取测试记录 22 | * @param user_id 23 | * @return 24 | */ 25 | public List getUserRecordsByUserId(Integer user_id); 26 | 27 | /** 28 | * 根据搜索的账户,获取用户列表 29 | * @return 30 | */ 31 | public List searchUser(); 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminAmlCommentService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.AdminAmlComment; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminAmlCommentService { 8 | 9 | /** 10 | * 根据评论编号,获取二级评论列表 11 | * @param articleId 12 | * @return 13 | */ 14 | public List getMoreLevelComment(Integer articleId); 15 | 16 | /** 17 | * 根据二级评论编号,删除评论 18 | * @param commentId 19 | * @return 20 | */ 21 | public Integer deleteMoreLevelComment(Integer commentId); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminArticleCommentService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.AdminArticleComment; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminArticleCommentService { 8 | 9 | /** 10 | * 根据文章编号获取一级评论 11 | * @param articleId 12 | * @return 13 | */ 14 | public List getFirstLevelComment(Integer articleId); 15 | 16 | /** 17 | * 根据一级评论编号,删除评论 18 | * @param commentId 19 | * @return 20 | */ 21 | public Integer deleteFirstLevelComment(Integer commentId); 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminArticleService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.*; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminArticleService { 8 | 9 | /** 10 | * 获取文章类型列表 11 | * @return 12 | */ 13 | public List getLabels(); 14 | 15 | /** 16 | * 修改文章类型状态 17 | * @param lableId 18 | * @return 19 | */ 20 | public Integer changeLabelStatus(Integer lableId); 21 | 22 | /** 23 | * 添加文章类型 24 | * @param lableName 25 | * @return 26 | */ 27 | public Integer addLable(String lableName); 28 | 29 | /** 30 | * 获取文章列表 31 | * @param adminPageBean 32 | * @return 33 | */ 34 | public List getArticleList(AdminPageBean adminPageBean); 35 | 36 | /** 37 | * 获取文章总数 38 | * @return 39 | */ 40 | public Integer getTotalArticles(); 41 | 42 | /** 43 | * 根据文章编号获取文章信息 44 | * @param articleId 45 | * @return 46 | */ 47 | public AdminArticle getArticleById(Integer articleId); 48 | 49 | /** 50 | * 添加文章信息 51 | * @param adminArticle 52 | * @return 53 | */ 54 | public Integer addArticle(AdminArticle3 adminArticle); 55 | 56 | /** 57 | * 更新文章信息 58 | * @param adminArticle 59 | * @return 60 | */ 61 | public Integer editArticle(AdminArticle adminArticle); 62 | 63 | /** 64 | * 根据文章编号,删除文章 65 | * @param item 66 | * @return 67 | */ 68 | public Integer deleteArticles(Integer[] item); 69 | 70 | /** 71 | * 关键字搜索文章 72 | * @return 73 | */ 74 | public List searchArticles(); 75 | 76 | } 77 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminFmlCommentService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.AdminFmlComment; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminFmlCommentService { 8 | 9 | /** 10 | * 根据论坛编号,获取二级评论信息 11 | * @param forumId 12 | * @return 13 | */ 14 | public List getMoreLevelComment(Integer forumId); 15 | 16 | /** 17 | * 根据二级评论编号,删除评论 18 | * @param commentId 19 | * @return 20 | */ 21 | public Integer deleteMoreLevelComment(Integer commentId); 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminForumCommentService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | 4 | import com.xupt.vo_admin.AdminForumComment; 5 | 6 | import java.util.List; 7 | 8 | public interface AdminForumCommentService { 9 | 10 | /** 11 | * 根据论坛编号,获取一级评论 12 | * @param forumId 13 | * @return 14 | */ 15 | public List getFirstLevelComment(Integer forumId); 16 | 17 | /** 18 | * 根据评论编号,删除评论 19 | * @param commentId 20 | * @return 21 | */ 22 | public Integer deleteFirstLevelComment(Integer commentId); 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminForumService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.AdminForum; 4 | import com.xupt.vo_admin.AdminForumType; 5 | import com.xupt.vo_admin.AdminPageBean; 6 | 7 | import java.util.List; 8 | 9 | public interface AdminForumService { 10 | 11 | /** 12 | * 获取评论列表 13 | * @param adminPageBean 14 | * @return 15 | */ 16 | public List getForumList(AdminPageBean adminPageBean); 17 | 18 | /** 19 | * 获取评论总数 20 | * @return 21 | */ 22 | public Integer getTotalForums(); 23 | 24 | /** 25 | * 搜索评论 26 | * @return 27 | */ 28 | public List searchForums(); 29 | 30 | /** 31 | * 根据评论编号,删除评论 32 | * @param item 33 | * @return 34 | */ 35 | public Integer deleteForums(Integer[] item); 36 | 37 | /** 38 | * 获取所有评论类型列表 39 | * @return 40 | */ 41 | public List getLabels(); 42 | 43 | /** 44 | * 根据类型编号,修改状态 45 | * @param labelId 46 | * @return 47 | */ 48 | public Integer changeLabelStatus(Integer labelId); 49 | 50 | /** 51 | * 添加评论类型 52 | * @param labelName 53 | * @return 54 | */ 55 | public Integer addLabel(String labelName); 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminMusicService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.*; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminMusicService { 8 | 9 | /** 10 | * 获取音乐列表 11 | * @param adminPageBean 12 | * @return 13 | */ 14 | public List getMusicList(AdminPageBean adminPageBean); 15 | 16 | /** 17 | * 获取音乐总数 18 | * @return 19 | */ 20 | public Integer getTotalMusics(); 21 | 22 | /** 23 | * 根据音乐编号获取音乐信息 24 | * @param musicId 25 | * @return 26 | */ 27 | public AdminMusic2 getMusicById(Integer musicId); 28 | 29 | /** 30 | * 获取音乐类型列表 31 | * @return 32 | */ 33 | public List getLabels(); 34 | 35 | /** 36 | * 添加音乐 37 | * @param adminMusic3 38 | * @return 39 | */ 40 | public Integer addMusic(AdminMusic3 adminMusic3); 41 | 42 | /** 43 | * 更新音乐 44 | * @param adminMusic2 45 | * @return 46 | */ 47 | public Integer editMusic(AdminMusic2 adminMusic2); 48 | 49 | /** 50 | * 搜索音乐 51 | * @return 52 | */ 53 | public List searchMusics(); 54 | 55 | /** 56 | * 根据音乐编号删除音乐 57 | * @param item 58 | * @return 59 | */ 60 | public Integer deleteMusics(Integer[] item); 61 | 62 | /** 63 | * 根据类型编号,修改状态 64 | * @param labelId 65 | * @return 66 | */ 67 | public Integer changeLabelStatus(Integer labelId); 68 | 69 | /** 70 | * 添加音乐类型 71 | * @param labelName 72 | * @return 73 | */ 74 | public Integer addLabel(String labelName); 75 | } 76 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.Admin; 4 | 5 | /** 6 | * 管理员业务逻辑层接口 7 | */ 8 | public interface AdminService { 9 | /** 10 | * 管理员密码登录 11 | * @param account 12 | * @param password 13 | * @return 14 | */ 15 | public Admin login(String account, String password); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminTestAnswerService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.AdminAnswer; 4 | import com.xupt.vo_admin.AdminTestAnswer; 5 | 6 | 7 | public interface AdminTestAnswerService { 8 | 9 | /** 10 | * 根据测试题目编号,获取测试答案 11 | * @param testId 12 | * @return 13 | */ 14 | public AdminTestAnswer getAnswer(Integer testId); 15 | 16 | /** 17 | * 更新测试答案 18 | * @param adminTestAnswer 19 | * @return 20 | */ 21 | public Integer editAnswer(AdminTestAnswer adminTestAnswer); 22 | 23 | /** 24 | * 添加指定测试试题的答案 25 | * @param adminAnswer 26 | * @return 27 | */ 28 | public Integer addAnswer(AdminAnswer adminAnswer); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminTestPaperService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.AdminPageBean; 4 | import com.xupt.vo_admin.AdminTestPaper; 5 | import com.xupt.vo_admin.AdminTestPaper2; 6 | import com.xupt.vo_admin.AdminTestPaperType; 7 | 8 | import java.util.List; 9 | 10 | public interface AdminTestPaperService { 11 | 12 | /** 13 | * 获取测试题列表 14 | * @param adminPageBean 15 | * @return 16 | */ 17 | public List getTestList(AdminPageBean adminPageBean); 18 | 19 | /** 20 | * 根据编号,获取测试题 21 | * @param testId 22 | * @return 23 | */ 24 | public AdminTestPaper2 getTestById(Integer testId); 25 | 26 | /** 27 | * 获取测试试题类型列表 28 | * @return 29 | */ 30 | public List getLabels(); 31 | 32 | /** 33 | * 更新测试题 34 | * @param adminTestPaper2 35 | * @return 36 | */ 37 | public Integer editTestPaper(AdminTestPaper2 adminTestPaper2); 38 | 39 | /** 40 | * 添加测试试题 41 | * @param adminTestPaper2 42 | * @return 43 | */ 44 | public Integer addTestPaper(AdminTestPaper2 adminTestPaper2); 45 | 46 | /** 47 | * 搜索试题 48 | * @return 49 | */ 50 | public List searchTest(); 51 | 52 | /** 53 | * 批量删除测试题 54 | * @param item 55 | * @return 56 | */ 57 | public Integer deleteTest(Integer[] item); 58 | 59 | /** 60 | * 根据编号,修改测试题的状态 61 | * @param labelId 62 | * @return 63 | */ 64 | public Integer changeLabelStatus(Integer labelId); 65 | 66 | /** 67 | * 添加测试类型 68 | * @param labelName 69 | * @return 70 | */ 71 | public Integer addLable(String labelName); 72 | } 73 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminTestRecordService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.AdminUserTestRecord; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminTestRecordService { 8 | 9 | /** 10 | * 根据用户编号获取测试记录 11 | * @param item 12 | * @return 13 | */ 14 | public List getUserRecordsByUserId(Integer[] item); 15 | 16 | /** 17 | * 根据记录编号修改记录状态 18 | * @param recordId 19 | * @return 20 | */ 21 | public Integer changeRecordStatus(Integer recordId); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminTestTitleService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.AdminTestTitle; 4 | 5 | import java.util.List; 6 | 7 | public interface AdminTestTitleService { 8 | 9 | /** 10 | * 根据测试编号,获取测试题目 11 | * @param testId 12 | * @return 13 | */ 14 | public List getQuestions(Integer testId); 15 | 16 | /** 17 | * 批量删除问题 18 | * @param item 19 | * @return 20 | */ 21 | public Integer deleteTestQuestions(Integer[] item); 22 | 23 | /** 24 | * 添加试题题目 25 | * @param adminTestTitle 26 | * @return 27 | */ 28 | public Integer addQuestions(AdminTestTitle adminTestTitle); 29 | 30 | /** 31 | * 更新题目信息 32 | * @param adminTestTitle 33 | * @return 34 | */ 35 | public Integer editQuestions(AdminTestTitle adminTestTitle); 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_admin/AdminUserService.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_admin; 2 | 3 | import com.xupt.vo_admin.AdminPageBean; 4 | import com.xupt.vo_admin.AdminUser; 5 | 6 | import java.util.List; 7 | 8 | /** 9 | * User业务逻辑接口 10 | */ 11 | public interface AdminUserService { 12 | 13 | /** 14 | * 获取当前页用户列表 15 | * @return 16 | */ 17 | public List getUsers(AdminPageBean adminPageBean); 18 | 19 | /** 20 | * 根据搜索的账户,获取用户列表 21 | * @return 22 | */ 23 | public List searchUser(); 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminAmlCommentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminAmlCommentDao; 4 | import com.xupt.service_admin.AdminAmlCommentService; 5 | import com.xupt.vo_admin.AdminAmlComment; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service 12 | public class AdminAmlCommentServiceImpl implements AdminAmlCommentService{ 13 | 14 | @Resource 15 | AdminAmlCommentDao adminAmlCommentDao; 16 | 17 | public List getMoreLevelComment(Integer articleId) { 18 | return adminAmlCommentDao.getMoreLevelComment(articleId); 19 | } 20 | 21 | public Integer deleteMoreLevelComment(Integer commentId) { 22 | return adminAmlCommentDao.deleteMoreLevelComment(commentId); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminArticleCommentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminArticleCommentDao; 4 | import com.xupt.service_admin.AdminArticleCommentService; 5 | import com.xupt.vo_admin.AdminArticleComment; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service 12 | public class AdminArticleCommentServiceImpl implements AdminArticleCommentService { 13 | 14 | @Resource 15 | AdminArticleCommentDao adminArticleCommentDao; 16 | 17 | public List getFirstLevelComment(Integer articleId) { 18 | return adminArticleCommentDao.getFirstLevelComment(articleId); 19 | } 20 | 21 | public Integer deleteFirstLevelComment(Integer commentId) { 22 | return adminArticleCommentDao.deleteFirstLevelComment(commentId); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminArticleServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminArticleDao; 4 | import com.xupt.service_admin.AdminArticleService; 5 | import com.xupt.vo_admin.*; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service 12 | public class AdminArticleServiceImpl implements AdminArticleService { 13 | 14 | @Resource 15 | AdminArticleDao adminArticleDao; 16 | 17 | public List getLabels() { 18 | return adminArticleDao.getLabels(); 19 | } 20 | 21 | public Integer changeLabelStatus(Integer lableId) { 22 | return adminArticleDao.changeLabelStatus(lableId); 23 | } 24 | 25 | public Integer addLable(String lableName) { 26 | return adminArticleDao.addLable(lableName); 27 | } 28 | 29 | public List getArticleList(AdminPageBean adminPageBean) { 30 | return adminArticleDao.getArticleList(adminPageBean); 31 | } 32 | 33 | public Integer getTotalArticles() { 34 | return adminArticleDao.getTotalArticles(); 35 | } 36 | 37 | public AdminArticle getArticleById(Integer articleId) { 38 | return adminArticleDao.getArticleById(articleId); 39 | } 40 | 41 | public Integer addArticle(AdminArticle3 adminArticle) { 42 | return adminArticleDao.addArticle(adminArticle); 43 | } 44 | 45 | public Integer editArticle(AdminArticle adminArticle) { 46 | return adminArticleDao.editArticle(adminArticle); 47 | } 48 | 49 | public Integer deleteArticles(Integer[] item) { 50 | return adminArticleDao.deleteArticles(item); 51 | } 52 | 53 | public List searchArticles() { 54 | return adminArticleDao.searchArticles(); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminFmlCommentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminFmlCommentDao; 4 | import com.xupt.service_admin.AdminFmlCommentService; 5 | import com.xupt.vo_admin.AdminFmlComment; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service 12 | public class AdminFmlCommentServiceImpl implements AdminFmlCommentService{ 13 | 14 | @Resource 15 | AdminFmlCommentDao adminFmlCommentDao; 16 | 17 | public List getMoreLevelComment(Integer forumId) { 18 | return adminFmlCommentDao.getMoreLevelComment(forumId); 19 | } 20 | 21 | public Integer deleteMoreLevelComment(Integer commentId) { 22 | return adminFmlCommentDao.deleteMoreLevelComment(commentId); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminForumCommentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminForumCommentDao; 4 | import com.xupt.service_admin.AdminForumCommentService; 5 | import com.xupt.vo_admin.AdminForumComment; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service 12 | public class AdminForumCommentServiceImpl implements AdminForumCommentService { 13 | 14 | @Resource 15 | AdminForumCommentDao adminForumCommentDao; 16 | 17 | public List getFirstLevelComment(Integer forumId) { 18 | return adminForumCommentDao.getFirstLevelComment(forumId); 19 | } 20 | 21 | public Integer deleteFirstLevelComment(Integer commentId) { 22 | return adminForumCommentDao.deleteFirstLevelComment(commentId); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminForumServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminForumDao; 4 | import com.xupt.service_admin.AdminForumService; 5 | import com.xupt.vo_admin.AdminForum; 6 | import com.xupt.vo_admin.AdminForumType; 7 | import com.xupt.vo_admin.AdminPageBean; 8 | import org.springframework.stereotype.Service; 9 | 10 | import javax.annotation.Resource; 11 | import java.util.List; 12 | 13 | @Service 14 | public class AdminForumServiceImpl implements AdminForumService { 15 | 16 | @Resource 17 | AdminForumDao adminForumDao; 18 | 19 | public List getForumList(AdminPageBean adminPageBean) { 20 | return adminForumDao.getForumList(adminPageBean); 21 | } 22 | 23 | public Integer getTotalForums() { 24 | return adminForumDao.getTotalForums(); 25 | } 26 | 27 | public List searchForums() { 28 | return adminForumDao.searchForums(); 29 | } 30 | 31 | public Integer deleteForums(Integer[] item) { 32 | return adminForumDao.deleteForums(item); 33 | } 34 | 35 | public List getLabels() { 36 | return adminForumDao.getLabels(); 37 | } 38 | 39 | public Integer changeLabelStatus(Integer labelId) { 40 | return adminForumDao.changeLabelStatus(labelId); 41 | } 42 | 43 | public Integer addLabel(String labelName) { 44 | return adminForumDao.addLabel(labelName); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminMusicServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminMusicDao; 4 | import com.xupt.service_admin.AdminMusicService; 5 | import com.xupt.vo_admin.*; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service 12 | public class AdminMusicServiceImpl implements AdminMusicService { 13 | 14 | @Resource 15 | AdminMusicDao adminMusicDao; 16 | 17 | public List getMusicList(AdminPageBean adminPageBean) { 18 | return adminMusicDao.getMusicList(adminPageBean); 19 | } 20 | 21 | public Integer getTotalMusics() { 22 | return adminMusicDao.getTotalMusics(); 23 | } 24 | 25 | public AdminMusic2 getMusicById(Integer musicId) { 26 | return adminMusicDao.getMusicById(musicId); 27 | } 28 | 29 | public List getLabels() { 30 | return adminMusicDao.getLabels(); 31 | } 32 | 33 | public Integer addMusic(AdminMusic3 adminMusic3) { 34 | return adminMusicDao.addMusic(adminMusic3); 35 | } 36 | 37 | public Integer editMusic(AdminMusic2 adminMusic2) { 38 | return adminMusicDao.editMusic(adminMusic2); 39 | } 40 | 41 | public List searchMusics() { 42 | return adminMusicDao.searchMusics(); 43 | } 44 | 45 | public Integer deleteMusics(Integer[] item) { 46 | return adminMusicDao.deleteMusics(item); 47 | } 48 | 49 | public Integer changeLabelStatus(Integer labelId) { 50 | return adminMusicDao.changeLabelStatus(labelId); 51 | } 52 | 53 | public Integer addLabel(String labelName) { 54 | return adminMusicDao.addLabel(labelName); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminDao; 4 | import com.xupt.service_admin.AdminService; 5 | import com.xupt.vo_admin.Admin; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | 10 | @Service 11 | public class AdminServiceImpl implements AdminService { 12 | 13 | @Resource 14 | AdminDao adminDao; 15 | 16 | public Admin login(String account, String password) { 17 | return adminDao.login(account, password); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminTestAnswerServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminTestAnswerDao; 4 | import com.xupt.service_admin.AdminTestAnswerService; 5 | import com.xupt.vo_admin.AdminAnswer; 6 | import com.xupt.vo_admin.AdminTestAnswer; 7 | import org.springframework.stereotype.Service; 8 | 9 | import javax.annotation.Resource; 10 | 11 | @Service 12 | public class AdminTestAnswerServiceImpl implements AdminTestAnswerService { 13 | 14 | @Resource 15 | AdminTestAnswerDao adminTestAnswerDao; 16 | 17 | public AdminTestAnswer getAnswer(Integer testId) { 18 | return adminTestAnswerDao.getAnswer(testId); 19 | } 20 | 21 | public Integer editAnswer(AdminTestAnswer adminTestAnswer) { 22 | return adminTestAnswerDao.editAnswer(adminTestAnswer); 23 | } 24 | 25 | public Integer addAnswer(AdminAnswer adminAnswer) { 26 | return adminTestAnswerDao.addAnswer(adminAnswer); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminTestPaperServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminTestPaperDao; 4 | import com.xupt.service_admin.AdminTestPaperService; 5 | import com.xupt.vo_admin.AdminPageBean; 6 | import com.xupt.vo_admin.AdminTestPaper; 7 | import com.xupt.vo_admin.AdminTestPaper2; 8 | import com.xupt.vo_admin.AdminTestPaperType; 9 | import org.springframework.stereotype.Service; 10 | 11 | import javax.annotation.Resource; 12 | import java.util.List; 13 | 14 | @Service 15 | public class AdminTestPaperServiceImpl implements AdminTestPaperService { 16 | 17 | @Resource 18 | AdminTestPaperDao adminTestPaperDao; 19 | 20 | public List getTestList(AdminPageBean adminPageBean) { 21 | return adminTestPaperDao.getTestList(adminPageBean); 22 | } 23 | 24 | public AdminTestPaper2 getTestById(Integer testId) { 25 | return adminTestPaperDao.getTestById(testId); 26 | } 27 | 28 | public List getLabels() { 29 | return adminTestPaperDao.getLabels(); 30 | } 31 | 32 | public Integer editTestPaper(AdminTestPaper2 adminTestPaper2) { 33 | return adminTestPaperDao.editTestPaper(adminTestPaper2); 34 | } 35 | 36 | public Integer addTestPaper(AdminTestPaper2 adminTestPaper2) { 37 | return adminTestPaperDao.addTestPaper(adminTestPaper2); 38 | } 39 | 40 | public List searchTest() { 41 | return adminTestPaperDao.searchTest(); 42 | } 43 | 44 | public Integer deleteTest(Integer[] item) { 45 | return adminTestPaperDao.deleteTest(item); 46 | } 47 | 48 | public Integer changeLabelStatus(Integer labelId) { 49 | return adminTestPaperDao.changeLabelStatus(labelId); 50 | } 51 | 52 | public Integer addLable(String labelName) { 53 | return adminTestPaperDao.addLable(labelName); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminTestRecordServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminTestRecordDao; 4 | import com.xupt.service_admin.AdminTestRecordService; 5 | import com.xupt.vo_admin.AdminUserTestRecord; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service 12 | public class AdminTestRecordServiceImpl implements AdminTestRecordService{ 13 | 14 | @Resource 15 | AdminTestRecordDao adminTestRecordDao; 16 | 17 | public List getUserRecordsByUserId(Integer[] item) { 18 | return adminTestRecordDao.getUserRecordsByUserId(item); 19 | } 20 | 21 | public Integer changeRecordStatus(Integer recordId) { 22 | return adminTestRecordDao.changeRecordStatus(recordId); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminTestTitleServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | import com.xupt.dao_admin.AdminTestTitleDao; 4 | import com.xupt.service_admin.AdminTestTitleService; 5 | import com.xupt.vo_admin.AdminTestTitle; 6 | import org.springframework.stereotype.Service; 7 | 8 | import javax.annotation.Resource; 9 | import java.util.List; 10 | 11 | @Service 12 | public class AdminTestTitleServiceImpl implements AdminTestTitleService { 13 | 14 | @Resource 15 | AdminTestTitleDao adminTestTitleDao; 16 | 17 | public List getQuestions(Integer testId) { 18 | return adminTestTitleDao.getQuestions(testId); 19 | } 20 | 21 | public Integer deleteTestQuestions(Integer[] item) { 22 | return adminTestTitleDao.deleteTestQuestions(item); 23 | } 24 | 25 | public Integer addQuestions(AdminTestTitle adminTestTitle) { 26 | return adminTestTitleDao.addQuestions(adminTestTitle); 27 | } 28 | 29 | public Integer editQuestions(AdminTestTitle adminTestTitle) { 30 | return adminTestTitleDao.editQuestions(adminTestTitle); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/service_impl_admin/AdminUserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.xupt.service_impl_admin; 2 | 3 | 4 | import com.xupt.dao_admin.AdminUserDao; 5 | import com.xupt.service_admin.AdminUserService; 6 | import com.xupt.vo_admin.AdminPageBean; 7 | import com.xupt.vo_admin.AdminUser; 8 | import org.springframework.stereotype.Service; 9 | 10 | import javax.annotation.Resource; 11 | import java.util.ArrayList; 12 | import java.util.List; 13 | 14 | /** 15 | * User接口实现类 16 | */ 17 | @Service 18 | public class AdminUserServiceImpl implements AdminUserService { 19 | 20 | @Resource 21 | AdminUserDao adminUserDao; 22 | 23 | public ArrayList getUsers(AdminPageBean adminPageBean) { 24 | return adminUserDao.getUsers(adminPageBean); 25 | } 26 | 27 | public List searchUser() { 28 | return adminUserDao.searchUser(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminAddArticleState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | public class AdminAddArticleState { 4 | private Integer state; 5 | private String msg; 6 | private Integer articleId; 7 | 8 | public Integer getState() { 9 | return state; 10 | } 11 | 12 | public void setState(Integer state) { 13 | this.state = state; 14 | } 15 | 16 | public String getMsg() { 17 | return msg; 18 | } 19 | 20 | public void setMsg(String msg) { 21 | this.msg = msg; 22 | } 23 | 24 | public Integer getArticleId() { 25 | return articleId; 26 | } 27 | 28 | public void setArticleId(Integer articleId) { 29 | this.articleId = articleId; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminAddTeatPaperState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | public class AdminAddTeatPaperState { 4 | private Integer state; 5 | private String msg; 6 | private Integer testId; 7 | 8 | public Integer getState() { 9 | return state; 10 | } 11 | 12 | public void setState(Integer state) { 13 | this.state = state; 14 | } 15 | 16 | public String getMsg() { 17 | return msg; 18 | } 19 | 20 | public void setMsg(String msg) { 21 | this.msg = msg; 22 | } 23 | 24 | public Integer getTestId() { 25 | return testId; 26 | } 27 | 28 | public void setTestId(Integer testId) { 29 | this.testId = testId; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminArticleCommentState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminArticleComment; 4 | 5 | import java.util.List; 6 | 7 | public class AdminArticleCommentState { 8 | private Integer state; 9 | private String msg; 10 | private List list; 11 | 12 | public Integer getState() { 13 | return state; 14 | } 15 | 16 | public void setState(Integer state) { 17 | this.state = state; 18 | } 19 | 20 | public String getMsg() { 21 | return msg; 22 | } 23 | 24 | public void setMsg(String msg) { 25 | this.msg = msg; 26 | } 27 | 28 | public List getList() { 29 | return list; 30 | } 31 | 32 | public void setList(List list) { 33 | this.list = list; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminArticleState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminArticle; 4 | 5 | public class AdminArticleState { 6 | private Integer state; 7 | private String msg; 8 | private AdminArticle list; 9 | 10 | public Integer getState() { 11 | return state; 12 | } 13 | 14 | public void setState(Integer state) { 15 | this.state = state; 16 | } 17 | 18 | public String getMsg() { 19 | return msg; 20 | } 21 | 22 | public void setMsg(String msg) { 23 | this.msg = msg; 24 | } 25 | 26 | public AdminArticle getList() { 27 | return list; 28 | } 29 | 30 | public void setList(AdminArticle list) { 31 | this.list = list; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminArticleTypesState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminArticleType; 4 | 5 | import java.util.List; 6 | 7 | public class AdminArticleTypesState { 8 | private Integer state; 9 | private String msg; 10 | private List list; 11 | 12 | public Integer getState() { 13 | return state; 14 | } 15 | 16 | public void setState(Integer state) { 17 | this.state = state; 18 | } 19 | 20 | public String getMsg() { 21 | return msg; 22 | } 23 | 24 | public void setMsg(String msg) { 25 | this.msg = msg; 26 | } 27 | 28 | public List getList() { 29 | return list; 30 | } 31 | 32 | public void setList(List list) { 33 | this.list = list; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminArticlesState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import java.util.List; 4 | 5 | public class AdminArticlesState { 6 | private Integer state; 7 | private String msg; 8 | private Integer total; 9 | private List list; 10 | 11 | public Integer getState() { 12 | return state; 13 | } 14 | 15 | public void setState(Integer state) { 16 | this.state = state; 17 | } 18 | 19 | public String getMsg() { 20 | return msg; 21 | } 22 | 23 | public void setMsg(String msg) { 24 | this.msg = msg; 25 | } 26 | 27 | public Integer getTotal() { 28 | return total; 29 | } 30 | 31 | public void setTotal(Integer total) { 32 | this.total = total; 33 | } 34 | 35 | public List getList() { 36 | return list; 37 | } 38 | 39 | public void setList(List list) { 40 | this.list = list; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminForumCommsState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminForumComment; 4 | 5 | import java.util.List; 6 | 7 | public class AdminForumCommsState { 8 | 9 | private Integer state; 10 | private String msg; 11 | private List list; 12 | 13 | public Integer getState() { 14 | return state; 15 | } 16 | 17 | public void setState(Integer state) { 18 | this.state = state; 19 | } 20 | 21 | public String getMsg() { 22 | return msg; 23 | } 24 | 25 | public void setMsg(String msg) { 26 | this.msg = msg; 27 | } 28 | 29 | public List getList() { 30 | return list; 31 | } 32 | 33 | public void setList(List list) { 34 | this.list = list; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminForumTypesState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminForumType; 4 | 5 | import java.util.List; 6 | 7 | public class AdminForumTypesState { 8 | private Integer state; 9 | private String msg; 10 | private List list; 11 | 12 | public Integer getState() { 13 | return state; 14 | } 15 | 16 | public void setState(Integer state) { 17 | this.state = state; 18 | } 19 | 20 | public String getMsg() { 21 | return msg; 22 | } 23 | 24 | public void setMsg(String msg) { 25 | this.msg = msg; 26 | } 27 | 28 | public List getList() { 29 | return list; 30 | } 31 | 32 | public void setList(List list) { 33 | this.list = list; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminForumsState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminForum; 4 | 5 | import java.util.List; 6 | 7 | public class AdminForumsState { 8 | 9 | private Integer state; 10 | private String msg; 11 | private Integer total; 12 | private List list; 13 | 14 | public Integer getState() { 15 | return state; 16 | } 17 | 18 | public void setState(Integer state) { 19 | this.state = state; 20 | } 21 | 22 | public String getMsg() { 23 | return msg; 24 | } 25 | 26 | public void setMsg(String msg) { 27 | this.msg = msg; 28 | } 29 | 30 | public Integer getTotal() { 31 | return total; 32 | } 33 | 34 | public void setTotal(Integer total) { 35 | this.total = total; 36 | } 37 | 38 | public List getList() { 39 | return list; 40 | } 41 | 42 | public void setList(List list) { 43 | this.list = list; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminMLFmlCommentState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminFmlComment; 4 | 5 | import java.util.List; 6 | 7 | public class AdminMLFmlCommentState { 8 | private Integer state; 9 | private String msg; 10 | private List list; 11 | 12 | public Integer getState() { 13 | return state; 14 | } 15 | 16 | public void setState(Integer state) { 17 | this.state = state; 18 | } 19 | 20 | public String getMsg() { 21 | return msg; 22 | } 23 | 24 | public void setMsg(String msg) { 25 | this.msg = msg; 26 | } 27 | 28 | public List getList() { 29 | return list; 30 | } 31 | 32 | public void setList(List list) { 33 | this.list = list; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminMoreLevelArticleComState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminAmlComment; 4 | 5 | import java.util.List; 6 | 7 | public class AdminMoreLevelArticleComState { 8 | private Integer state; 9 | private String msg; 10 | private List list; 11 | 12 | public Integer getState() { 13 | return state; 14 | } 15 | 16 | public void setState(Integer state) { 17 | this.state = state; 18 | } 19 | 20 | public String getMsg() { 21 | return msg; 22 | } 23 | 24 | public void setMsg(String msg) { 25 | this.msg = msg; 26 | } 27 | 28 | public List getList() { 29 | return list; 30 | } 31 | 32 | public void setList(List list) { 33 | this.list = list; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminMusicAddState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | public class AdminMusicAddState { 4 | private Integer state; 5 | private String msg; 6 | private Integer musicId; 7 | 8 | public Integer getState() { 9 | return state; 10 | } 11 | 12 | public void setState(Integer state) { 13 | this.state = state; 14 | } 15 | 16 | public String getMsg() { 17 | return msg; 18 | } 19 | 20 | public void setMsg(String msg) { 21 | this.msg = msg; 22 | } 23 | 24 | public Integer getMusicId() { 25 | return musicId; 26 | } 27 | 28 | public void setMusicId(Integer musicId) { 29 | this.musicId = musicId; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminMusicState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminMusic2; 4 | 5 | public class AdminMusicState { 6 | private Integer state; 7 | private String msg; 8 | private AdminMusic2 list; 9 | 10 | public Integer getState() { 11 | return state; 12 | } 13 | 14 | public void setState(Integer state) { 15 | this.state = state; 16 | } 17 | 18 | public String getMsg() { 19 | return msg; 20 | } 21 | 22 | public void setMsg(String msg) { 23 | this.msg = msg; 24 | } 25 | 26 | public AdminMusic2 getList() { 27 | return list; 28 | } 29 | 30 | public void setList(AdminMusic2 list) { 31 | this.list = list; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminMusicTypesState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminMusicType; 4 | 5 | import java.util.List; 6 | 7 | public class AdminMusicTypesState { 8 | private Integer state; 9 | private String msg; 10 | private List list; 11 | 12 | public Integer getState() { 13 | return state; 14 | } 15 | 16 | public void setState(Integer state) { 17 | this.state = state; 18 | } 19 | 20 | public String getMsg() { 21 | return msg; 22 | } 23 | 24 | public void setMsg(String msg) { 25 | this.msg = msg; 26 | } 27 | 28 | public List getList() { 29 | return list; 30 | } 31 | 32 | public void setList(List list) { 33 | this.list = list; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminMusicsState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminMusic; 4 | 5 | import java.util.List; 6 | 7 | public class AdminMusicsState { 8 | 9 | private Integer state; 10 | private String msg; 11 | private Integer total; 12 | private List list; 13 | 14 | public Integer getState() { 15 | return state; 16 | } 17 | 18 | public void setState(Integer state) { 19 | this.state = state; 20 | } 21 | 22 | public String getMsg() { 23 | return msg; 24 | } 25 | 26 | public void setMsg(String msg) { 27 | this.msg = msg; 28 | } 29 | 30 | public Integer getTotal() { 31 | return total; 32 | } 33 | 34 | public void setTotal(Integer total) { 35 | this.total = total; 36 | } 37 | 38 | public List getList() { 39 | return list; 40 | } 41 | 42 | public void setList(List list) { 43 | this.list = list; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminTestAnswersState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminTestAnswer; 4 | 5 | 6 | public class AdminTestAnswersState { 7 | private Integer state; 8 | private String msg; 9 | private AdminTestAnswer list; 10 | 11 | public Integer getState() { 12 | return state; 13 | } 14 | 15 | public void setState(Integer state) { 16 | this.state = state; 17 | } 18 | 19 | public String getMsg() { 20 | return msg; 21 | } 22 | 23 | public void setMsg(String msg) { 24 | this.msg = msg; 25 | } 26 | 27 | public AdminTestAnswer getList() { 28 | return list; 29 | } 30 | 31 | public void setList(AdminTestAnswer list) { 32 | this.list = list; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminTestPaperState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminTestPaper2; 4 | 5 | public class AdminTestPaperState { 6 | private Integer state; 7 | private String msg; 8 | private AdminTestPaper2 list; 9 | 10 | public Integer getState() { 11 | return state; 12 | } 13 | 14 | public void setState(Integer state) { 15 | this.state = state; 16 | } 17 | 18 | public String getMsg() { 19 | return msg; 20 | } 21 | 22 | public void setMsg(String msg) { 23 | this.msg = msg; 24 | } 25 | 26 | public AdminTestPaper2 getList() { 27 | return list; 28 | } 29 | 30 | public void setList(AdminTestPaper2 list) { 31 | this.list = list; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminTestPaperTypesState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminTestPaperType; 4 | 5 | import java.util.List; 6 | 7 | public class AdminTestPaperTypesState { 8 | private Integer state; 9 | private String msg; 10 | private List list; 11 | 12 | public Integer getState() { 13 | return state; 14 | } 15 | 16 | public void setState(Integer state) { 17 | this.state = state; 18 | } 19 | 20 | public String getMsg() { 21 | return msg; 22 | } 23 | 24 | public void setMsg(String msg) { 25 | this.msg = msg; 26 | } 27 | 28 | public List getList() { 29 | return list; 30 | } 31 | 32 | public void setList(List list) { 33 | this.list = list; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminTestPapersState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminTestPaper; 4 | 5 | import java.util.List; 6 | 7 | public class AdminTestPapersState { 8 | private Integer state; 9 | private String msg; 10 | private Integer total; 11 | private List list; 12 | 13 | public Integer getState() { 14 | return state; 15 | } 16 | 17 | public void setState(Integer state) { 18 | this.state = state; 19 | } 20 | 21 | public String getMsg() { 22 | return msg; 23 | } 24 | 25 | public void setMsg(String msg) { 26 | this.msg = msg; 27 | } 28 | 29 | public Integer getTotal() { 30 | return total; 31 | } 32 | 33 | public void setTotal(Integer total) { 34 | this.total = total; 35 | } 36 | 37 | public List getList() { 38 | return list; 39 | } 40 | 41 | public void setList(List list) { 42 | this.list = list; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminTestRecordsState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminUserTestRecord; 4 | 5 | import java.util.List; 6 | 7 | public class AdminTestRecordsState { 8 | private Integer state; 9 | private String msg; 10 | private List list; 11 | 12 | public Integer getState() { 13 | return state; 14 | } 15 | 16 | public void setState(Integer state) { 17 | this.state = state; 18 | } 19 | 20 | public String getMsg() { 21 | return msg; 22 | } 23 | 24 | public void setMsg(String msg) { 25 | this.msg = msg; 26 | } 27 | 28 | public List getList() { 29 | return list; 30 | } 31 | 32 | public void setList(List list) { 33 | this.list = list; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminTestTitlesState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminTestTitle; 4 | 5 | import java.util.List; 6 | 7 | public class AdminTestTitlesState { 8 | 9 | private Integer state; 10 | private String msg; 11 | private List list; 12 | 13 | public Integer getState() { 14 | return state; 15 | } 16 | 17 | public void setState(Integer state) { 18 | this.state = state; 19 | } 20 | 21 | public String getMsg() { 22 | return msg; 23 | } 24 | 25 | public void setMsg(String msg) { 26 | this.msg = msg; 27 | } 28 | 29 | public List getList() { 30 | return list; 31 | } 32 | 33 | public void setList(List list) { 34 | this.list = list; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/AdminUsersState.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.xupt.vo_admin.AdminUser; 4 | 5 | import java.util.List; 6 | 7 | public class AdminUsersState { 8 | private Integer state; 9 | private String msg; 10 | private Integer total; 11 | private List list; 12 | 13 | public Integer getState() { 14 | return state; 15 | } 16 | 17 | public void setState(Integer state) { 18 | this.state = state; 19 | } 20 | 21 | public String getMsg() { 22 | return msg; 23 | } 24 | 25 | public void setMsg(String msg) { 26 | this.msg = msg; 27 | } 28 | 29 | public List getList() { 30 | return list; 31 | } 32 | 33 | public void setList(List list) { 34 | this.list = list; 35 | } 36 | 37 | public Integer getTotal() { 38 | return total; 39 | } 40 | 41 | public void setTotal(Integer total) { 42 | this.total = total; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/QiNiuUtils.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | import com.google.gson.Gson; 4 | import com.qiniu.common.QiniuException; 5 | import com.qiniu.common.Zone; 6 | import com.qiniu.http.Response; 7 | import com.qiniu.storage.BucketManager; 8 | import com.qiniu.storage.Configuration; 9 | import com.qiniu.storage.UploadManager; 10 | import com.qiniu.storage.model.DefaultPutRet; 11 | import com.qiniu.util.Auth; 12 | import org.springframework.web.multipart.MultipartFile; 13 | 14 | import java.io.ByteArrayInputStream; 15 | import java.io.IOException; 16 | 17 | public class QiNiuUtils { 18 | //设置秘钥 19 | public static final String ACCESS_KEY = "PP0-WfHqwTiyu1GEoyvkSna-7dr7fDRFnukMkSyo"; 20 | public static final String SECRET_KEY = "yf4VSikAyab705zxOZm8znVgOC3iZ6xp84fHUw1g"; 21 | public static final String filePath_img = "http://p7km87g42.bkt.clouddn.com/"; 22 | public static final String filePath_song = "http://p7kmu6zps.bkt.clouddn.com/"; 23 | 24 | //存储图片和音乐空间名 25 | private static final String bucket = "picture"; 26 | public static final String save_img = "heart-website-img"; 27 | public static final String save_song = "heart-website-song"; 28 | 29 | /** 30 | * 设置指定的存储空间 31 | * @param bucketName 32 | * @return 33 | */ 34 | public static String token(String bucketName){ 35 | Auth auth = Auth.create(ACCESS_KEY,SECRET_KEY); 36 | String upToken = auth.uploadToken(bucketName); 37 | return upToken; 38 | } 39 | 40 | /** 41 | * 设置默认的存储空间 42 | * @return 43 | */ 44 | public static String token() { 45 | Auth auth = Auth.create(ACCESS_KEY, SECRET_KEY); 46 | String upToken = auth.uploadToken(bucket); 47 | return upToken; 48 | } 49 | 50 | /** 51 | * 上传文件 52 | * @param fileName 53 | * @param flag 54 | * @return 55 | */ 56 | public static String uploadFile(MultipartFile file, String fileName, Integer flag) { 57 | String bucketName = save_img; 58 | String filePath = filePath_img; 59 | if(flag == 1){ 60 | bucketName = save_song; 61 | filePath = filePath_song; 62 | } 63 | try { 64 | byte[] bytes = file.getBytes(); 65 | ByteArrayInputStream byteInputStream = new ByteArrayInputStream(bytes); 66 | Configuration cfg = new Configuration(Zone.zone2()); //华南 67 | UploadManager uploadManager = new UploadManager(cfg); 68 | Response response = uploadManager.put(byteInputStream, fileName, token(bucketName),null,null); 69 | // 解析上传成功的结果 70 | DefaultPutRet putRet = new Gson().fromJson(response.bodyString(), DefaultPutRet.class); 71 | //System.out.println(putRet.key); 72 | //System.out.println(putRet.hash); 73 | return filePath + fileName; 74 | } catch (QiniuException ex) { 75 | Response r = ex.response; 76 | try { 77 | System.err.println(r.bodyString()); 78 | } catch (QiniuException ex2) { 79 | ex2.printStackTrace(); 80 | } 81 | return null; 82 | }catch(IOException e){ 83 | e.printStackTrace(); 84 | return null; 85 | } 86 | } 87 | 88 | /** 89 | * 根据Key值删除云端文件 90 | * @param key 91 | */ 92 | public static Boolean deleteFile(String key){ 93 | Configuration cfg = new Configuration(Zone.zone2()); 94 | Auth auth = Auth.create(ACCESS_KEY, SECRET_KEY); 95 | BucketManager bucketManager = new BucketManager(auth, cfg); 96 | try { 97 | Response result = bucketManager.delete(bucket, key); 98 | System.err.println(new Gson().toJson(result)); 99 | if(result.statusCode==200){ 100 | return true; 101 | } 102 | } catch (QiniuException ex) { 103 | //如果遇到异常,说明删除失败 104 | System.err.println(ex.code()); 105 | System.err.println(ex.response.toString()); 106 | } 107 | return false; 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/util/State.java: -------------------------------------------------------------------------------- 1 | package com.xupt.util; 2 | 3 | public class State { 4 | 5 | private int state; 6 | private String msg; 7 | 8 | public int getState() { 9 | return state; 10 | } 11 | 12 | public void setState(int state) { 13 | this.state = state; 14 | } 15 | 16 | public String getMsg() { 17 | return msg; 18 | } 19 | 20 | public void setMsg(String msg) { 21 | this.msg = msg; 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/Admin.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | /** 4 | * 管理员信息 5 | */ 6 | public class Admin { 7 | private Integer admin_id; 8 | 9 | private String account; 10 | 11 | private String password; 12 | 13 | private String nickname; 14 | 15 | public Integer getAdmin_id() { 16 | return admin_id; 17 | } 18 | 19 | public void setAdmin_id(Integer admin_id) { 20 | this.admin_id = admin_id; 21 | } 22 | 23 | public String getAccount() { 24 | return account; 25 | } 26 | 27 | public void setAccount(String account) { 28 | this.account = account; 29 | } 30 | 31 | public String getPassword() { 32 | return password; 33 | } 34 | 35 | public void setPassword(String password) { 36 | this.password = password; 37 | } 38 | 39 | public String getNickname() { return nickname; } 40 | 41 | public void setNickname(String nickname) { this.nickname = nickname; } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminAmlComment.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminAmlComment { 4 | private Integer ml_comment_id; 5 | private Integer comment_id; 6 | private String user_one; 7 | private String user_two; 8 | private String aml_content; 9 | private String aml_comment_date; 10 | 11 | public Integer getMl_comment_id() { 12 | return ml_comment_id; 13 | } 14 | 15 | public void setMl_comment_id(Integer ml_comment_id) { 16 | this.ml_comment_id = ml_comment_id; 17 | } 18 | 19 | public Integer getComment_id() { 20 | return comment_id; 21 | } 22 | 23 | public void setComment_id(Integer comment_id) { 24 | this.comment_id = comment_id; 25 | } 26 | 27 | public String getUser_one() { 28 | return user_one; 29 | } 30 | 31 | public void setUser_one(String user_one) { 32 | this.user_one = user_one; 33 | } 34 | 35 | public String getUser_two() { 36 | return user_two; 37 | } 38 | 39 | public void setUser_two(String user_two) { 40 | this.user_two = user_two; 41 | } 42 | 43 | public String getAml_content() { 44 | return aml_content; 45 | } 46 | 47 | public void setAml_content(String aml_content) { 48 | this.aml_content = aml_content; 49 | } 50 | 51 | public String getAml_comment_date() { 52 | return aml_comment_date; 53 | } 54 | 55 | public void setAml_comment_date(String aml_comment_date) { 56 | this.aml_comment_date = aml_comment_date; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminAnswer.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminAnswer { 4 | private Integer answer_id; 5 | private Integer test_id; 6 | private String region_one; 7 | private String region_two; 8 | private String region_three; 9 | 10 | public Integer getAnswer_id() { 11 | return answer_id; 12 | } 13 | 14 | public void setAnswer_id(Integer answer_id) { 15 | this.answer_id = answer_id; 16 | } 17 | 18 | public Integer getTest_id() { 19 | return test_id; 20 | } 21 | 22 | public void setTest_id(Integer test_id) { 23 | this.test_id = test_id; 24 | } 25 | 26 | public String getRegion_one() { 27 | return region_one; 28 | } 29 | 30 | public void setRegion_one(String region_one) { 31 | this.region_one = region_one; 32 | } 33 | 34 | public String getRegion_two() { 35 | return region_two; 36 | } 37 | 38 | public void setRegion_two(String region_two) { 39 | this.region_two = region_two; 40 | } 41 | 42 | public String getRegion_three() { 43 | return region_three; 44 | } 45 | 46 | public void setRegion_three(String region_three) { 47 | this.region_three = region_three; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminArticle.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminArticle { 4 | private Integer article_id; //编号 5 | 6 | private String title; //标题 7 | 8 | private String upload_date; //上传日期 9 | 10 | private Integer typeId; //类型 11 | 12 | private String author; //作者 13 | 14 | private String description; //文章描述 15 | 16 | private String content; //内容 17 | 18 | private Integer read_num; //阅读量 19 | 20 | private String picture_addr; //图片地址 21 | 22 | public Integer getArticle_id() { 23 | return article_id; 24 | } 25 | 26 | public void setArticle_id(Integer article_id) { 27 | this.article_id = article_id; 28 | } 29 | 30 | public String getTitle() { 31 | return title; 32 | } 33 | 34 | public void setTitle(String title) { 35 | this.title = title; 36 | } 37 | 38 | public String getUpload_date() { 39 | return upload_date; 40 | } 41 | 42 | public void setUpload_date(String upload_date) { 43 | this.upload_date = upload_date; 44 | } 45 | 46 | public Integer getTypeId() { 47 | return typeId; 48 | } 49 | 50 | public void setTypeId(Integer typeId) { 51 | this.typeId = typeId; 52 | } 53 | 54 | public String getAuthor() { 55 | return author; 56 | } 57 | 58 | public void setAuthor(String author) { 59 | this.author = author; 60 | } 61 | 62 | public String getDescription() { 63 | return description; 64 | } 65 | 66 | public void setDescription(String description) { 67 | this.description = description; 68 | } 69 | 70 | public String getContent() { 71 | return content; 72 | } 73 | 74 | public void setContent(String content) { 75 | this.content = content; 76 | } 77 | 78 | public Integer getRead_num() { 79 | return read_num; 80 | } 81 | 82 | public void setRead_num(Integer read_num) { 83 | this.read_num = read_num; 84 | } 85 | 86 | public String getPicture_addr() { 87 | return picture_addr; 88 | } 89 | 90 | public void setPicture_addr(String picture_addr) { 91 | this.picture_addr = picture_addr; 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminArticle2.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminArticle2 { 4 | private Integer article_id; //编号 5 | 6 | private String title; //标题 7 | 8 | private String upload_date; //上传日期 9 | 10 | private Integer typeId; //类型 11 | 12 | private String typeName; //类型名称 13 | 14 | private String author; //作者 15 | 16 | private String description; //文章描述 17 | 18 | private String content; //内容 19 | 20 | private Integer read_num; //阅读量 21 | 22 | private String picture_addr; //图片地址 23 | 24 | public Integer getArticle_id() { 25 | return article_id; 26 | } 27 | 28 | public void setArticle_id(Integer article_id) { 29 | this.article_id = article_id; 30 | } 31 | 32 | public String getTitle() { 33 | return title; 34 | } 35 | 36 | public void setTitle(String title) { 37 | this.title = title; 38 | } 39 | 40 | public String getUpload_date() { 41 | return upload_date; 42 | } 43 | 44 | public void setUpload_date(String upload_date) { 45 | this.upload_date = upload_date; 46 | } 47 | 48 | public Integer getTypeId() { 49 | return typeId; 50 | } 51 | 52 | public void setTypeId(Integer typeId) { 53 | this.typeId = typeId; 54 | } 55 | 56 | public String getTypeName() { 57 | return typeName; 58 | } 59 | 60 | public void setTypeName(String typeName) { 61 | this.typeName = typeName; 62 | } 63 | 64 | public String getAuthor() { 65 | return author; 66 | } 67 | 68 | public void setAuthor(String author) { 69 | this.author = author; 70 | } 71 | 72 | public String getDescription() { 73 | return description; 74 | } 75 | 76 | public void setDescription(String description) { 77 | this.description = description; 78 | } 79 | 80 | public String getContent() { 81 | return content; 82 | } 83 | 84 | public void setContent(String content) { 85 | this.content = content; 86 | } 87 | 88 | public Integer getRead_num() { 89 | return read_num; 90 | } 91 | 92 | public void setRead_num(Integer read_num) { 93 | this.read_num = read_num; 94 | } 95 | 96 | public String getPicture_addr() { 97 | return picture_addr; 98 | } 99 | 100 | public void setPicture_addr(String picture_addr) { 101 | this.picture_addr = picture_addr; 102 | } 103 | 104 | @Override 105 | public String toString() { 106 | return article_id + title + upload_date + typeId + typeName + author + description + content 107 | + read_num + picture_addr; 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminArticle3.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminArticle3 { 4 | 5 | private Integer article_id; //编号 6 | 7 | private String title; //标题 8 | 9 | private String upload_date; //上传日期 10 | 11 | private Integer typeId; //类型 12 | 13 | private String author; //作者 14 | 15 | private String description; //文章描述 16 | 17 | private String content; //内容 18 | 19 | private Integer read_num; //阅读量 20 | 21 | private String picture_addr; //图片地址 22 | 23 | private String keywords; 24 | 25 | public Integer getArticle_id() { 26 | return article_id; 27 | } 28 | 29 | public void setArticle_id(Integer article_id) { 30 | this.article_id = article_id; 31 | } 32 | 33 | public String getTitle() { 34 | return title; 35 | } 36 | 37 | public void setTitle(String title) { 38 | this.title = title; 39 | } 40 | 41 | public String getUpload_date() { 42 | return upload_date; 43 | } 44 | 45 | public void setUpload_date(String upload_date) { 46 | this.upload_date = upload_date; 47 | } 48 | 49 | public Integer getTypeId() { 50 | return typeId; 51 | } 52 | 53 | public void setTypeId(Integer typeId) { 54 | this.typeId = typeId; 55 | } 56 | 57 | public String getAuthor() { 58 | return author; 59 | } 60 | 61 | public void setAuthor(String author) { 62 | this.author = author; 63 | } 64 | 65 | public String getDescription() { 66 | return description; 67 | } 68 | 69 | public void setDescription(String description) { 70 | this.description = description; 71 | } 72 | 73 | public String getContent() { 74 | return content; 75 | } 76 | 77 | public void setContent(String content) { 78 | this.content = content; 79 | } 80 | 81 | public Integer getRead_num() { 82 | return read_num; 83 | } 84 | 85 | public void setRead_num(Integer read_num) { 86 | this.read_num = read_num; 87 | } 88 | 89 | public String getPicture_addr() { 90 | return picture_addr; 91 | } 92 | 93 | public void setPicture_addr(String picture_addr) { 94 | this.picture_addr = picture_addr; 95 | } 96 | 97 | public String getKeywords() { 98 | return keywords; 99 | } 100 | 101 | public void setKeywords(String keywords) { 102 | this.keywords = keywords; 103 | } 104 | } 105 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminArticleComment.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminArticleComment { 4 | private Integer comment_id; 5 | private String user_name; 6 | private String comment_date; 7 | private String content; 8 | 9 | public Integer getComment_id() { 10 | return comment_id; 11 | } 12 | 13 | public void setComment_id(Integer comment_id) { 14 | this.comment_id = comment_id; 15 | } 16 | 17 | public String getUser_name() { 18 | return user_name; 19 | } 20 | 21 | public void setUser_name(String user_name) { 22 | this.user_name = user_name; 23 | } 24 | 25 | public String getComment_date() { 26 | return comment_date; 27 | } 28 | 29 | public void setComment_date(String comment_date) { 30 | this.comment_date = comment_date; 31 | } 32 | 33 | public String getContent() { 34 | return content; 35 | } 36 | 37 | public void setContent(String content) { 38 | this.content = content; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminArticleType.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminArticleType { 4 | private Integer article_type_id; 5 | private String article_type_name; 6 | private Boolean article_type_status; 7 | 8 | public Integer getArticle_type_id() { 9 | return article_type_id; 10 | } 11 | 12 | public void setArticle_type_id(Integer article_type_id) { 13 | this.article_type_id = article_type_id; 14 | } 15 | 16 | public String getArticle_type_name() { 17 | return article_type_name; 18 | } 19 | 20 | public void setArticle_type_name(String article_type_name) { 21 | this.article_type_name = article_type_name; 22 | } 23 | 24 | public Boolean getArticle_type_status() { 25 | return article_type_status; 26 | } 27 | 28 | public void setArticle_type_status(Boolean article_type_status) { 29 | this.article_type_status = article_type_status; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminFmlComment.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminFmlComment { 4 | private Integer ml_comment_id; 5 | private Integer comment_id; 6 | private String user_one; 7 | private String user_two; 8 | private String fml_comment_date; 9 | private String fml_content; 10 | 11 | public Integer getMl_comment_id() { 12 | return ml_comment_id; 13 | } 14 | 15 | public void setMl_comment_id(Integer ml_comment_id) { 16 | this.ml_comment_id = ml_comment_id; 17 | } 18 | 19 | public Integer getComment_id() { 20 | return comment_id; 21 | } 22 | 23 | public void setComment_id(Integer comment_id) { 24 | this.comment_id = comment_id; 25 | } 26 | 27 | public String getUser_one() { 28 | return user_one; 29 | } 30 | 31 | public void setUser_one(String user_one) { 32 | this.user_one = user_one; 33 | } 34 | 35 | public String getUser_two() { 36 | return user_two; 37 | } 38 | 39 | public void setUser_two(String user_two) { 40 | this.user_two = user_two; 41 | } 42 | 43 | public String getFml_comment_date() { 44 | return fml_comment_date; 45 | } 46 | 47 | public void setFml_comment_date(String fml_comment_date) { 48 | this.fml_comment_date = fml_comment_date; 49 | } 50 | 51 | public String getFml_content() { 52 | return fml_content; 53 | } 54 | 55 | public void setFml_content(String fml_content) { 56 | this.fml_content = fml_content; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminForum.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminForum { 4 | private Integer forum_id; //编号 5 | 6 | private String nickname; //用户编号 7 | 8 | private String publish_date; //发布日期 9 | 10 | private Integer typeId; //类型 11 | 12 | private String typeName; //类型名称 13 | 14 | private String title; //标题 15 | 16 | private String content; //内容 17 | public Integer getForum_id() { 18 | return forum_id; 19 | } 20 | 21 | public void setForum_id(Integer forum_id) { 22 | this.forum_id = forum_id; 23 | } 24 | 25 | public String getNickname() { 26 | return nickname; 27 | } 28 | 29 | public void setNickname(String nickname) { 30 | this.nickname = nickname; 31 | } 32 | 33 | public String getPublish_date() { 34 | return publish_date; 35 | } 36 | 37 | public void setPublish_date(String publish_date) { 38 | this.publish_date = publish_date; 39 | } 40 | 41 | public Integer getTypeId() { 42 | return typeId; 43 | } 44 | 45 | public void setTypeId(Integer typeId) { 46 | this.typeId = typeId; 47 | } 48 | 49 | public String getTypeName() { 50 | return typeName; 51 | } 52 | 53 | public void setTypeName(String typeName) { 54 | this.typeName = typeName; 55 | } 56 | 57 | public String getTitle() { 58 | return title; 59 | } 60 | 61 | public void setTitle(String title) { 62 | this.title = title; 63 | } 64 | 65 | public String getContent() { 66 | return content; 67 | } 68 | 69 | public void setContent(String content) { 70 | this.content = content; 71 | } 72 | 73 | @Override 74 | public String toString() { 75 | return nickname + typeName + title + content; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminForumComment.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminForumComment { 4 | private Integer comment_id; 5 | private String user_name; 6 | private String comment_date; 7 | private String content; 8 | 9 | public Integer getComment_id() { 10 | return comment_id; 11 | } 12 | 13 | public void setComment_id(Integer comment_id) { 14 | this.comment_id = comment_id; 15 | } 16 | 17 | public String getUser_name() { 18 | return user_name; 19 | } 20 | 21 | public void setUser_name(String user_name) { 22 | this.user_name = user_name; 23 | } 24 | 25 | public String getComment_date() { 26 | return comment_date; 27 | } 28 | 29 | public void setComment_date(String comment_date) { 30 | this.comment_date = comment_date; 31 | } 32 | 33 | public String getContent() { 34 | return content; 35 | } 36 | 37 | public void setContent(String content) { 38 | this.content = content; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminForumType.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminForumType { 4 | private Integer forum_label_id; 5 | private String forum_label_name; 6 | private Boolean forum_label_status; 7 | 8 | public Integer getForum_label_id() { 9 | return forum_label_id; 10 | } 11 | 12 | public void setForum_label_id(Integer forum_label_id) { 13 | this.forum_label_id = forum_label_id; 14 | } 15 | 16 | public String getForum_label_name() { 17 | return forum_label_name; 18 | } 19 | 20 | public void setForum_label_name(String forum_label_name) { 21 | this.forum_label_name = forum_label_name; 22 | } 23 | 24 | public Boolean getForum_label_status() { 25 | return forum_label_status; 26 | } 27 | 28 | public void setForum_label_status(Boolean forum_label_status) { 29 | this.forum_label_status = forum_label_status; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminMusic.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminMusic { 4 | 5 | private Integer music_id; //编号 6 | 7 | private String name; //名称 8 | 9 | private String musician; //演唱者 10 | 11 | private String upload_date; //上传日期 12 | 13 | private String description; //描述 14 | 15 | private Integer typeId; //类型 16 | 17 | private String typeName; //类型名称 18 | 19 | private Integer play_num; //播放次数 20 | 21 | private String img_addr; //图片地址 22 | 23 | private String save_addr; //音乐地址 24 | 25 | public Integer getMusic_id() { 26 | return music_id; 27 | } 28 | 29 | public void setMusic_id(Integer music_id) { 30 | this.music_id = music_id; 31 | } 32 | 33 | public String getName() { 34 | return name; 35 | } 36 | 37 | public void setName(String name) { 38 | this.name = name; 39 | } 40 | 41 | public String getMusician() { 42 | return musician; 43 | } 44 | 45 | public void setMusician(String musician) { 46 | this.musician = musician; 47 | } 48 | 49 | public String getUpload_date() { 50 | return upload_date; 51 | } 52 | 53 | public void setUpload_date(String upload_date) { 54 | this.upload_date = upload_date; 55 | } 56 | 57 | public String getDescription() { 58 | return description; 59 | } 60 | 61 | public void setDescription(String description) { 62 | this.description = description; 63 | } 64 | 65 | public Integer getTypeId() { 66 | return typeId; 67 | } 68 | 69 | public void setTypeId(Integer typeId) { 70 | this.typeId = typeId; 71 | } 72 | 73 | public String getTypeName() { 74 | return typeName; 75 | } 76 | 77 | public void setTypeName(String typeName) { 78 | this.typeName = typeName; 79 | } 80 | 81 | public Integer getPlay_num() { 82 | return play_num; 83 | } 84 | 85 | public void setPlay_num(Integer play_num) { 86 | this.play_num = play_num; 87 | } 88 | 89 | public String getImg_addr() { 90 | return img_addr; 91 | } 92 | 93 | public void setImg_addr(String img_addr) { 94 | this.img_addr = img_addr; 95 | } 96 | 97 | public String getSave_addr() { 98 | return save_addr; 99 | } 100 | 101 | public void setSave_addr(String save_addr) { 102 | this.save_addr = save_addr; 103 | } 104 | 105 | @Override 106 | public String toString() { 107 | return name + musician + upload_date + description + typeName; 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminMusic2.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminMusic2 { 4 | private Integer music_id; //编号 5 | 6 | private String name; //名称 7 | 8 | private String musician; //演唱者 9 | 10 | private String upload_date; //上传日期 11 | 12 | private String description; //描述 13 | 14 | private Integer typeId; //类型 15 | 16 | private Integer play_num; //播放次数 17 | 18 | private String img_addr; //图片地址 19 | 20 | private String save_addr; //音乐地址 21 | 22 | public Integer getMusic_id() { 23 | return music_id; 24 | } 25 | 26 | public void setMusic_id(Integer music_id) { 27 | this.music_id = music_id; 28 | } 29 | 30 | public String getName() { 31 | return name; 32 | } 33 | 34 | public void setName(String name) { 35 | this.name = name; 36 | } 37 | 38 | public String getMusician() { 39 | return musician; 40 | } 41 | 42 | public void setMusician(String musician) { 43 | this.musician = musician; 44 | } 45 | 46 | public String getUpload_date() { 47 | return upload_date; 48 | } 49 | 50 | public void setUpload_date(String upload_date) { 51 | this.upload_date = upload_date; 52 | } 53 | 54 | public String getDescription() { 55 | return description; 56 | } 57 | 58 | public void setDescription(String description) { 59 | this.description = description; 60 | } 61 | 62 | public Integer getTypeId() { 63 | return typeId; 64 | } 65 | 66 | public void setTypeId(Integer typeId) { 67 | this.typeId = typeId; 68 | } 69 | 70 | public Integer getPlay_num() { 71 | return play_num; 72 | } 73 | 74 | public void setPlay_num(Integer play_num) { 75 | this.play_num = play_num; 76 | } 77 | 78 | public String getImg_addr() { 79 | return img_addr; 80 | } 81 | 82 | public void setImg_addr(String img_addr) { 83 | this.img_addr = img_addr; 84 | } 85 | 86 | public String getSave_addr() { 87 | return save_addr; 88 | } 89 | 90 | public void setSave_addr(String save_addr) { 91 | this.save_addr = save_addr; 92 | } 93 | } 94 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminMusic3.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminMusic3 { 4 | private Integer music_id; //编号 5 | 6 | private String name; //名称 7 | 8 | private String musician; //演唱者 9 | 10 | private String upload_date; //上传日期 11 | 12 | private String description; //描述 13 | 14 | private Integer typeId; //类型 15 | 16 | private Integer play_num; //播放次数 17 | 18 | private String img_addr; //图片地址 19 | 20 | private String save_addr; //音乐地址 21 | 22 | private String keywords; 23 | 24 | public Integer getMusic_id() { 25 | return music_id; 26 | } 27 | 28 | public void setMusic_id(Integer music_id) { 29 | this.music_id = music_id; 30 | } 31 | 32 | public String getName() { 33 | return name; 34 | } 35 | 36 | public void setName(String name) { 37 | this.name = name; 38 | } 39 | 40 | public String getMusician() { 41 | return musician; 42 | } 43 | 44 | public void setMusician(String musician) { 45 | this.musician = musician; 46 | } 47 | 48 | public String getUpload_date() { 49 | return upload_date; 50 | } 51 | 52 | public void setUpload_date(String upload_date) { 53 | this.upload_date = upload_date; 54 | } 55 | 56 | public String getDescription() { 57 | return description; 58 | } 59 | 60 | public void setDescription(String description) { 61 | this.description = description; 62 | } 63 | 64 | public Integer getTypeId() { 65 | return typeId; 66 | } 67 | 68 | public void setTypeId(Integer typeId) { 69 | this.typeId = typeId; 70 | } 71 | 72 | public Integer getPlay_num() { 73 | return play_num; 74 | } 75 | 76 | public void setPlay_num(Integer play_num) { 77 | this.play_num = play_num; 78 | } 79 | 80 | public String getImg_addr() { 81 | return img_addr; 82 | } 83 | 84 | public void setImg_addr(String img_addr) { 85 | this.img_addr = img_addr; 86 | } 87 | 88 | public String getSave_addr() { 89 | return save_addr; 90 | } 91 | 92 | public void setSave_addr(String save_addr) { 93 | this.save_addr = save_addr; 94 | } 95 | 96 | public String getKeywords() { 97 | return keywords; 98 | } 99 | 100 | public void setKeywords(String keywords) { 101 | this.keywords = keywords; 102 | } 103 | } 104 | 105 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminMusicType.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminMusicType { 4 | private Integer music_label_id; 5 | private String music_label_name; 6 | private Boolean music_label_status; 7 | 8 | public Integer getMusic_label_id() { 9 | return music_label_id; 10 | } 11 | 12 | public void setMusic_label_id(Integer music_label_id) { 13 | this.music_label_id = music_label_id; 14 | } 15 | 16 | public String getMusic_label_name() { 17 | return music_label_name; 18 | } 19 | 20 | public void setMusic_label_name(String music_label_name) { 21 | this.music_label_name = music_label_name; 22 | } 23 | 24 | public Boolean getMusic_label_status() { 25 | return music_label_status; 26 | } 27 | 28 | public void setMusic_label_status(Boolean music_label_status) { 29 | this.music_label_status = music_label_status; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminPageBean.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | /** 3 | * 分页Model类 4 | * @author 5 | * 6 | */ 7 | public class AdminPageBean { 8 | 9 | private int page; // 第几页 10 | private int pageSize; // 每页记录数 11 | private int start; // 起始页 12 | private int type; // 类型 13 | 14 | public AdminPageBean(int page, int pageSize) { 15 | super(); 16 | this.page = page; 17 | this.pageSize = pageSize; 18 | } 19 | 20 | public int getPage() { 21 | return page; 22 | } 23 | public void setPage(int page) { 24 | this.page = page; 25 | } 26 | 27 | public int getPageSize() { 28 | return pageSize; 29 | } 30 | 31 | public void setPageSize(int pageSize) { 32 | this.pageSize = pageSize; 33 | } 34 | 35 | public int getStart() { 36 | return (page-1)*pageSize; 37 | } 38 | 39 | public int getType() { 40 | return type; 41 | } 42 | 43 | public void setType(int type) { 44 | this.type = type; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminTestAnswer.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminTestAnswer { 4 | private Integer answer_id; //编号 5 | private Integer test_id; //测试题编号 6 | private String region_one; //区间一 7 | private String region_two; //区间二 8 | private String region_three; //区间三 9 | 10 | public Integer getAnswer_id() { 11 | return answer_id; 12 | } 13 | 14 | public void setAnswer_id(Integer answer_id) { 15 | this.answer_id = answer_id; 16 | } 17 | 18 | public Integer getTest_id() { 19 | return test_id; 20 | } 21 | 22 | public void setTest_id(Integer test_id) { 23 | this.test_id = test_id; 24 | } 25 | 26 | public String getRegion_one() { 27 | return region_one; 28 | } 29 | 30 | public void setRegion_one(String region_one) { 31 | this.region_one = region_one; 32 | } 33 | 34 | public String getRegion_two() { 35 | return region_two; 36 | } 37 | 38 | public void setRegion_two(String region_two) { 39 | this.region_two = region_two; 40 | } 41 | 42 | public String getRegion_three() { 43 | return region_three; 44 | } 45 | 46 | public void setRegion_three(String region_three) { 47 | this.region_three = region_three; 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminTestPaper.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminTestPaper { 4 | private Integer test_id; 5 | private String test_name; 6 | private Integer test_num; 7 | private String typeName; 8 | private String picture_addr; 9 | 10 | public Integer getTest_id() { 11 | return test_id; 12 | } 13 | 14 | public void setTest_id(Integer test_id) { 15 | this.test_id = test_id; 16 | } 17 | 18 | public String getTest_name() { 19 | return test_name; 20 | } 21 | 22 | public void setTest_name(String test_name) { 23 | this.test_name = test_name; 24 | } 25 | 26 | public Integer getTest_num() { 27 | return test_num; 28 | } 29 | 30 | public void setTest_num(Integer test_num) { 31 | this.test_num = test_num; 32 | } 33 | 34 | public String getTypeName() { 35 | return typeName; 36 | } 37 | 38 | public void setTypeName(String typeName) { 39 | this.typeName = typeName; 40 | } 41 | 42 | public String getPicture_addr() { 43 | return picture_addr; 44 | } 45 | 46 | public void setPicture_addr(String picture_addr) { 47 | this.picture_addr = picture_addr; 48 | } 49 | 50 | @Override 51 | public String toString() { 52 | return test_name + typeName + test_num; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminTestPaper2.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminTestPaper2 { 4 | private Integer test_id; 5 | private String test_name; 6 | private Integer typeId; 7 | private Integer test_num; 8 | private String picture_addr; 9 | 10 | public Integer getTest_id() { 11 | return test_id; 12 | } 13 | 14 | public void setTest_id(Integer test_id) { 15 | this.test_id = test_id; 16 | } 17 | 18 | public String getTest_name() { 19 | return test_name; 20 | } 21 | 22 | public void setTest_name(String test_name) { 23 | this.test_name = test_name; 24 | } 25 | 26 | public Integer getTypeId() { 27 | return typeId; 28 | } 29 | 30 | public void setTypeId(Integer typeId) { 31 | this.typeId = typeId; 32 | } 33 | 34 | public Integer getTest_num() { 35 | return test_num; 36 | } 37 | 38 | public void setTest_num(Integer test_num) { 39 | this.test_num = test_num; 40 | } 41 | 42 | public String getPicture_addr() { 43 | return picture_addr; 44 | } 45 | 46 | public void setPicture_addr(String picture_addr) { 47 | this.picture_addr = picture_addr; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminTestPaperType.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminTestPaperType { 4 | private Integer paper_label_id; //类型编号 5 | private String paper_label_name; //类型名称 6 | private Boolean paper_label_status; //类型状态 7 | 8 | public Integer getPaper_label_id() { 9 | return paper_label_id; 10 | } 11 | 12 | public void setPaper_label_id(Integer paper_label_id) { 13 | this.paper_label_id = paper_label_id; 14 | } 15 | 16 | public String getPaper_label_name() { 17 | return paper_label_name; 18 | } 19 | 20 | public void setPaper_label_name(String paper_label_name) { 21 | this.paper_label_name = paper_label_name; 22 | } 23 | 24 | public Boolean getPaper_label_status() { 25 | return paper_label_status; 26 | } 27 | 28 | public void setPaper_label_status(Boolean paper_label_status) { 29 | this.paper_label_status = paper_label_status; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminTestTitle.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminTestTitle { 4 | private Integer title_id; //编号 5 | private Integer test_id; //测试标题编号 6 | private String title_name; //题目名称 7 | private String choose_one; //选项一 8 | private String choose_two; //选项二 9 | private String choose_three; //选项三 10 | private String choose_four; //选项四 11 | 12 | public Integer getTitle_id() { 13 | return title_id; 14 | } 15 | 16 | public void setTitle_id(Integer title_id) { 17 | this.title_id = title_id; 18 | } 19 | 20 | public Integer getTest_id() { 21 | return test_id; 22 | } 23 | 24 | public void setTest_id(Integer test_id) { 25 | this.test_id = test_id; 26 | } 27 | 28 | public String getTitle_name() { 29 | return title_name; 30 | } 31 | 32 | public void setTitle_name(String title_name) { 33 | this.title_name = title_name; 34 | } 35 | 36 | public String getChoose_one() { 37 | return choose_one; 38 | } 39 | 40 | public void setChoose_one(String choose_one) { 41 | this.choose_one = choose_one; 42 | } 43 | 44 | public String getChoose_two() { 45 | return choose_two; 46 | } 47 | 48 | public void setChoose_two(String choose_two) { 49 | this.choose_two = choose_two; 50 | } 51 | 52 | public String getChoose_three() { 53 | return choose_three; 54 | } 55 | 56 | public void setChoose_three(String choose_three) { 57 | this.choose_three = choose_three; 58 | } 59 | 60 | public String getChoose_four() { 61 | return choose_four; 62 | } 63 | 64 | public void setChoose_four(String choose_four) { 65 | this.choose_four = choose_four; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminUser.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminUser { 4 | private Integer user_id; //编号 5 | 6 | private String account; //账户 7 | 8 | private String nickname; //昵称 9 | 10 | private String sex; //性别 11 | 12 | private String birthday; //出生日期 13 | 14 | private String signature; //个性签名 15 | 16 | public Integer getUser_id() { 17 | return user_id; 18 | } 19 | 20 | public void setUser_id(Integer user_id) { 21 | this.user_id = user_id; 22 | } 23 | 24 | public String getAccount() { 25 | return account; 26 | } 27 | 28 | public void setAccount(String account) { 29 | this.account = account; 30 | } 31 | 32 | public String getNickname() { 33 | return nickname; 34 | } 35 | 36 | public void setNickname(String nickname) { 37 | this.nickname = nickname; 38 | } 39 | 40 | public String getSex() { 41 | return sex; 42 | } 43 | 44 | public void setSex(String sex) { 45 | this.sex = sex; 46 | } 47 | 48 | public String getBirthday() { 49 | return birthday; 50 | } 51 | 52 | public void setBirthday(String birthday) { 53 | this.birthday = birthday; 54 | } 55 | 56 | public String getSignature() { 57 | return signature; 58 | } 59 | 60 | public void setSignature(String signature) { 61 | this.signature = signature; 62 | } 63 | 64 | @Override 65 | public String toString() { 66 | return account + nickname + sex + birthday + signature; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /src/main/java/com/xupt/vo_admin/AdminUserTestRecord.java: -------------------------------------------------------------------------------- 1 | package com.xupt.vo_admin; 2 | 3 | public class AdminUserTestRecord { 4 | private Integer record_id; 5 | private String user_name; 6 | private String test_name; 7 | private String test_result; 8 | private String test_date; 9 | 10 | public Integer getRecord_id() { 11 | return record_id; 12 | } 13 | 14 | public void setRecord_id(Integer record_id) { 15 | this.record_id = record_id; 16 | } 17 | 18 | public String getUser_name() { 19 | return user_name; 20 | } 21 | 22 | public void setUser_name(String user_name) { 23 | this.user_name = user_name; 24 | } 25 | 26 | public String getTest_name() { 27 | return test_name; 28 | } 29 | 30 | public void setTest_name(String test_name) { 31 | this.test_name = test_name; 32 | } 33 | 34 | public String getTest_result() { 35 | return test_result; 36 | } 37 | 38 | public void setTest_result(String test_result) { 39 | this.test_result = test_result; 40 | } 41 | 42 | public String getTest_date() { 43 | return test_date; 44 | } 45 | 46 | public void setTest_date(String test_date) { 47 | this.test_date = test_date; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/resources/jdbc.properties: -------------------------------------------------------------------------------- 1 | jdbc.driver=com.mysql.jdbc.Driver 2 | jdbc.url=jdbc:mysql://localhost:3306/heartWebsite?useUnicode=true&characterEncoding=utf-8&useSSL=true 3 | jdbc.username=root 4 | jdbc.password=root 5 | jdbc.maxIdle=15 6 | jdbc.maxWait=5000 -------------------------------------------------------------------------------- /src/main/resources/keyword.properties: -------------------------------------------------------------------------------- 1 | fuck=**** 2 | 狗日的=*** 3 | 滚蛋=** 4 | 王八=** 5 | 王八蛋=*** 6 | -------------------------------------------------------------------------------- /src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | ### setting ### 2 | log4j.rootLogger = info,stdout,D,E 3 | 4 | ### output debug level log to console ### 5 | log4j.appender.stdout = org.apache.log4j.ConsoleAppender 6 | log4j.appender.stdout.Target = System.out 7 | log4j.appender.stdout.layout = org.apache.log4j.PatternLayout 8 | log4j.appender.stdout.layout.ConversionPattern = [%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n 9 | 10 | ### output debug level log to D://logs/debug.log ### 11 | log4j.appender.D = org.apache.log4j.DailyRollingFileAppender 12 | log4j.appender.D.File = D://usr/logs/info.log 13 | log4j.appender.D.Append = true 14 | log4j.appender.D.Threshold = INFO 15 | log4j.appender.D.layout = org.apache.log4j.PatternLayout 16 | log4j.appender.D.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] %m%n 17 | 18 | ### output error level log to D://logs/error.log ### 19 | log4j.appender.E = org.apache.log4j.DailyRollingFileAppender 20 | log4j.appender.E.File = D://usr/logs/error.log 21 | log4j.appender.E.Append = true 22 | log4j.appender.E.Threshold = ERROR 23 | log4j.appender.E.layout = org.apache.log4j.PatternLayout 24 | log4j.appender.E.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] %m%n -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminAmlCommentDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 23 | 24 | 25 | DELETE FROM aml_comment WHERE ml_comment_id = #{commentId} 26 | 27 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminArticleCommentDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 18 | 19 | 20 | DELETE FROM article_comment WHERE comment_id = #{commentId} 21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 17 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminFmlCommentDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 23 | 24 | 25 | DELETE FROM fml_comment WHERE ml_comment_id = #{commentId} 26 | 27 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminForumCommentDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 18 | 19 | 20 | DELETE FROM forum_comment WHERE comment_id = #{commentId} 21 | 22 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminForumDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 32 | 33 | 36 | 37 | 46 | 47 | 48 | delete from forum where forum_id in 49 | 50 | #{item} 51 | 52 | 53 | 54 | 57 | 58 | 59 | update forum_type set forum_type_status = 0 where forum_type_id = #{labelId} 60 | 61 | 62 | 63 | insert into forum_type values (null,#{labelName},1) 64 | 65 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminTestAnswerDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 17 | 18 | update test_answer 19 | 20 | 21 | region_one=#{region_one}, 22 | 23 | 24 | region_two=#{region_two}, 25 | 26 | 27 | region_three=#{region_three}, 28 | 29 | 30 | where test_id=#{test_id} 31 | 32 | 33 | 34 | insert into test_answer values(null,#{test_id},#{region_one},#{region_two},#{region_three}) 35 | 36 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminTestPaperDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 37 | 38 | 41 | 42 | 45 | 46 | 47 | update test_paper 48 | 49 | 50 | test_name=#{test_name}, 51 | 52 | 53 | test_type_id=#{typeId}, 54 | 55 | 56 | picture_addr=#{picture_addr}, 57 | 58 | 59 | where test_id=#{test_id} 60 | 61 | 62 | 63 | /*insert语句之后再执行,将其插入的自增主键设置到article_id属性中*/ 64 | 65 | SELECT LAST_INSERT_ID() /*得到刚insert到数据表中的记录的主键值,只适用于自增主键 */ 66 | 67 | insert into test_paper values (null,#{typeId},#{test_name},1,#{picture_addr}) 68 | 69 | 70 | 76 | 77 | 78 | delete from test_paper where test_id in 79 | 80 | #{item} 81 | 82 | 83 | 84 | 85 | update test_paper_type set test_type_status = 0 where test_type_id = #{labelId} 86 | 87 | 88 | 89 | insert into test_paper_type values (null,#{lableName},1) 90 | 91 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminTestRecordDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 24 | 25 | 26 | update user_test_record set status = 0 where record_id=#{recordId} 27 | 28 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminTestTitleDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 18 | 19 | 20 | delete from test_title where title_id in 21 | 22 | #{item} 23 | 24 | 25 | 26 | 27 | insert into test_title values(null,#{test_id},#{title_name},#{choose_one},#{choose_two},#{choose_three},#{choose_four}) 28 | 29 | 30 | 31 | update test_title 32 | 33 | 34 | test_id=#{test_id}, 35 | 36 | 37 | title_name=#{title_name}, 38 | 39 | 40 | choose_one=#{choose_one}, 41 | 42 | 43 | choose_two=#{choose_two}, 44 | 45 | 46 | choose_three=#{choose_three}, 47 | 48 | 49 | choose_four=#{choose_four}, 50 | 51 | 52 | where title_id=#{title_id} 53 | 54 | -------------------------------------------------------------------------------- /src/main/resources/mapper/AdminUserDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 22 | 23 | 26 | -------------------------------------------------------------------------------- /src/main/resources/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/main/resources/spring/spring-dao.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | classpath:mapper/*Dao.xml 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/main/resources/spring/spring-servlet.xml: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | encodingFilter 10 | org.springframework.web.filter.CharacterEncodingFilter 11 | true 12 | 13 | encoding 14 | UTF-8 15 | 16 | 17 | 18 | encodingFilter 19 | /* 20 | 21 | 22 | 23 | 24 | springmvc 25 | org.springframework.web.servlet.DispatcherServlet 26 | 27 | contextConfigLocation 28 | classpath:spring/spring-*.xml 29 | 30 | 1 31 | 32 | 33 | springmvc 34 | / 35 | 36 | 37 | 38 | 39 | 40 | log4jConfigLocation 41 | classpath:log4j.properties 42 | 43 | 44 | 45 | log4jRefreshInterval 46 | 6000 47 | 48 | 49 | org.springframework.web.util.Log4jConfigListener 50 | 51 | 52 | -------------------------------------------------------------------------------- /src/main/webapp/addArticle.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: yangchao 4 | Date: 2018/3/13 5 | Time: 13:02 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page language="java" contentType="text/html;charset=UTF-8" 9 | pageEncoding="UTF-8"%> 10 | 11 | 12 | 添加文章 13 | 14 | 15 |
16 | 标题:
17 | 上传日期:
18 | 类型:
23 | 作者:
24 | 描述:
25 | 内容:
26 | 阅读量:
27 | 图片:
28 | 关键字: 29 |
30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /src/main/webapp/addMusic.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: yangchao 4 | Date: 2018/3/14 5 | Time: 13:49 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page language="java" contentType="text/html;charset=UTF-8" 9 | pageEncoding="UTF-8"%> 10 | 11 | 12 | 添加音乐 13 | 14 | 15 |
16 | 音乐名:
17 | 演唱者:
18 | 上传日期:
19 | 描述: 20 | 类型:
25 | 播放量:
26 | 图片:
27 | 地址:
28 | 关键字: 29 |
30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /src/main/webapp/addTestPaper.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: yangchao 4 | Date: 2018/3/14 5 | Time: 13:49 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page language="java" contentType="text/html;charset=UTF-8" 9 | pageEncoding="UTF-8"%> 10 | 11 | 12 | 添加测试试题 13 | 14 | 15 |
16 | 试题名:
17 | 类型:
22 | 测试量:
23 | 图片:
24 |
25 |
26 | 27 | 28 | -------------------------------------------------------------------------------- /src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 心灵之家
-------------------------------------------------------------------------------- /src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 |

Hello World!

6 |
7 | 账号:
8 | 密码:
9 |
10 |
11 | 获取用户列表
12 | 根据用户编号获取用户信息
13 |

14 | 添加文章
15 | 更新文章 16 |

17 | 添加音乐
18 | 更新音乐
19 |

20 | 过滤论坛铭感文字
21 |

22 | 添加测试试题
23 | 删除测试试题
24 | 25 | 26 | -------------------------------------------------------------------------------- /src/main/webapp/static/css/color-dark.css: -------------------------------------------------------------------------------- 1 | .header{ 2 | background-color: #242f42; 3 | } 4 | .login-wrap{ 5 | background: #324157; 6 | } 7 | .plugins-tips{ 8 | background: #eef1f6; 9 | } 10 | .plugins-tips a{ 11 | color: #20a0ff; 12 | } 13 | .el-upload--text em { 14 | color: #20a0ff; 15 | } 16 | .pure-button{ 17 | background: #20a0ff; 18 | } -------------------------------------------------------------------------------- /src/main/webapp/static/css/main.css: -------------------------------------------------------------------------------- 1 | *{margin:0;padding:0;} 2 | html,body,#app,.wrapper{ 3 | width:100%; 4 | height:100%; 5 | overflow: hidden; 6 | } 7 | body{ 8 | font-family:"Helvetica Neue",Helvetica, "microsoft yahei", arial, STHeiTi, sans-serif; 9 | } 10 | a{text-decoration: none} 11 | .content{ 12 | background: none repeat scroll 0 0 #fff; 13 | position: absolute; 14 | left: 250px; 15 | right: 0; 16 | top: 70px; 17 | bottom:0; 18 | width: auto; 19 | padding:40px; 20 | box-sizing: border-box; 21 | overflow-y: scroll; 22 | } 23 | .crumbs{ 24 | margin-bottom: 20px; 25 | } 26 | .pagination{ 27 | margin: 20px 0; 28 | text-align: right; 29 | } 30 | .plugins-tips{ 31 | padding:20px 10px; 32 | margin-bottom: 20px; 33 | } 34 | .el-button+.el-tooltip { 35 | margin-left: 10px; 36 | } 37 | 38 | .el-table tr:hover{ 39 | background: #f6faff; 40 | } 41 | .mgb20{ 42 | margin-bottom: 20px; 43 | } 44 | 45 | .move-enter-active,.move-leave-active{ 46 | transition: opacity .5s; 47 | } 48 | .move-enter,.move-leave{ 49 | opacity: 0; 50 | } 51 | /*BaseForm*/ 52 | .form-box{ 53 | width:600px; 54 | } 55 | .form-box .line{ 56 | text-align: center; 57 | } 58 | .el-time-panel__content::after, .el-time-panel__content::before { 59 | margin-top: -7px; 60 | } 61 | /*Readme*/ 62 | .ms-doc .el-checkbox__input.is-disabled+.el-checkbox__label{ 63 | color: #333; 64 | cursor: pointer; 65 | } 66 | /*Upload*/ 67 | .pure-button{ 68 | width:150px; 69 | height:40px; 70 | line-height: 40px; 71 | text-align: center; 72 | color: #fff; 73 | border-radius: 3px; 74 | } 75 | .g-core-image-corp-container .info-aside{ 76 | height:45px; 77 | } 78 | .el-upload--text { 79 | background-color: #fff; 80 | border: 1px dashed #d9d9d9; 81 | border-radius: 6px; 82 | box-sizing: border-box; 83 | width: 360px; 84 | height: 180px; 85 | text-align: center; 86 | cursor: pointer; 87 | position: relative; 88 | overflow: hidden; 89 | } 90 | .el-upload--text .el-icon-upload { 91 | font-size: 67px; 92 | color: #97a8be; 93 | margin: 40px 0 16px; 94 | line-height: 50px; 95 | } 96 | .el-upload--text { 97 | color: #97a8be; 98 | font-size: 14px; 99 | text-align: center; 100 | } 101 | .el-upload--text em { 102 | font-style: normal; 103 | } 104 | /*VueEditor*/ 105 | .ql-container{ 106 | min-height: 400px; 107 | } 108 | .ql-snow .ql-tooltip{ 109 | transform: translateX(117.5px) translateY(10px) !important; 110 | } 111 | .editor-btn{ 112 | margin-top: 20px; 113 | } 114 | 115 | /*common*/ 116 | .left { 117 | float: left; 118 | } 119 | .right { 120 | float: right; 121 | } 122 | .w200 { 123 | width: 200px; 124 | } 125 | .mt10 { 126 | margin-top: 10px; 127 | } 128 | .ml10 { 129 | margin-left: 10px; 130 | } 131 | .mb10 { 132 | margin-bottom: 10px; 133 | } 134 | .mb15 { 135 | margin-bottom: 15px; 136 | } 137 | .gray { 138 | color: #999999; 139 | } 140 | .clearfix:after { 141 | display: table; 142 | content: " "; 143 | clear: both; 144 | } 145 | .clearfix{ 146 | *zoom: 1; 147 | } 148 | .cursor { 149 | cursor: pointer; 150 | } 151 | .right { 152 | float: right; 153 | } 154 | -------------------------------------------------------------------------------- /src/main/webapp/static/css/theme-green/color-green.css: -------------------------------------------------------------------------------- 1 | .header{ 2 | background-color: #00d1b2; 3 | } 4 | .login-wrap{ 5 | background: rgba(56, 157, 170, 0.82);; 6 | } 7 | .plugins-tips{ 8 | background: #f2f2f2; 9 | } 10 | .plugins-tips a{ 11 | color: #00d1b2; 12 | } 13 | .el-upload--text em { 14 | color: #00d1b2; 15 | } 16 | .pure-button{ 17 | background: #00d1b2; 18 | } 19 | .vue-datasource .btn-primary { 20 | color: #fff; 21 | background-color: #00d1b2 !important; 22 | border-color: #00d1b2 !important; 23 | } 24 | .pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus, .pagination > .active > span, .pagination > .active > span:hover, .pagination > .active > span:focus { 25 | background-color: #00d1b2 !important; 26 | border-color: #00d1b2 !important; 27 | } -------------------------------------------------------------------------------- /src/main/webapp/static/css/theme-green/fonts/element-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superyc0812/heart_admin/e66588d91c03a38b426cecb18133e9c64e0a4b1b/src/main/webapp/static/css/theme-green/fonts/element-icons.ttf -------------------------------------------------------------------------------- /src/main/webapp/static/css/theme-green/fonts/element-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superyc0812/heart_admin/e66588d91c03a38b426cecb18133e9c64e0a4b1b/src/main/webapp/static/css/theme-green/fonts/element-icons.woff -------------------------------------------------------------------------------- /src/main/webapp/static/fonts/element-icons.b02bdc1.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superyc0812/heart_admin/e66588d91c03a38b426cecb18133e9c64e0a4b1b/src/main/webapp/static/fonts/element-icons.b02bdc1.ttf -------------------------------------------------------------------------------- /src/main/webapp/static/img/brown-papersq.82cd9f5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superyc0812/heart_admin/e66588d91c03a38b426cecb18133e9c64e0a4b1b/src/main/webapp/static/img/brown-papersq.82cd9f5.png -------------------------------------------------------------------------------- /src/main/webapp/static/img/img.2aab7b4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superyc0812/heart_admin/e66588d91c03a38b426cecb18133e9c64e0a4b1b/src/main/webapp/static/img/img.2aab7b4.jpg -------------------------------------------------------------------------------- /src/main/webapp/static/img/img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/superyc0812/heart_admin/e66588d91c03a38b426cecb18133e9c64e0a4b1b/src/main/webapp/static/img/img.jpg -------------------------------------------------------------------------------- /src/main/webapp/static/js/14.6ceb3e05d1a8d05b1c73.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([14],{1e3:function(a,e){a.exports={render:function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"table"},[t("div",{staticClass:"crumbs"},[t("el-breadcrumb",{attrs:{separator:"/"}},[t("el-breadcrumb-item",[t("i",{staticClass:"el-icon-menu"}),a._v(" 音乐管理")]),a._v(" "),t("el-breadcrumb-item",[a._v("分类管理")])],1)],1),a._v(" "),t("div",{staticClass:"handle-box"},[t("el-input",{staticClass:"handle-input mr10",attrs:{placeholder:"分类名称"},model:{value:a.labelName,callback:function(e){a.labelName=e},expression:"labelName"}}),a._v(" "),t("el-button",{attrs:{type:"primary",icon:"plus"},on:{click:a.addLabel}},[a._v("添加")])],1),a._v(" "),t("div",{staticClass:"div-sort mt10"},[t("p",{staticClass:"gray"},[a._v("已有标签:")]),a._v(" "),t("div",{staticClass:"label-div"},a._l(a.labelList,function(e){return t("span",{staticClass:"cursor label"},[a._v("\n "+a._s(e.paper_label_name)+"\n "),t("span",{staticClass:"gray ml10",on:{click:function(t){a.removeLabel(e.paper_label_id)}}},[a._v("×")])])}))])])},staticRenderFns:[]}},1026:function(a,e,t){var s=t(705);"string"==typeof s&&(s=[[a.i,s,""]]),s.locals&&(a.exports=s.locals);t(197)("9b4717d6",s,!0)},527:function(a,e,t){t(1026);var s=t(198)(t(615),t(1e3),"data-v-0ae775fa",null);a.exports=s.exports},615:function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"test-sort",data:function(){return{labelList:[],labelName:""}},mounted:function(){this.getLabelLists()},methods:{getLabelLists:function(){var a=this;a.$axios.post("/mapis/test/getLabels").then(function(e){e.data.state&&(a.labelList=e.data.list)})},removeLabel:function(a){var e=this;e.$axios.post("/mapis/test/changeLabelStatus",{labelId:a}).then(function(a){a.data.state&&(e.$message("标签移除成功"),e.getLabelLists())})},addLabel:function(){var a=this;return a.labelName?a.labelName.length>30?void a.$message.error("分类名称过长"):void a.$axios.post("/mapis/test/addLabel",{labelName:a.labelName}).then(function(e){e.data.state?(a.$message("标签添加成功"),a.labelName="",a.getLabelLists()):a.$message.error(e.data.msg)}):void a.$message.error("分类名称不能为空")}}}},705:function(a,e,t){e=a.exports=t(87)(!1),e.push([a.i,".handle-box[data-v-0ae775fa]{margin-top:30px;margin-bottom:20px}.handle-select[data-v-0ae775fa]{width:120px}.handle-input[data-v-0ae775fa]{width:300px;display:inline-block}.div-sort[data-v-0ae775fa]{margin:20px auto}.label[data-v-0ae775fa]{border:1px solid #ededed;display:inline-block;padding:5px 5px 5px 15px;margin:10px 20px;border-radius:5px;font-size:14px;color:#333}.label-div[data-v-0ae775fa]{color:#333;margin-top:8px}",""])}}); -------------------------------------------------------------------------------- /src/main/webapp/static/js/16.df061be5d154fe6332e4.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([16],{1002:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"main"},[a("div",{staticClass:"crumbs"},[a("el-breadcrumb",{attrs:{separator:"/"}},[a("el-breadcrumb-item",[a("i",{staticClass:"el-icon-upload2"}),t._v(" 拖拽排序")])],1)],1),t._v(" "),a("div",{staticClass:"drag-box-left"},[a("div",{staticClass:"drag-title"},[t._v("拖动排序")]),t._v(" "),t._l(t.data1,function(e){return a("div",{staticClass:"drag-list",attrs:{draggable:"true","data-id":e.id},on:{dragstart:t.dragstartEvent,dragend:t.dragendEvent,dragenter:t.dragenterEvent,dragleave:t.dragleaveEvent,dragover:t.dragoverEvent}},[t._v(t._s(e.title))])})],2)])},staticRenderFns:[]}},1028:function(t,e,a){var r=a(707);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);a(197)("81342bc6",r,!0)},520:function(t,e,a){a(1028);var r=a(198)(a(608),a(1002),"data-v-0c5bebc8",null);t.exports=r.exports},608:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{dragElement:null,lock:!0,data1:[{id:1,title:"这里是列表1的标题"},{id:2,title:"这里是列表2的标题"},{id:3,title:"这里是列表3的标题"},{id:4,title:"这里是列表4的标题"},{id:5,title:"这里是列表5的标题"},{id:6,title:"这里是列表6的标题"},{id:7,title:"这里是列表7的标题"}],data2:[{id:1,title:"这里是列表11的标题"},{id:2,title:"这里是列表12的标题"},{id:3,title:"这里是列表13的标题"},{id:4,title:"这里是列表14的标题"}]}},methods:{dragstartEvent:function(t){this.dragElement=t.target,t.target.style.backgroundColor="#f8f8f8"},dragendEvent:function(t){t.target.style.backgroundColor="#fff",t.preventDefault()},dragenterEvent:function(t){var e=this;e.dragElement!=t.target&&t.target.parentNode.insertBefore(e.dragElement,t.target)},dragleaveEvent:function(t){var e=this;e.dragElement!=t.target&&(!e.lock||t.target!=t.target.parentNode.lastElementChild&&t.target!=t.target.parentNode.lastChild?e.lock=!0:(t.target.parentNode.appendChild(e.dragElement),e.lock=!1))},dragoverEvent:function(t){t.preventDefault()}}}},707:function(t,e,a){e=t.exports=a(87)(!1),e.push([t.i,".drag-box-left[data-v-0c5bebc8]{float:left;width:45%}.drag-box-right[data-v-0c5bebc8]{float:right;width:45%}.drag-list[data-v-0c5bebc8]{border:1px solid #ddd;padding:10px;margin-bottom:20px;transition:border .3s}.drag-list[data-v-0c5bebc8]:hover{border:1px solid #20a0ff}.drag-title[data-v-0c5bebc8]{font-weight:400;line-height:25px;margin:10px 0;font-size:22px;color:#1f2f3d}",""])}}); -------------------------------------------------------------------------------- /src/main/webapp/static/js/17.6976e4a81f60c7b20cb1.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([17],{1004:function(a,e){a.exports={render:function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"table"},[t("div",{staticClass:"crumbs"},[t("el-breadcrumb",{attrs:{separator:"/"}},[t("el-breadcrumb-item",[t("i",{staticClass:"el-icon-menu"}),a._v(" 音乐管理")]),a._v(" "),t("el-breadcrumb-item",[a._v("分类管理")])],1)],1),a._v(" "),t("div",{staticClass:"handle-box"},[t("el-input",{staticClass:"handle-input mr10",attrs:{placeholder:"分类名称"},model:{value:a.labelName,callback:function(e){a.labelName=e},expression:"labelName"}}),a._v(" "),t("el-button",{attrs:{type:"primary",icon:"plus"},on:{click:a.addLabel}},[a._v("添加")])],1),a._v(" "),t("div",{staticClass:"div-sort mt10"},[t("p",{staticClass:"gray"},[a._v("已有标签:")]),a._v(" "),t("div",{staticClass:"label-div"},a._l(a.labelList,function(e){return t("span",{staticClass:"cursor label"},[a._v("\n "+a._s(e.music_label_name)+"\n "),t("span",{staticClass:"gray ml10",on:{click:function(t){a.removeLabel(e.music_label_id)}}},[a._v("×")])])}))])])},staticRenderFns:[]}},1029:function(a,e,t){var s=t(708);"string"==typeof s&&(s=[[a.i,s,""]]),s.locals&&(a.exports=s.locals);t(197)("5204d623",s,!0)},517:function(a,e,t){t(1029);var s=t(198)(t(605),t(1004),"data-v-1c9dbb0f",null);a.exports=s.exports},605:function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"music-sort",data:function(){return{labelList:[],labelName:""}},mounted:function(){this.getLabelLists()},methods:{getLabelLists:function(){var a=this;a.$axios.post("/mapis/music/getLabels").then(function(e){e.data.state&&(a.labelList=e.data.list)})},removeLabel:function(a){var e=this;e.$axios.post("/mapis/music/changeLabelStatus",{labelId:a}).then(function(a){a.data.state&&(e.$message("标签移除成功"),e.getLabelLists())})},addLabel:function(){var a=this;return a.labelName?a.labelName.length>30?void a.$message.error("分类名称过长"):void a.$axios.post("/mapis/music/addLabel",{labelName:a.labelName}).then(function(e){e.data.state?(a.$message("标签添加成功"),a.labelName="",a.getLabelLists()):a.$message.error(e.data.msg)}):void a.$message.error("分类名称不能为空")}}}},708:function(a,e,t){e=a.exports=t(87)(!1),e.push([a.i,".handle-box[data-v-1c9dbb0f]{margin-top:30px;margin-bottom:20px}.handle-select[data-v-1c9dbb0f]{width:120px}.handle-input[data-v-1c9dbb0f]{width:300px;display:inline-block}.div-sort[data-v-1c9dbb0f]{margin:20px auto}.label[data-v-1c9dbb0f]{border:1px solid #ededed;display:inline-block;padding:5px 5px 5px 15px;margin:10px 20px;border-radius:5px;font-size:14px;color:#333}.label-div[data-v-1c9dbb0f]{color:#333;margin-top:8px}",""])}}); -------------------------------------------------------------------------------- /src/main/webapp/static/js/19.4b50ea4f2c4f369c722f.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([19],{1018:function(a,e){a.exports={render:function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"table"},[t("div",{staticClass:"crumbs"},[t("el-breadcrumb",{attrs:{separator:"/"}},[t("el-breadcrumb-item",[t("i",{staticClass:"el-icon-menu"}),a._v(" 论坛管理")]),a._v(" "),t("el-breadcrumb-item",[a._v("分类管理")])],1)],1),a._v(" "),t("div",{staticClass:"handle-box"},[t("el-input",{staticClass:"handle-input mr10",attrs:{placeholder:"分类名称"},model:{value:a.labelName,callback:function(e){a.labelName=e},expression:"labelName"}}),a._v(" "),t("el-button",{attrs:{type:"primary",icon:"plus"},on:{click:a.addLabel}},[a._v("添加")])],1),a._v(" "),t("div",{staticClass:"div-sort mt10"},[t("p",{staticClass:"gray"},[a._v("已有标签:")]),a._v(" "),t("div",{staticClass:"label-div"},a._l(a.labelList,function(e){return t("span",{staticClass:"cursor label"},[a._v("\n "+a._s(e.forum_label_name)+"\n "),t("span",{staticClass:"gray ml10",on:{click:function(t){a.removeLabel(e.forum_label_id)}}},[a._v("×")])])}))])])},staticRenderFns:[]}},1040:function(a,e,t){var s=t(719);"string"==typeof s&&(s=[[a.i,s,""]]),s.locals&&(a.exports=s.locals);t(197)("2a1810c2",s,!0)},514:function(a,e,t){t(1040);var s=t(198)(t(602),t(1018),"data-v-c87b57f2",null);a.exports=s.exports},602:function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"forum-sort",data:function(){return{labelList:[],labelName:""}},mounted:function(){this.getLabelLists()},methods:{getLabelLists:function(){var a=this;a.$axios.post("/mapis/forum/getLabels").then(function(e){e.data.state&&(a.labelList=e.data.list)})},removeLabel:function(a){var e=this;e.$axios.post("/mapis/forum/changeLabelStatus",{labelId:a}).then(function(a){a.data.state&&(e.$message("标签移除成功"),e.getLabelLists())})},addLabel:function(){var a=this;return a.labelName?a.labelName.length>30?void a.$message.error("分类名称过长"):void a.$axios.post("/mapis/forum/addLabel",{labelName:a.labelName}).then(function(e){e.data.state?(a.$message("标签添加成功"),a.labelName="",a.getLabelLists()):a.$message.error(e.data.msg)}):void a.$message.error("分类名称不能为空")}}}},719:function(a,e,t){e=a.exports=t(87)(!1),e.push([a.i,".handle-box[data-v-c87b57f2]{margin-top:30px;margin-bottom:20px}.handle-select[data-v-c87b57f2]{width:120px}.handle-input[data-v-c87b57f2]{width:300px;display:inline-block}.div-sort[data-v-c87b57f2]{margin:20px auto}.label[data-v-c87b57f2]{border:1px solid #ededed;display:inline-block;padding:5px 5px 5px 15px;margin:10px 20px;border-radius:5px;font-size:14px;color:#333}.label-div[data-v-c87b57f2]{color:#333;margin-top:8px}",""])}}); -------------------------------------------------------------------------------- /src/main/webapp/static/js/21.b089005a200a56fe5127.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([21],{1019:function(a,e){a.exports={render:function(){var a=this,e=a.$createElement,t=a._self._c||e;return t("div",{staticClass:"table"},[t("div",{staticClass:"crumbs"},[t("el-breadcrumb",{attrs:{separator:"/"}},[t("el-breadcrumb-item",[t("i",{staticClass:"el-icon-menu"}),a._v(" 文章管理")]),a._v(" "),t("el-breadcrumb-item",[a._v("分类管理")])],1)],1),a._v(" "),t("div",{staticClass:"handle-box"},[t("el-input",{staticClass:"handle-input mr10",attrs:{placeholder:"分类名称"},model:{value:a.labelName,callback:function(e){a.labelName=e},expression:"labelName"}}),a._v(" "),t("el-button",{attrs:{type:"primary",icon:"plus"},on:{click:a.addLabel}},[a._v("添加")])],1),a._v(" "),t("div",{staticClass:"div-sort mt10"},[t("p",{staticClass:"gray"},[a._v("已有标签:")]),a._v(" "),t("div",{staticClass:"label-div"},a._l(a.labelList,function(e){return t("span",{staticClass:"cursor label"},[a._v("\n "+a._s(e.article_type_name)+"\n "),t("span",{staticClass:"gray ml10",on:{click:function(t){a.removeLabel(e.article_type_id)}}},[a._v("×")])])}))])])},staticRenderFns:[]}},1041:function(a,e,t){var s=t(720);"string"==typeof s&&(s=[[a.i,s,""]]),s.locals&&(a.exports=s.locals);t(197)("f21a5d2c",s,!0)},510:function(a,e,t){t(1041);var s=t(198)(t(596),t(1019),"data-v-d3c3dd9e",null);a.exports=s.exports},596:function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"article-sort",data:function(){return{labelList:[],labelName:""}},mounted:function(){this.getLabelLists()},methods:{getLabelLists:function(){var a=this;a.$axios.post("/mapis/article/getLabels").then(function(e){e.data.state&&(a.labelList=e.data.list)})},removeLabel:function(a){var e=this;e.$axios.post("/mapis/article/changeLabelStatus",{labelId:a}).then(function(a){a.data.state&&(e.$message("标签移除成功"),e.getLabelLists())})},addLabel:function(){var a=this;return a.labelName?a.labelName.length>30?void a.$message.error("分类名称过长"):void a.$axios.post("/mapis/article/addLabel",{labelName:a.labelName}).then(function(e){e.data.state?(a.$message("标签添加成功"),a.labelName="",a.getLabelLists()):a.$message.error(e.data.msg)}):void a.$message.error("分类名称不能为空")}}}},720:function(a,e,t){e=a.exports=t(87)(!1),e.push([a.i,".handle-box[data-v-d3c3dd9e]{margin-top:30px;margin-bottom:20px}.handle-select[data-v-d3c3dd9e]{width:120px}.handle-input[data-v-d3c3dd9e]{width:300px;display:inline-block}.div-sort[data-v-d3c3dd9e]{margin:20px auto}.label[data-v-d3c3dd9e]{border:1px solid #ededed;display:inline-block;padding:5px 5px 5px 15px;margin:10px 20px;border-radius:5px;font-size:14px;color:#333}.label-div[data-v-d3c3dd9e]{color:#333;margin-top:8px}",""])}}); -------------------------------------------------------------------------------- /src/main/webapp/static/js/23.60248e603f08405fc87e.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([23],{1005:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",[l("div",{staticClass:"crumbs"},[l("el-breadcrumb",{attrs:{separator:"/"}},[l("el-breadcrumb-item",[l("i",{staticClass:"el-icon-date"}),e._v(" 表单")]),e._v(" "),l("el-breadcrumb-item",[e._v("基本表单")])],1)],1),e._v(" "),l("div",{staticClass:"form-box"},[l("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[l("el-form-item",{attrs:{label:"表单名称"}},[l("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"选择器"}},[l("el-select",{attrs:{placeholder:"请选择"},model:{value:e.form.region,callback:function(t){e.$set(e.form,"region",t)},expression:"form.region"}},[l("el-option",{key:"bbk",attrs:{label:"步步高",value:"bbk"}}),e._v(" "),l("el-option",{key:"xtc",attrs:{label:"小天才",value:"xtc"}}),e._v(" "),l("el-option",{key:"imoo",attrs:{label:"imoo",value:"imoo"}})],1)],1),e._v(" "),l("el-form-item",{attrs:{label:"日期时间"}},[l("el-col",{attrs:{span:11}},[l("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期"},model:{value:e.form.date1,callback:function(t){e.$set(e.form,"date1",t)},expression:"form.date1"}})],1),e._v(" "),l("el-col",{staticClass:"line",attrs:{span:2}},[e._v("-")]),e._v(" "),l("el-col",{attrs:{span:11}},[l("el-time-picker",{staticStyle:{width:"100%"},attrs:{type:"fixed-time",placeholder:"选择时间"},model:{value:e.form.date2,callback:function(t){e.$set(e.form,"date2",t)},expression:"form.date2"}})],1)],1),e._v(" "),l("el-form-item",{attrs:{label:"选择开关"}},[l("el-switch",{attrs:{"on-text":"","off-text":""},model:{value:e.form.delivery,callback:function(t){e.$set(e.form,"delivery",t)},expression:"form.delivery"}})],1),e._v(" "),l("el-form-item",{attrs:{label:"多选框"}},[l("el-checkbox-group",{model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[l("el-checkbox",{attrs:{label:"步步高",name:"type"}}),e._v(" "),l("el-checkbox",{attrs:{label:"小天才",name:"type"}}),e._v(" "),l("el-checkbox",{attrs:{label:"imoo",name:"type"}})],1)],1),e._v(" "),l("el-form-item",{attrs:{label:"单选框"}},[l("el-radio-group",{model:{value:e.form.resource,callback:function(t){e.$set(e.form,"resource",t)},expression:"form.resource"}},[l("el-radio",{attrs:{label:"步步高"}}),e._v(" "),l("el-radio",{attrs:{label:"小天才"}}),e._v(" "),l("el-radio",{attrs:{label:"imoo"}})],1)],1),e._v(" "),l("el-form-item",{attrs:{label:"文本框"}},[l("el-input",{attrs:{type:"textarea"},model:{value:e.form.desc,callback:function(t){e.$set(e.form,"desc",t)},expression:"form.desc"}})],1),e._v(" "),l("el-form-item",[l("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("提交")]),e._v(" "),l("el-button",[e._v("取消")])],1)],1)],1)])},staticRenderFns:[]}},519:function(e,t,l){var r=l(198)(l(607),l(1005),null,null);e.exports=r.exports},607:function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{form:{name:"",region:"",date1:"",date2:"",delivery:!0,type:["步步高"],resource:"小天才",desc:""}}},methods:{onSubmit:function(){this.$message.success("提交成功!")}}}}}); -------------------------------------------------------------------------------- /src/main/webapp/static/js/5.59e79b03585e9af9e77d.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([5],{1015:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"wrapper"},[i("v-head"),t._v(" "),i("v-sidebar"),t._v(" "),i("div",{staticClass:"content"},[i("transition",{attrs:{name:"move",mode:"out-in"}},[i("router-view")],1)],1)],1)},staticRenderFns:[]}},1016:function(t,e,i){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"header"},[n("div",{staticClass:"logo"},[t._v("心 灵 之 家")]),t._v(" "),n("div",{staticClass:"user-info"},[n("el-dropdown",{attrs:{trigger:"click"},on:{command:t.handleCommand}},[n("span",{staticClass:"el-dropdown-link"},[n("img",{staticClass:"user-logo",attrs:{src:i(992)}}),t._v("\n "+t._s(t.username)+"\n ")]),t._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"loginout"}},[t._v("退出")])],1)],1)],1)])},staticRenderFns:[]}},1024:function(t,e,i){var n=i(703);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);i(197)("1bf55851",n,!0)},1038:function(t,e,i){var n=i(717);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);i(197)("08ac67f6",n,!0)},512:function(t,e,i){var n=i(198)(i(599),i(1015),null,null);t.exports=n.exports},598:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{name:""}},computed:{username:function(){var t=sessionStorage.getItem("usr"),e=this;return t||void e.$router.push("/login")}},methods:{handleCommand:function(t){"loginout"==t&&(localStorage.removeItem("ms_username"),this.$router.push("/login"))}}}},599:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(996),s=i.n(n),o=i(997),r=i.n(o);e.default={components:{vHead:s.a,vSidebar:r.a}}},600:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{items:[{index:"user",title:"用户管理"},{index:"2",title:"文章管理",subs:[{index:"/articlelist",title:"文章列表"},{index:"/articlesort",title:"分类管理"},{index:"/article/0",title:"添加文章"}]},{index:"3",title:"音乐管理",subs:[{index:"/musicList",title:"音乐列表"},{index:"/musicsort",title:"分类管理"},{index:"/music/0",title:"添加音乐"}]},{index:"4",title:"论坛管理",subs:[{index:"/forumlist",title:"论坛列表"},{index:"/forumsort",title:"分类管理"}]},{index:"5",title:"测试管理",subs:[{index:"/testlist",title:"测试列表"},{index:"/testsort",title:"分类管理"},{index:"/addtest",title:"添加测试"}]}]}},computed:{onRoutes:function(){return this.$route.path.replace("/","")}}}},703:function(t,e,i){e=t.exports=i(87)(!1),e.push([t.i,".sidebar[data-v-059b42d2]{display:block;position:absolute;width:250px;left:0;top:70px;bottom:0;background:#2e363f}.sidebar>ul[data-v-059b42d2]{height:100%}",""])},717:function(t,e,i){e=t.exports=i(87)(!1),e.push([t.i,".header[data-v-7dcdbff2]{position:relative;box-sizing:border-box;width:100%;height:70px;font-size:22px;line-height:70px;color:#fff}.header .logo[data-v-7dcdbff2]{float:left;width:250px;text-align:center}.user-info[data-v-7dcdbff2]{float:right;padding-right:50px;font-size:16px;color:#fff}.user-info .el-dropdown-link[data-v-7dcdbff2]{position:relative;display:inline-block;padding-left:50px;color:#fff;cursor:pointer;vertical-align:middle}.user-info .user-logo[data-v-7dcdbff2]{position:absolute;left:0;top:15px;width:40px;height:40px;border-radius:50%}.el-dropdown-menu__item[data-v-7dcdbff2]{text-align:center}",""])},992:function(t,e,i){t.exports=i.p+"static/img/img.2aab7b4.jpg"},996:function(t,e,i){i(1038);var n=i(198)(i(598),i(1016),"data-v-7dcdbff2",null);t.exports=n.exports},997:function(t,e,i){i(1024);var n=i(198)(i(600),i(998),"data-v-059b42d2",null);t.exports=n.exports},998:function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"sidebar"},[i("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":t.onRoutes,theme:"dark","unique-opened":"",router:""}},[t._l(t.items,function(e){return[e.subs?[i("el-submenu",{attrs:{index:e.index}},[i("template",{slot:"title"},[i("i",{class:e.icon}),t._v(t._s(e.title))]),t._v(" "),t._l(e.subs,function(e,n){return i("el-menu-item",{key:n,attrs:{index:e.index}},[t._v(t._s(e.title)+"\n ")])})],2)]:[i("el-menu-item",{attrs:{index:e.index}},[i("i",{class:e.icon}),t._v(t._s(e.title)+"\n ")])]]})],2)],1)},staticRenderFns:[]}}}); -------------------------------------------------------------------------------- /src/main/webapp/static/js/manifest.a9e0422ed9b2f99be89d.js: -------------------------------------------------------------------------------- 1 | !function(e){function n(r){if(t[r])return t[r].exports;var c=t[r]={i:r,l:!1,exports:{}};return e[r].call(c.exports,c,c.exports,n),c.l=!0,c.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,a,o){for(var f,d,b,i=0,u=[];i