|
|
@@ -21,7 +21,7 @@ import com.goafanti.common.utils.StringUtils;
|
|
|
import com.goafanti.core.mybatis.JDBCIdGenerator;
|
|
|
|
|
|
@Controller
|
|
|
-@RequestMapping(value = "/open/api/admin/banners")
|
|
|
+@RequestMapping(value = "/api/admin/banners")
|
|
|
public class AdminBannersApiController extends BaseApiController {
|
|
|
@Resource
|
|
|
BannersService bannersService;
|
|
|
@@ -131,24 +131,9 @@ public class AdminBannersApiController extends BaseApiController {
|
|
|
result.setData(bannersService.updateBanner(b));
|
|
|
return result;
|
|
|
}
|
|
|
- /**
|
|
|
- * 获取分页轮播图
|
|
|
- * @param apiUrl
|
|
|
- * @param client
|
|
|
- * @param pageSize
|
|
|
- * @param pageNo
|
|
|
- * @param request
|
|
|
- * @return
|
|
|
- */
|
|
|
|
|
|
- @RequestMapping(value="/list" ,method=RequestMethod.GET)
|
|
|
- public Result list(String apiUrl,Integer client,Integer pageSize,Integer pageNo,HttpServletRequest request){
|
|
|
- Result result=new Result();
|
|
|
- result.setData(bannersService.findBannersList( apiUrl,client, pageSize, pageNo));
|
|
|
- return result;
|
|
|
- }
|
|
|
/**
|
|
|
- * 获取集合轮播图
|
|
|
+ * 轮播图列表
|
|
|
* @param apiUrl
|
|
|
* @param client
|
|
|
* @param pageSize
|
|
|
@@ -173,7 +158,7 @@ public class AdminBannersApiController extends BaseApiController {
|
|
|
Result res = new Result();
|
|
|
AttachmentType attachmentType = AttachmentType.getField(sign);
|
|
|
if (attachmentType == AttachmentType.BANNERS_PIC) {
|
|
|
- res.setData(handleFiles(res, "/", false, req, sign, "banners"));
|
|
|
+ res.setData(handleFiles(res, "/banners/", false, req, sign, ""));
|
|
|
} else {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", "图片标示"));
|
|
|
}
|