商品审核swagger

This commit is contained in:
chc
2025-09-23 13:31:11 +08:00
parent 81b7da07f4
commit f2cb6b56ea

View File

@@ -80,9 +80,9 @@ public class GoodsManagerController {
@ApiImplicitParam(name = "authFlag", value = "审核结果", required = true, paramType = "query", dataType = "string")
})
@PutMapping(value = "auth")
public ResultMessage<Object> auth(@RequestParam List<String> goodsId, @RequestParam String authFlag) {
public ResultMessage<Object> auth(@RequestParam List<String> goodsIds, @RequestParam String authFlag) {
//校验商品是否存在
if (goodsService.auditGoods(goodsId, GoodsAuthEnum.valueOf(authFlag))) {
if (goodsService.auditGoods(goodsIds, GoodsAuthEnum.valueOf(authFlag))) {
return ResultUtil.success();
}
throw new ServiceException(ResultCode.GOODS_AUTH_ERROR);