Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EShop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
EShop
Commits
bf640e6b
Commit
bf640e6b
authored
Apr 15, 2020
by
gdlcf88
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved entities
parent
79cbe560
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
131 additions
and
10 deletions
+131
-10
EShopProductsDomainSharedModule.cs
...Products.Domain.Shared/EShopProductsDomainSharedModule.cs
+1
-3
EasyAbp.EShop.Products.Domain.Shared.csproj
...Domain.Shared/EasyAbp.EShop.Products.Domain.Shared.csproj
+0
-4
InventoryStrategy.cs
...Shop.Products.Domain.Shared/Products/InventoryStrategy.cs
+9
-0
ProductInventoryReductionFailedEto.cs
...ain.Shared/Products/ProductInventoryReductionFailedEto.cs
+10
-0
Category.cs
.../src/EasyAbp.EShop.Products.Domain/Categories/Category.cs
+12
-0
EShopProductsDomainModule.cs
...asyAbp.EShop.Products.Domain/EShopProductsDomainModule.cs
+5
-3
EasyAbp.EShop.Products.Domain.csproj
...Shop.Products.Domain/EasyAbp.EShop.Products.Domain.csproj
+4
-0
ProductCategory.cs
...Shop.Products.Domain/ProductCategories/ProductCategory.cs
+6
-0
ProductType.cs
...EasyAbp.EShop.Products.Domain/ProductTypes/ProductType.cs
+10
-0
IProductInventoryManager.cs
...Shop.Products.Domain/Products/IProductInventoryManager.cs
+7
-0
IProductPriceProvider.cs
...p.EShop.Products.Domain/Products/IProductPriceProvider.cs
+7
-0
Product.cs
...cts/src/EasyAbp.EShop.Products.Domain/Products/Product.cs
+13
-0
ProductAttribute.cs
...asyAbp.EShop.Products.Domain/Products/ProductAttribute.cs
+5
-0
ProductAttributeOption.cs
....EShop.Products.Domain/Products/ProductAttributeOption.cs
+5
-0
ProductDetail.cs
...c/EasyAbp.EShop.Products.Domain/Products/ProductDetail.cs
+19
-0
ProductSku.cs
.../src/EasyAbp.EShop.Products.Domain/Products/ProductSku.cs
+18
-0
No files found.
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EShopProductsDomainSharedModule.cs
View file @
bf640e6b
using
Volo.Abp.Modularity
;
using
Volo.Abp.Localization
;
using
EasyAbp.EShop.Products.Localization
;
using
EasyAbp.EShop.Stores
;
using
Volo.Abp.Localization.ExceptionHandling
;
using
Volo.Abp.Validation
;
using
Volo.Abp.Validation.Localization
;
...
...
@@ -10,8 +9,7 @@ using Volo.Abp.VirtualFileSystem;
namespace
EasyAbp.EShop.Products
{
[
DependsOn
(
typeof
(
AbpValidationModule
),
typeof
(
EShopStoresDomainSharedModule
)
typeof
(
AbpValidationModule
)
)]
public
class
EShopProductsDomainSharedModule
:
AbpModule
{
...
...
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/EasyAbp.EShop.Products.Domain.Shared.csproj
View file @
bf640e6b
...
...
@@ -16,8 +16,4 @@
<Content Remove="Localization\Products\*.json" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.Domain.Shared\EasyAbp.EShop.Stores.Domain.Shared.csproj" />
</ItemGroup>
</Project>
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/Products/InventoryStrategy.cs
0 → 100644
View file @
bf640e6b
namespace
EasyAbp.EShop.Products.Products
{
public
enum
InventoryStrategy
{
NoNeed
=
1
,
ReduceAfterPlacing
=
2
,
ReduceAfterPayment
=
4
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain.Shared/Products/ProductInventoryReductionFailedEto.cs
0 → 100644
View file @
bf640e6b
using
System
;
namespace
EasyAbp.EShop.Products.Products
{
[
Serializable
]
public
class
ProductInventoryReductionFailedEto
{
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/Categories/Category.cs
View file @
bf640e6b
using
System
;
using
JetBrains.Annotations
;
using
Volo.Abp.Domain.Entities.Auditing
;
using
Volo.Abp.MultiTenancy
;
...
...
@@ -7,5 +8,16 @@ namespace EasyAbp.EShop.Products.Categories
public
class
Category
:
FullAuditedAggregateRoot
<
Guid
>,
IMultiTenant
{
public
virtual
Guid
?
TenantId
{
get
;
protected
set
;
}
public
virtual
Guid
?
ParentCategoryId
{
get
;
protected
set
;
}
[
NotNull
]
public
virtual
string
DisplayName
{
get
;
protected
set
;
}
[
CanBeNull
]
public
virtual
string
Description
{
get
;
protected
set
;
}
[
CanBeNull
]
public
virtual
string
MediaResources
{
get
;
protected
set
;
}
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EShopProductsDomainModule.cs
View file @
bf640e6b
using
Volo.Abp.Modularity
;
using
EasyAbp.EShop.Stores
;
using
Volo.Abp.Modularity
;
namespace
EasyAbp.EShop.Products
{
[
DependsOn
(
typeof
(
EShopProductsDomainSharedModule
)
)]
typeof
(
EShopProductsDomainSharedModule
),
typeof
(
EShopStoresDomainSharedModule
)
)]
public
class
EShopProductsDomainModule
:
AbpModule
{
...
...
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/EasyAbp.EShop.Products.Domain.csproj
View file @
bf640e6b
...
...
@@ -12,4 +12,8 @@
<ProjectReference Include="..\EasyAbp.EShop.Products.Domain.Shared\EasyAbp.EShop.Products.Domain.Shared.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\EasyAbp.EShop.Stores\src\EasyAbp.EShop.Stores.Domain.Shared\EasyAbp.EShop.Stores.Domain.Shared.csproj" />
</ItemGroup>
</Project>
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/ProductCategories/ProductCategory.cs
View file @
bf640e6b
...
...
@@ -10,5 +10,11 @@ namespace EasyAbp.EShop.Products.ProductCategories
public
virtual
Guid
?
TenantId
{
get
;
protected
set
;
}
public
virtual
Guid
?
StoreId
{
get
;
protected
set
;
}
public
virtual
Guid
CategoryId
{
get
;
protected
set
;
}
public
virtual
Guid
ProductId
{
get
;
protected
set
;
}
public
virtual
int
DisplayOrder
{
get
;
protected
set
;
}
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/ProductTypes/ProductType.cs
View file @
bf640e6b
using
System
;
using
JetBrains.Annotations
;
using
Volo.Abp.Domain.Entities.Auditing
;
using
Volo.Abp.MultiTenancy
;
namespace
EasyAbp.EShop.Products.ProductTypes
{
public
class
ProductType
:
FullAuditedAggregateRoot
<
Guid
>
{
public
virtual
string
Name
{
get
;
protected
set
;
}
[
NotNull
]
public
virtual
string
DisplayName
{
get
;
protected
set
;
}
[
CanBeNull
]
public
virtual
string
Description
{
get
;
protected
set
;
}
public
virtual
MultiTenancySides
MultiTenancySide
{
get
;
protected
set
;
}
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/Products/IProductInventoryManager.cs
0 → 100644
View file @
bf640e6b
namespace
EasyAbp.EShop.Products.Products
{
public
interface
IProductInventoryManager
{
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/Products/IProductPriceProvider.cs
0 → 100644
View file @
bf640e6b
namespace
EasyAbp.EShop.Products.Products
{
public
interface
IProductPriceProvider
{
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/Products/Product.cs
View file @
bf640e6b
using
System
;
using
EasyAbp.EShop.Stores.Stores
;
using
JetBrains.Annotations
;
using
Volo.Abp.Domain.Entities.Auditing
;
using
Volo.Abp.MultiTenancy
;
...
...
@@ -10,5 +11,17 @@ namespace EasyAbp.EShop.Products.Products
public
virtual
Guid
?
TenantId
{
get
;
protected
set
;
}
public
virtual
Guid
?
StoreId
{
get
;
protected
set
;
}
public
virtual
Guid
ProductTypeId
{
get
;
protected
set
;
}
[
NotNull
]
public
virtual
string
DisplayName
{
get
;
protected
set
;
}
public
virtual
InventoryStrategy
InventoryStrategy
{
get
;
protected
set
;
}
public
virtual
bool
IsPublished
{
get
;
protected
set
;
}
[
CanBeNull
]
public
virtual
string
MediaResources
{
get
;
protected
set
;
}
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/Products/ProductAttribute.cs
View file @
bf640e6b
using
System
;
using
JetBrains.Annotations
;
using
Volo.Abp.Domain.Entities.Auditing
;
namespace
EasyAbp.EShop.Products.Products
{
public
class
ProductAttribute
:
FullAuditedEntity
<
Guid
>
{
[
NotNull
]
public
virtual
string
DisplayName
{
get
;
protected
set
;
}
[
CanBeNull
]
public
virtual
string
Description
{
get
;
protected
set
;
}
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/Products/ProductAttributeOption.cs
View file @
bf640e6b
using
System
;
using
JetBrains.Annotations
;
using
Volo.Abp.Domain.Entities.Auditing
;
namespace
EasyAbp.EShop.Products.Products
{
public
class
ProductAttributeOption
:
FullAuditedEntity
<
Guid
>
{
[
NotNull
]
public
virtual
string
DisplayName
{
get
;
protected
set
;
}
[
CanBeNull
]
public
virtual
string
Description
{
get
;
protected
set
;
}
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/Products/ProductDetail.cs
0 → 100644
View file @
bf640e6b
using
System
;
using
JetBrains.Annotations
;
using
Volo.Abp.Domain.Entities
;
namespace
EasyAbp.EShop.Products.Products
{
public
class
ProductDetail
:
Entity
{
public
virtual
Guid
ProductId
{
get
;
protected
set
;
}
[
CanBeNull
]
public
virtual
string
Description
{
get
;
protected
set
;
}
public
override
object
[]
GetKeys
()
{
return
new
object
[]
{
ProductId
};
}
}
}
\ No newline at end of file
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Domain/Products/ProductSku.cs
0 → 100644
View file @
bf640e6b
using
System
;
using
Volo.Abp.Domain.Entities.Auditing
;
namespace
EasyAbp.EShop.Products.Products
{
public
class
ProductSku
:
FullAuditedEntity
<
Guid
>
{
public
virtual
string
SerializedAttributeOptionIds
{
get
;
protected
set
;
}
public
virtual
decimal
OriginalPrice
{
get
;
protected
set
;
}
public
virtual
decimal
Price
{
get
;
protected
set
;
}
public
virtual
int
Inventory
{
get
;
protected
set
;
}
public
virtual
int
OrderMinQuantity
{
get
;
protected
set
;
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment