Pārlūkot izejas kodu

上传文件至 'Shop/src/cn/service'

1801010538 5 gadi atpakaļ
vecāks
revīzija
842e6678d1

+ 10 - 0
Shop/src/cn/service/AgentService.java

@@ -0,0 +1,10 @@
+package cn.service;
+
+import cn.domain.Agent;
+import cn.domain.Order;
+
+public interface AgentService {
+    public Agent login(Agent agent)throws Exception;
+    public void register(Agent agent)throws Exception;
+    public Agent findByMid(String mid)throws Exception;
+}

+ 13 - 0
Shop/src/cn/service/CompanyService.java

@@ -0,0 +1,13 @@
+package cn.service;
+
+import cn.domain.Company;
+
+import java.util.List;
+
+public interface CompanyService {
+    public void register(Company company) throws Exception;
+    public List<Company> companyInfomation()throws Exception;
+    public List<Company> pendingMatters()throws Exception;
+    public void pass(String mid)throws Exception;
+    public List<Company> findCompany()throws Exception;
+}

+ 11 - 0
Shop/src/cn/service/OrderService.java

@@ -0,0 +1,11 @@
+package cn.service;
+
+import cn.domain.Order;
+
+import java.util.List;
+
+public interface OrderService {
+    void saveOrder(Order order)throws Exception;
+    public List<Order> findBySaler(String saler)throws Exception;
+    public List<Order> findByBuyer(String buyer)throws Exception;
+}

+ 14 - 0
Shop/src/cn/service/ProductService.java

@@ -0,0 +1,14 @@
+package cn.service;
+
+import cn.domain.Product;
+
+import java.util.List;
+
+public interface ProductService {
+    public List<Product> findProduct()throws Exception;
+    public Product findProductById(String mid)throws Exception;
+    public List<Product> findProductByScompany(String scompany)throws Exception;
+    public void addProduct(Product product)throws Exception;
+    public void deleteProduct(String mid)throws Exception;
+    public void updateProduct(Product product)throws Exception;
+}