Ver código fonte

新增轮播图修改

anderx 7 anos atrás
pai
commit
2a4d6a7d09

+ 0 - 11
src/main/java/com/goafanti/app/controller/OpenAppHomeController.java

@@ -1,30 +1,19 @@
 package com.goafanti.app.controller;
 
-import java.util.ArrayList;
 import java.util.HashMap;
-import java.util.List;
 import java.util.Map;
-
 import javax.annotation.Resource;
-import javax.servlet.http.HttpServletRequest;
-
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.ResponseBody;
 import org.springframework.web.bind.annotation.RestController;
-
-import com.goafanti.app.bo.HomeImgBo;
-import com.goafanti.banners.enums.BannersType;
 import com.goafanti.banners.service.BannersService;
 import com.goafanti.business.service.JtBusinessService;
 import com.goafanti.business.service.JtTagService;
 import com.goafanti.comment.bo.CommentResult;
 import com.goafanti.comment.service.CommentService;
 import com.goafanti.common.bo.Result;
-import com.goafanti.common.constant.AFTConstants;
 import com.goafanti.common.constant.ErrorConstants;
 import com.goafanti.common.controller.BaseApiController;
-import com.goafanti.common.enums.BannersStatus;
 import com.goafanti.common.utils.StringUtils;
 
 @RestController

+ 6 - 0
src/main/java/com/goafanti/banners/controller/AdminBannersApiController.java

@@ -106,6 +106,12 @@ public class AdminBannersApiController extends BaseApiController {
 		result.setData(bannersService.deleteBanner(id));
 		return result;
 	}
+	@RequestMapping(value="/update" ,method=RequestMethod.POST)
+	public Result details(Banners b){
+		Result result=new Result();
+		result.setData(bannersService.updateBanner(b));
+		return result;
+	}
 	@RequestMapping(value="/list" ,method=RequestMethod.GET)
 	public Result list(String apiUrl,Integer client,Integer pageSize,Integer pageNo,HttpServletRequest request){
 		Result result=new Result();