| | |
| | | import cn.lili.common.enums.ResultUtil; |
| | | import cn.lili.common.security.context.UserContext; |
| | | import cn.lili.common.utils.StringUtils; |
| | | import cn.lili.common.vo.PageVO; |
| | | import cn.lili.common.vo.ResultMessage; |
| | | import cn.lili.modules.member.entity.dto.FootPrintQueryParams; |
| | | import cn.lili.modules.member.service.FootprintService; |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.catalina.User; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private COSUtil cosUtil; |
| | | |
| | | @ApiOperation(value = "分页获取") |
| | | @GetMapping |
| | | public ResultMessage<IPage<EsGoodsIndex>> getByPage(FootPrintQueryParams params) { |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "根据id删除") |
| | | @ApiImplicitParam(name = "ids", value = "商品ID", required = true, allowMultiple = true, dataType = "String", paramType = "path") |
| | | @DeleteMapping(value = "/delByIds/{ids}") |
| | | public ResultMessage<Object> delAllByIds(@NotNull(message = "商品ID不能为空") @PathVariable("ids") List ids) { |
| | | footprintService.deleteByIds(ids); |
| | | @ApiImplicitParam(name = "ids", value = "关联ID", required = true, allowMultiple = true, dataType = "String", paramType = "path") |
| | | @DeleteMapping(value = "/delByIds/{viewType}/{ids}") |
| | | public ResultMessage<Object> delAllByIds(@NotNull(message = "关联ID不能为空") @PathVariable("ids") List ids, @PathVariable("viewType") String viewType) { |
| | | footprintService.deleteByIds(ids, viewType); |
| | | return ResultUtil.success(); |
| | | |
| | | } |