feat(后台): 添加订单管理

master
wayn 4 years ago
parent 6a57e242b3
commit 97bde02e09

@ -6,9 +6,7 @@ import com.wayn.common.core.domain.shop.Order;
import com.wayn.common.core.service.shop.IAdminOrderService;
import com.wayn.common.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
@RestController
@ -24,5 +22,9 @@ public class AdminOrderController extends BaseController {
return R.success().add("page", iAdminOrderService.selectListPage(page, order));
}
@DeleteMapping("{orderId}")
public R deleteOrder(@PathVariable Long orderId) {
return R.result(iAdminOrderService.removeById(orderId));
}
}

Loading…
Cancel
Save