|
@@ -27,11 +27,9 @@ import java.util.List;
|
|
|
@RequestMapping("/img")
|
|
|
@RequiredArgsConstructor
|
|
|
public class StoreImgController {
|
|
|
-
|
|
|
private final StoreImgService storeImgService;
|
|
|
private final StoreInfoService storeInfoService;
|
|
|
|
|
|
-
|
|
|
@ApiOperation("获取图片")
|
|
|
@ApiOperationSupport(order = 1)
|
|
|
@ApiImplicitParams({@ApiImplicitParam(name = "storeId", value = "门店id", dataType = "Integer", paramType = "query", required = true),
|
|
@@ -67,7 +65,7 @@ public class StoreImgController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("新增/修改/删除图片")
|
|
|
- @ApiOperationSupport(order = 3)
|
|
|
+ @ApiOperationSupport(order = 4)
|
|
|
@PostMapping("/saveOrUpdateImg")
|
|
|
public R<String> saveOrUpdateImg(@RequestBody StoreImgInfoVo storeImgInfoVo) {
|
|
|
log.info("StoreImgController.saveOrUpdateImg?storeImgInfoVo={}", storeImgInfoVo);
|
|
@@ -92,7 +90,7 @@ public class StoreImgController {
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "删除图片")
|
|
|
- @ApiOperationSupport(order = 4)
|
|
|
+ @ApiOperationSupport(order = 5)
|
|
|
@PostMapping("/delete")
|
|
|
public R<String> delete(@RequestBody List<Integer> ids) {
|
|
|
log.info("StoreImgController.delete?ids={}", ids);
|
|
@@ -103,14 +101,14 @@ public class StoreImgController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("获取轮播图")
|
|
|
- @ApiOperationSupport(order = 5)
|
|
|
+ @ApiOperationSupport(order = 6)
|
|
|
@GetMapping("/getCarouselImage")
|
|
|
public R<List<StoreImg>> getCarouselImage() {
|
|
|
return R.data(storeImgService.getCarouselImage());
|
|
|
}
|
|
|
|
|
|
@ApiOperation("获取用户打卡广场小人图片")
|
|
|
- @ApiOperationSupport(order = 6)
|
|
|
+ @ApiOperationSupport(order = 7)
|
|
|
@ApiImplicitParams({@ApiImplicitParam(name = "userId", value = "用户id", dataType = "Integer", paramType = "query", required = true)})
|
|
|
@GetMapping("/getUserClockImg")
|
|
|
public R<String> getUserClockImg(Integer userId) {
|
|
@@ -119,7 +117,7 @@ public class StoreImgController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("通过businessId获取图片")
|
|
|
- @ApiOperationSupport(order = 6)
|
|
|
+ @ApiOperationSupport(order = 8)
|
|
|
@ApiImplicitParams({@ApiImplicitParam(name = "storeId", value = "门店id", dataType = "Integer", paramType = "query", required = true),
|
|
|
@ApiImplicitParam(name = "imgType", value = "图片类型, 0:其他, 1:入口图, 2:相册, 3:菜品, 4:环境, 5:价目表, 6:推荐菜, 7:菜单, 8:用户评论, 9:商家申诉, 10:商家头像, 11:店铺轮播图", dataType = "Integer", paramType = "query", required = true),
|
|
|
@ApiImplicitParam(name = "businessId", value = "业务ID", dataType = "Integer", paramType = "query", required = true)})
|