zepengdev
2025-07-14 43315000b2840313a5aff96bf314b3c061e4616d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
    }
}