diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/controller/HSController.java b/HSLink-back/src/main/java/com/qinxx/hslink/controller/HSController.java index 850bf30..d185f10 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/controller/HSController.java +++ b/HSLink-back/src/main/java/com/qinxx/hslink/controller/HSController.java @@ -7,6 +7,9 @@ import org.springframework.web.bind.annotation.*; import java.util.HashMap; import java.util.Map; +/** + * @author 帅气的布里茨 + */ @Controller @RequestMapping("/hs") public class HSController { @@ -14,7 +17,7 @@ public class HSController { @Autowired HSService hsService; - //登录验证 + /**登录验证*/ @RequestMapping(value = "/login", method = {RequestMethod.POST, RequestMethod.GET}) @ResponseBody public Map hello(@RequestBody Map param) { @@ -23,7 +26,7 @@ public class HSController { return result; } - //注册 + /**注册*/ @RequestMapping(value = "/register", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map register(@RequestBody Map param) { @@ -32,16 +35,15 @@ public class HSController { return result; } - //获取首页内容 + /**获取首页内容*/ @RequestMapping(value = "/getAllContent", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map getAllContent(@RequestBody Map param) { - Map result = new HashMap<>(); - result = hsService.getAllContent(param); + Map result = hsService.getAllContent(param); return result; } - //获取一条数据具体内容 + /**获取一条数据具体内容*/ @RequestMapping(value = "/getOneContent", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map getOneContent(@RequestBody Map param) { @@ -49,7 +51,7 @@ public class HSController { return result; } - //查询某些条件数据 + /**查询某些条件数据*/ @RequestMapping(value = "/getListByAttribute", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map getListByAttribute(@RequestBody Map param) { @@ -57,7 +59,7 @@ public class HSController { return result; } - //新增留言 + /**新增留言*/ @RequestMapping(value = "/addMessage", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map addMessage(@RequestBody Map param) { @@ -65,7 +67,7 @@ public class HSController { return result; } - //新增一条数据 + /**新增一条数据*/ @RequestMapping(value = "/addArticle", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map addArticle(@RequestBody Map param) { @@ -73,7 +75,7 @@ public class HSController { return result; } - //新增一条班级通知 + /**新增一条班级通知*/ @RequestMapping(value = "/addClassNotice", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map addClassNotice(@RequestBody Map param) { @@ -81,7 +83,7 @@ public class HSController { return result; } - //获取班级信息 + /**获取班级信息*/ @RequestMapping(value = "/getClassInfo", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map getClassInfo(@RequestBody Map param) { @@ -89,7 +91,7 @@ public class HSController { return result; } - //新增班级公告 + /**新增班级公告*/ @RequestMapping(value = "/addBulletin", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map addBulletin(@RequestBody Map param) { @@ -97,7 +99,7 @@ public class HSController { return result; } - //修改班级公告 + /**修改班级公告*/ @RequestMapping(value = "/updateBulletin", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map updateBulletin(@RequestBody Map param) { @@ -105,7 +107,7 @@ public class HSController { return result; } - //修改密码 + /**修改密码*/ @RequestMapping(value = "/updatePassword", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map updatePassword(@RequestBody Map param) { @@ -113,7 +115,7 @@ public class HSController { return result; } - //编辑一条数据具体内容 + /**编辑一条数据具体内容*/ @RequestMapping(value = "/updateOneContent", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map updateOneContent(@RequestBody Map param) { @@ -121,7 +123,7 @@ public class HSController { return result; } - //删除一条数据 + /**删除一条数据*/ @RequestMapping(value = "/deleteOne", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map deleteOne(@RequestBody Map param) { @@ -129,7 +131,7 @@ public class HSController { return result; } - //删除一条留言 + /**删除一条留言*/ @RequestMapping(value = "/deleteOneMessage", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map deleteOneMessage(@RequestBody Map param) { @@ -137,7 +139,7 @@ public class HSController { return result; } - //获取个人信息 + /**获取个人信息*/ @RequestMapping(value = "/getPersonalInfo", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map getPersonalInfo(@RequestBody Map param) { @@ -145,7 +147,7 @@ public class HSController { return result; } - //获取个人私信 + /**获取个人私信*/ @RequestMapping(value = "/getPersonalPrivateLetter", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map getPersonalPrivateLetter(@RequestBody Map param) { @@ -153,7 +155,7 @@ public class HSController { return result; } - //阅读私信 + /**阅读私信*/ @RequestMapping(value = "/readPrivateLetter", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map readPrivateLetter(@RequestBody Map param) { @@ -161,7 +163,7 @@ public class HSController { return result; } - //发送私信 + /**发送私信*/ @RequestMapping(value = "/sendLetter", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map sendLetter(@RequestBody Map param) { @@ -169,7 +171,7 @@ public class HSController { return result; } - //删除一条私信 + /**删除一条私信*/ @RequestMapping(value = "/deleteLetter", method = {RequestMethod.POST,RequestMethod.GET}) @ResponseBody public Map deleteLetter(@RequestBody Map param) { diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/HSLinkMapper.xml b/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/HSLinkMapper.xml index 76164b5..c0ea436 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/HSLinkMapper.xml +++ b/HSLink-back/src/main/java/com/qinxx/hslink/dao/mapping/HSLinkMapper.xml @@ -10,7 +10,7 @@ - INSERT INTO hs_user ( user_id, pass_word,real_name, mobile, user_type, creat_time, frozen_state, error_times) + INSERT INTO hs_user ( user_id, pass_word,real_name, mobile, user_type, create_time, frozen_state, error_times) VALUES ( uuid(), diff --git a/HSLink-back/src/main/java/com/qinxx/hslink/service/HSService.java b/HSLink-back/src/main/java/com/qinxx/hslink/service/HSService.java index 47a3669..3a18b7c 100644 --- a/HSLink-back/src/main/java/com/qinxx/hslink/service/HSService.java +++ b/HSLink-back/src/main/java/com/qinxx/hslink/service/HSService.java @@ -5,6 +5,9 @@ import org.springframework.web.bind.annotation.RequestBody; import java.util.List; import java.util.Map; +/** + * @author 帅气的布里茨 + */ public interface HSService { /**