第一次提交
This commit is contained in:
10
common/enum/goods/GoodsType.js
Executable file
10
common/enum/goods/GoodsType.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:商品类型
|
||||
* GoodsTypeEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'PHYSICAL', name: '实物商品', value: 10 },
|
||||
{ key: 'VIRTUAL', name: '虚拟商品', value: 20 }
|
||||
])
|
||||
10
common/enum/goods/SpecType.js
Executable file
10
common/enum/goods/SpecType.js
Executable file
@@ -0,0 +1,10 @@
|
||||
import Enum from '../enum'
|
||||
|
||||
/**
|
||||
* 枚举类:商品规格类型
|
||||
* SpecTypeEnum
|
||||
*/
|
||||
export default new Enum([
|
||||
{ key: 'SINGLE', name: '单规格', value: 10 },
|
||||
{ key: 'MULTI', name: '多规格', value: 20 }
|
||||
])
|
||||
4
common/enum/goods/index.js
Executable file
4
common/enum/goods/index.js
Executable file
@@ -0,0 +1,4 @@
|
||||
import GoodsTypeEnum from './GoodsType'
|
||||
import SpecTypeEnum from './SpecType'
|
||||
|
||||
export { GoodsTypeEnum, SpecTypeEnum }
|
||||
Reference in New Issue
Block a user