-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFoodInfoService.java
33 lines (22 loc) · 947 Bytes
/
FoodInfoService.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.food.foodweb.service;
import com.food.foodweb.model.Comment;
import com.food.foodweb.model.Food;
import com.food.foodweb.model.OrderedFood;
import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Transactional
public interface FoodInfoService {
@Transactional(readOnly = true)
Food findFoodByName(String name);
boolean insertFoodByName(String userName, String foodName, String date);
@Transactional(readOnly = true)
List<OrderedFood> findCollectInfoByName(String name);
@Transactional(readOnly = true)
OrderedFood findCollectInfoByFoodName(String foodName);
boolean delCollect(String food_name,String user_name);
boolean insertComment(String name, String comment, String date);
PageInfo<Food> findAllinfo(int pageNum, int pageSize);
boolean commentDel(String comment);
List<Comment> findAllComments();
}