use of com.stardata.starshop2.sharedcontext.domain.LongIdentity in project starshop by beautautumn.
the class OrderManagingService method setInvisible.
public Order setInvisible(LongIdentity orderId) {
Order order = orderRepository.instanceOf(orderId);
order.setInvisible();
orderRepository.update(order);
return order;
}
use of com.stardata.starshop2.sharedcontext.domain.LongIdentity in project starshop by beautautumn.
the class ProductAppService method getDetail.
public ProductResponse getDetail(Long productIdLong) {
LongIdentity productId = LongIdentity.from(productIdLong);
Product product = managingService.detail(productId);
return ProductResponse.from(product);
}
use of com.stardata.starshop2.sharedcontext.domain.LongIdentity in project starshop by beautautumn.
the class ShopAppService method getDetail.
public ShopResponse getDetail(Long shopIdLong) {
LongIdentity shopId = LongIdentity.from(shopIdLong);
Shop shop = managingService.detail(shopId);
return ShopResponse.from(shop);
}
use of com.stardata.starshop2.sharedcontext.domain.LongIdentity in project starshop by beautautumn.
the class OrderAppService method prepay.
public PrepayResponse prepay(Long orderIdLong) {
LongIdentity orderId = LongIdentity.from(orderIdLong);
WxPrepayOrder prepay = managingService.prepayOrder(orderId);
return PrepayResponse.from(prepay);
}
use of com.stardata.starshop2.sharedcontext.domain.LongIdentity in project starshop by beautautumn.
the class ShoppingCartManagingService method queryShoppingCart.
public ShoppingCart queryShoppingCart(LongIdentity userId, LongIdentity shopId) {
ShoppingCart shoppingCart = shoppingCartRepository.findForUserInShop(userId, shopId);
settlementClient.settleProducts(shoppingCart);
return shoppingCart;
}
Aggregations