Last change
on this file since e6c2521 was e6c2521, checked in by darsov2 <62809499+darsov2@…>, 6 months ago |
images upload/download impl, other fixes
|
-
Property mode
set to
100644
|
File size:
1017 bytes
|
Line | |
---|
1 | package com.tourMate.services.impl;
|
---|
2 |
|
---|
3 | import com.tourMate.entities.Menu;
|
---|
4 | import com.tourMate.services.MenuManager;
|
---|
5 | import org.springframework.beans.factory.annotation.Autowired;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 | import com.tourMate.dao.MenuDao;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 |
|
---|
11 | @Service
|
---|
12 | public class MenuManagerImpl implements MenuManager {
|
---|
13 |
|
---|
14 | @Autowired
|
---|
15 | MenuDao menuDao;
|
---|
16 |
|
---|
17 | @Override
|
---|
18 | public void createMenu(String name, String ingredients, double price) {
|
---|
19 | menuDao.createMenu(name, ingredients, price);
|
---|
20 | }
|
---|
21 |
|
---|
22 | @Override
|
---|
23 | public void deleteMenu(long menuId) {
|
---|
24 | menuDao.deleteMenu(menuId);
|
---|
25 | }
|
---|
26 |
|
---|
27 | @Override
|
---|
28 | public List<Menu> getCreatedMenus() {
|
---|
29 | return menuDao.getCreatedMenus();
|
---|
30 | }
|
---|
31 |
|
---|
32 | @Override
|
---|
33 | public Menu findMenuById(long menuId) {
|
---|
34 | return menuDao.findMenuById(menuId);
|
---|
35 | }
|
---|
36 |
|
---|
37 | @Override
|
---|
38 | public void editMenu(long menuId, String name, String ingredients, double price) {
|
---|
39 | menuDao.editMenu(menuId, name, ingredients, price);
|
---|
40 | }
|
---|
41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.