zenlint commented on a change in pull request #10: new houserush sample 
framework
URL: https://github.com/apache/servicecomb-samples/pull/10#discussion_r306725867
 
 

 ##########
 File path: 
houserush/realestate/src/main/java/org/apache/servicecomb/samples/practise/houserush/realestate/api/RealestateApi.java
 ##########
 @@ -0,0 +1,50 @@
+package org.apache.servicecomb.samples.practise.houserush.realestate.api;
+
+import 
org.apache.servicecomb.samples.practise.houserush.realestate.aggregate.Building;
+import 
org.apache.servicecomb.samples.practise.houserush.realestate.aggregate.House;
+import 
org.apache.servicecomb.samples.practise.houserush.realestate.aggregate.Realestate;
+
+import java.util.List;
+
+public interface RealestateApi {
+    Realestate createRealestate(Realestate realestate);
+
+    Realestate findRealestate(int id);
+
+    Realestate updateRealestate(int id, Realestate realestate);
+
+    void removeRealestate(int id);
+
+    List<Realestate> indexRealestates();
+
+
+
+    Building createBuilding(int realestateId, Building building);
+
+    Building findBuilding(int id);
+
+    Building updateBuilding(int id, Building building);
+
+    void removeBuilding(int id);
+
+    List<Building> indexBuildings(int realestateId);
+
+
+
+    House createHouse(int buidingId, House house);
+
+    House findHouse(int id);
+
+    House updateHouse(int id, House house);
+
+    void removeHouse(int id);
+
+    List<House> indexHouses(int buildingId);
+
+
+    List<House> lockHousesForSale(List<Integer> ids);
+
+
 
 Review comment:
   Extra blank.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to