mirror of
https://github.com/motajs/template.git
synced 2026-11-20 19:54:36 +08:00
refactor: 数据端用户结构
This commit is contained in:
1 parent
0a133058ca
commit
a0e402728e
41 files changed
+901
-100
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { IDataPluginDefine } from '@user/data-state';
|
||||
import { ShopPlugin } from './shop';
|
||||
import { DataShopPlugin } from './shop';
|
||||
|
||||
/** 数据端插件列表 */
|
||||
export const dataPlugins: IDataPluginDefine[] = [new ShopPlugin()];
|
||||
export const dataPlugins: IDataPluginDefine[] = [new DataShopPlugin()];
|
||||
@@ -1 +1,5 @@
|
||||
export * from './shop';
|
||||
export * from './manager';
|
||||
export * from './plugin';
|
||||
export * from './state';
|
||||
export * from './system';
|
||||
export * from './types';
|
||||
@@ -4,8 +4,8 @@ import { ShopManager } from './manager';
|
||||
import { ShopState } from './state';
|
||||
import { ShopSystem } from './system';
|
||||
|
||||
export class ShopPlugin implements IShopPlugin {
|
||||
id: string = 'shop-plugin';
|
||||
export class DataShopPlugin implements IShopPlugin {
|
||||
id: string = 'data-shop-plugin';
|
||||
dependencies: string[] = [];
|
||||
|
||||
shop!: IShopSystem;
|
||||
Reference in new issue
Block a user