商品管理UML
2020-10-20 10:02:57 0 举报
商品管理UML类图
作者其他创作
大纲/内容
implement
$goods = new Goods();$goods.addItem(new Attribute(params['attr']))$goods.addItem(new Design(params['design']))$goods.addItem(new Spec(params['spec']))$goods.create();
SpecAttributeBuilder
+ create()+ update()
builds
DesignBuilder
- fillable()+ create()+ update()
GoodsController
OSS
+ operation1(params):returnType- operation2(params)- operation3()
依赖
public function create() { foreach($items as $item) { $item->create(); }}
Goods
+ items:ArrayList <item>
+ addItem(Item $item)+ create()+ update()-snapshot()
Snapshot
+ __construct(OSS $oss)+ create(int $vension)- updateOSS()
<<abstract>>AttributeBuilder
<<interface>>GoodsItem
+ item Array
- fillable()+ create(params)+ update(params)
GoodsCopyBuilder
+ copy(spu_id):int
SpecBuilder
uses
extend
复制商品$goods = new Goods();$goods.addItem(new Attribute(Item))$goods.addItem(new Design(Item))$goods.addItem(new Spec(Item))$goods.create();
(new MealBuilder())->create(Data)
BaseAttributeBuilder
GoodsBuilder
+ create(params):int+ update(params):void
asks
建造者模式
0 条评论
下一页