订单菜品类CRUD和Controller API

This commit is contained in:
myh 2023-11-07 23:46:40 +08:00
parent 872bb0e3e7
commit c6e1ec0771
4 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,4 @@
package com.example.springdemo.controller;
public class OrderDishesController {
}

View File

@ -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> {
}

View File

@ -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();
}

View File

@ -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;
}
}