package com.oying.modules.pc.store.service.impl; import com.oying.modules.pc.store.domain.Store; import com.oying.modules.pc.store.domain.dto.StoreCreateRequest; import com.oying.modules.pc.store.service.StoreCreateService; import com.oying.modules.pc.store.service.StoreMerchantService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @Slf4j @Service @RequiredArgsConstructor public class StoreCreateServiceImpl implements StoreCreateService { private final StoreMerchantService storeMerchantService; @Transactional(rollbackFor = Exception.class) public Store create(StoreCreateRequest request) { return storeMerchantService.createStore(request); } }