订单菜品类CRUD和Controller API
This commit is contained in:
parent
872bb0e3e7
commit
c6e1ec0771
@ -0,0 +1,4 @@
|
|||||||
|
package com.example.springdemo.controller;
|
||||||
|
|
||||||
|
public class OrderDishesController {
|
||||||
|
}
|
@ -0,0 +1,10 @@
|
|||||||
|
package com.example.springdemo.dao;
|
||||||
|
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public interface OrderDishesRepository
|
||||||
|
extends JpaRepository<OrderDishesRepository, Long> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.example.springdemo.service;
|
||||||
|
|
||||||
|
import com.example.springdemo.entities.OrderDishes;
|
||||||
|
|
||||||
|
public interface OrderDishesService {
|
||||||
|
OrderDishes addIndentItem(OrderDishes orderDishes);
|
||||||
|
|
||||||
|
void deleteIndentItemById(Long id);
|
||||||
|
|
||||||
|
OrderDishes updateIndentItem(OrderDishes orderDishes);
|
||||||
|
|
||||||
|
Iterable<OrderDishes> findAllIndentItems();
|
||||||
|
}
|
@ -0,0 +1,27 @@
|
|||||||
|
package com.example.springdemo.service;
|
||||||
|
|
||||||
|
import com.example.springdemo.entities.OrderDishes;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class OrderDishesServiceImpl implements OrderDishesService {
|
||||||
|
@Override
|
||||||
|
public OrderDishes addIndentItem(OrderDishes orderDishes) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteIndentItemById(Long id) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public OrderDishes updateIndentItem(OrderDishes orderDishes) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Iterable<OrderDishes> findAllIndentItems() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user