@@ -62,13 +62,13 @@ public String getFriendListView() {
62
62
* @description: 分页查询:根据好友姓名获取指定/所有好友信息列表
63
63
* @param: page 当前页码
64
64
* @param: rows 列表行数
65
- * @param: username 管理员姓名
65
+ * @param: username 好友姓名
66
66
* @date: 2019-06-28 9:16 PM
67
67
* @return: java.util.Map<java.lang.String, java.lang.Object>
68
68
*/
69
69
@ PostMapping ("/getFriendList" )
70
70
@ ResponseBody
71
- public Map <String , Object > getAdminList (Integer page , Integer rows , String username ) {
71
+ public Map <String , Object > getFriendList (Integer page , Integer rows , String username ) {
72
72
73
73
//获取查询的好友姓名
74
74
Friend friend = new Friend ();
@@ -99,7 +99,7 @@ public Map<String, Object> getAdminList(Integer page, Integer rows, String usern
99
99
*/
100
100
@ PostMapping ("/addFriend" )
101
101
@ ResponseBody
102
- public Map <String , Object > addAdmin (Friend friend ) {
102
+ public Map <String , Object > addFriend (Friend friend ) {
103
103
//判断姓名是否已存在
104
104
Friend f = friendService .findByName (friend .getName ());
105
105
if (f == null ) {
@@ -124,7 +124,7 @@ public Map<String, Object> addAdmin(Friend friend) {
124
124
*/
125
125
@ PostMapping ("/editFriend" )
126
126
@ ResponseBody
127
- public Map <String , Object > edityAdmin (Friend friend ) {
127
+ public Map <String , Object > editFriend (Friend friend ) {
128
128
//需排除只修改姓名以外信息的操作
129
129
Friend user = friendService .findByName (friend .getName ());
130
130
if (user != null ) {
@@ -152,7 +152,7 @@ public Map<String, Object> edityAdmin(Friend friend) {
152
152
*/
153
153
@ PostMapping ("/deleteFriend" )
154
154
@ ResponseBody
155
- public Map <String , Object > deleteAdmin (@ RequestParam (value = "ids[]" , required = true ) Integer [] ids ) {
155
+ public Map <String , Object > deleteFriend (@ RequestParam (value = "ids[]" , required = true ) Integer [] ids ) {
156
156
157
157
if (friendService .delete (ids ) > 0 ) {
158
158
result .put ("success" , true );
@@ -178,4 +178,4 @@ public Map<String, Object> uploadPhoto(MultipartFile photo) throws FileNotFoundE
178
178
//返回头像的上传结果
179
179
return UploadFile .getUploadResult (photo , dirPath , uploadPath );
180
180
}
181
- }
181
+ }
0 commit comments