根据商品id更改上下架状态
- idea中
@Path("/{id}/{status}")
@PUT
public ReturnVO updateStatus(@PathParam("id") Long id, @PathParam("status") Integer status) {
...
}
- VScode中
$.getJSON({
url: bathpath + "api/product/" + id +'/'+status,
type: 'PUT',
...
}