src/com/demo/service/BusinessService.java
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.demo.service;
import java.util.List;
import com.demo.model.Cart;
import com.demo.model.Category;
import com.demo.model.Clothes;
import com.demo.model.Order;
import com.demo.model.Page;
import com.demo.model.User;
/**
* 面向控制层的接口-对应于系统的主要功能
* @author shao
*/
public interface BusinessService {
/**
* 创建一个新分类
* @param category
*/
void addCategory(Category category);
/**
* 获取一个分类
* @param id
* @return Category
*/
Category findCategory(String id);
/**
* 获取全部分类
* @return List<Category>
*/
List<Category> getAllCategory();
/**
* 创建一个新商品
* @param clothes
*/
void addClothes(Clothes clothes);
/**
* 获取一个商品
* @param id
* @return Clothes
*/
Clothes findClothes(String id);
/**
* 获取商品列表分页数据
* @param startIndex
* @param pageSize
* @return List<Clothes>
*/
Page getClothesPageData(String pageNum);
/**
* 获取指定分类下的商品列表分页数据
* @param startIndex
后面还有 77 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。