package com.oying.modules.pc.product.service;
|
|
import com.oying.modules.pc.product.domain.dto.ProductCreateRequest;
|
import com.oying.modules.pc.product.domain.enums.ProductCreationType;
|
|
public interface ProductCreationStrategy {
|
|
ProductCreationType getType(); // 每个策略知道自己处理的类型
|
|
void create(ProductCreateRequest request);
|
|
boolean supports(ProductCreationType type);
|
|
}
|