mirror of https://github.com/EasyAbp/EShop.git
570 changed files with 516 additions and 516 deletions
@ -1,4 +1,4 @@ |
|||||
# EasyMall |
# EShopSample |
||||
|
|
||||
This is a startup project based on the ABP framework. For more information, visit <a href="https://abp.io/" target="_blank">abp.io</a> |
This is a startup project based on the ABP framework. For more information, visit <a href="https://abp.io/" target="_blank">abp.io</a> |
||||
|
|
||||
@ -1,5 +1,5 @@ |
|||||
{ |
{ |
||||
"name": "EasyMall", |
"name": "EShopSample", |
||||
"version": "0.0.0", |
"version": "0.0.0", |
||||
"scripts": { |
"scripts": { |
||||
"ng": "ng", |
"ng": "ng", |
||||
|
Before Width: | Height: | Size: 101 KiB After Width: | Height: | Size: 101 KiB |
@ -0,0 +1,22 @@ |
|||||
|
using EShopSample.Localization; |
||||
|
using Volo.Abp.Authorization.Permissions; |
||||
|
using Volo.Abp.Localization; |
||||
|
|
||||
|
namespace EShopSample.Permissions |
||||
|
{ |
||||
|
public class EShopSamplePermissionDefinitionProvider : PermissionDefinitionProvider |
||||
|
{ |
||||
|
public override void Define(IPermissionDefinitionContext context) |
||||
|
{ |
||||
|
var myGroup = context.AddGroup(EShopSamplePermissions.GroupName); |
||||
|
|
||||
|
//Define your own permissions here. Example:
|
||||
|
//myGroup.AddPermission(EShopSamplePermissions.MyPermission1, L("Permission:MyPermission1"));
|
||||
|
} |
||||
|
|
||||
|
private static LocalizableString L(string name) |
||||
|
{ |
||||
|
return LocalizableString.Create<EShopSampleResource>(name); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,10 @@ |
|||||
|
namespace EShopSample.Permissions |
||||
|
{ |
||||
|
public static class EShopSamplePermissions |
||||
|
{ |
||||
|
public const string GroupName = "EasyAbp.EShop.EShopSample"; |
||||
|
|
||||
|
//Add your own permission names. Example:
|
||||
|
//public const string MyPermission1 = GroupName + ".MyPermission1";
|
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,18 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
using EShopSample.Localization; |
||||
|
using Volo.Abp.Application.Services; |
||||
|
|
||||
|
namespace EShopSample |
||||
|
{ |
||||
|
/* Inherit your application services from this class. |
||||
|
*/ |
||||
|
public abstract class EShopSampleAppService : ApplicationService |
||||
|
{ |
||||
|
protected EShopSampleAppService() |
||||
|
{ |
||||
|
LocalizationResource = typeof(EShopSampleResource); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,10 +1,10 @@ |
|||||
using AutoMapper; |
using AutoMapper; |
||||
|
|
||||
namespace EasyMall |
namespace EShopSample |
||||
{ |
{ |
||||
public class EasyMallApplicationAutoMapperProfile : Profile |
public class EShopSampleApplicationAutoMapperProfile : Profile |
||||
{ |
{ |
||||
public EasyMallApplicationAutoMapperProfile() |
public EShopSampleApplicationAutoMapperProfile() |
||||
{ |
{ |
||||
/* You can configure your AutoMapper mapping configuration here. |
/* You can configure your AutoMapper mapping configuration here. |
||||
* Alternatively, you can split your mapping configurations |
* Alternatively, you can split your mapping configurations |
||||
@ -1,16 +1,16 @@ |
|||||
using EasyMall.EntityFrameworkCore; |
using EShopSample.EntityFrameworkCore; |
||||
using Volo.Abp.Autofac; |
using Volo.Abp.Autofac; |
||||
using Volo.Abp.BackgroundJobs; |
using Volo.Abp.BackgroundJobs; |
||||
using Volo.Abp.Modularity; |
using Volo.Abp.Modularity; |
||||
|
|
||||
namespace EasyMall.DbMigrator |
namespace EShopSample.DbMigrator |
||||
{ |
{ |
||||
[DependsOn( |
[DependsOn( |
||||
typeof(AbpAutofacModule), |
typeof(AbpAutofacModule), |
||||
typeof(EasyMallEntityFrameworkCoreDbMigrationsModule), |
typeof(EShopSampleEntityFrameworkCoreDbMigrationsModule), |
||||
typeof(EasyMallApplicationContractsModule) |
typeof(EShopSampleApplicationContractsModule) |
||||
)] |
)] |
||||
public class EasyMallDbMigratorModule : AbpModule |
public class EShopSampleDbMigratorModule : AbpModule |
||||
{ |
{ |
||||
public override void ConfigureServices(ServiceConfigurationContext context) |
public override void ConfigureServices(ServiceConfigurationContext context) |
||||
{ |
{ |
||||
@ -0,0 +1,18 @@ |
|||||
|
{ |
||||
|
"ConnectionStrings": { |
||||
|
"Default": "Server=(LocalDb)\\MSSQLLocalDB;Database=EShopSample;Trusted_Connection=True;MultipleActiveResultSets=true" |
||||
|
}, |
||||
|
"IdentityServer": { |
||||
|
"Clients": { |
||||
|
"EShopSample_Web": { |
||||
|
"ClientId": "EShopSample_Web", |
||||
|
"ClientSecret": "1q2w3e*", |
||||
|
"RootUrl": "https://localhost:44340" |
||||
|
}, |
||||
|
"EShopSample_App": { |
||||
|
"ClientId": "EShopSample_App", |
||||
|
"ClientSecret": "1q2w3e*" |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,6 +1,6 @@ |
|||||
namespace EasyMall |
namespace EShopSample |
||||
{ |
{ |
||||
public static class EasyMallDomainErrorCodes |
public static class EShopSampleDomainErrorCodes |
||||
{ |
{ |
||||
/* You can add your business exception error codes here, as constants */ |
/* You can add your business exception error codes here, as constants */ |
||||
} |
} |
||||
@ -0,0 +1,10 @@ |
|||||
|
using Volo.Abp.Localization; |
||||
|
|
||||
|
namespace EShopSample.Localization |
||||
|
{ |
||||
|
[LocalizationResourceName("EasyAbpEShopEShopSample")] |
||||
|
public class EShopSampleResource |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
@ -1,4 +1,4 @@ |
|||||
namespace EasyMall.MultiTenancy |
namespace EShopSample.MultiTenancy |
||||
{ |
{ |
||||
public static class MultiTenancyConsts |
public static class MultiTenancyConsts |
||||
{ |
{ |
||||
@ -1,8 +1,8 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
|
|
||||
namespace EasyMall.Data |
namespace EShopSample.Data |
||||
{ |
{ |
||||
public interface IEasyMallDbSchemaMigrator |
public interface IEShopSampleDbSchemaMigrator |
||||
{ |
{ |
||||
Task MigrateAsync(); |
Task MigrateAsync(); |
||||
} |
} |
||||
@ -1,12 +1,12 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
|
|
||||
namespace EasyMall.Data |
namespace EShopSample.Data |
||||
{ |
{ |
||||
/* This is used if database provider does't define |
/* This is used if database provider does't define |
||||
* IEasyMallDbSchemaMigrator implementation. |
* IEShopSampleDbSchemaMigrator implementation. |
||||
*/ |
*/ |
||||
public class NullEasyMallDbSchemaMigrator : IEasyMallDbSchemaMigrator, ITransientDependency |
public class NullEShopSampleDbSchemaMigrator : IEShopSampleDbSchemaMigrator, ITransientDependency |
||||
{ |
{ |
||||
public Task MigrateAsync() |
public Task MigrateAsync() |
||||
{ |
{ |
||||
@ -1,6 +1,6 @@ |
|||||
namespace EasyMall |
namespace EShopSample |
||||
{ |
{ |
||||
public static class EasyMallConsts |
public static class EShopSampleConsts |
||||
{ |
{ |
||||
public const string DbTablePrefix = "App"; |
public const string DbTablePrefix = "App"; |
||||
|
|
||||
@ -0,0 +1,13 @@ |
|||||
|
using Volo.Abp.Settings; |
||||
|
|
||||
|
namespace EShopSample.Settings |
||||
|
{ |
||||
|
public class EShopSampleSettingDefinitionProvider : SettingDefinitionProvider |
||||
|
{ |
||||
|
public override void Define(ISettingDefinitionContext context) |
||||
|
{ |
||||
|
//Define your own settings here. Example:
|
||||
|
//context.Add(new SettingDefinition(EShopSampleSettings.MySetting1));
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,8 +1,8 @@ |
|||||
namespace EasyMall.Settings |
namespace EShopSample.Settings |
||||
{ |
{ |
||||
public static class EasyMallSettings |
public static class EShopSampleSettings |
||||
{ |
{ |
||||
private const string Prefix = "EasyMall"; |
private const string Prefix = "EShopSample"; |
||||
|
|
||||
//Add your own setting names here. Example:
|
//Add your own setting names here. Example:
|
||||
//public const string MySetting1 = Prefix + ".MySetting1";
|
//public const string MySetting1 = Prefix + ".MySetting1";
|
||||
@ -0,0 +1,16 @@ |
|||||
|
using Microsoft.Extensions.DependencyInjection; |
||||
|
using Volo.Abp.Modularity; |
||||
|
|
||||
|
namespace EShopSample.EntityFrameworkCore |
||||
|
{ |
||||
|
[DependsOn( |
||||
|
typeof(EShopSampleEntityFrameworkCoreModule) |
||||
|
)] |
||||
|
public class EShopSampleEntityFrameworkCoreDbMigrationsModule : AbpModule |
||||
|
{ |
||||
|
public override void ConfigureServices(ServiceConfigurationContext context) |
||||
|
{ |
||||
|
context.Services.AddAbpDbContext<EShopSampleMigrationsDbContext>(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,15 +1,15 @@ |
|||||
// <auto-generated />
|
// <auto-generated />
|
||||
using System; |
using System; |
||||
using EasyMall.EntityFrameworkCore; |
using EShopSample.EntityFrameworkCore; |
||||
using Microsoft.EntityFrameworkCore; |
using Microsoft.EntityFrameworkCore; |
||||
using Microsoft.EntityFrameworkCore.Infrastructure; |
using Microsoft.EntityFrameworkCore.Infrastructure; |
||||
using Microsoft.EntityFrameworkCore.Metadata; |
using Microsoft.EntityFrameworkCore.Metadata; |
||||
using Microsoft.EntityFrameworkCore.Migrations; |
using Microsoft.EntityFrameworkCore.Migrations; |
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
||||
|
|
||||
namespace EasyMall.Migrations |
namespace EShopSample.Migrations |
||||
{ |
{ |
||||
[DbContext(typeof(EasyMallMigrationsDbContext))] |
[DbContext(typeof(EShopSampleMigrationsDbContext))] |
||||
[Migration("20200526074907_AddedCodeToProductSku")] |
[Migration("20200526074907_AddedCodeToProductSku")] |
||||
partial class AddedCodeToProductSku |
partial class AddedCodeToProductSku |
||||
{ |
{ |
||||
@ -1,7 +1,7 @@ |
|||||
using System; |
using System; |
||||
using Microsoft.EntityFrameworkCore.Migrations; |
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
namespace EasyMall.Migrations |
namespace EShopSample.Migrations |
||||
{ |
{ |
||||
public partial class AddedCodeToProductSku : Migration |
public partial class AddedCodeToProductSku : Migration |
||||
{ |
{ |
||||
@ -1,15 +1,15 @@ |
|||||
// <auto-generated />
|
// <auto-generated />
|
||||
using System; |
using System; |
||||
using EasyMall.EntityFrameworkCore; |
using EShopSample.EntityFrameworkCore; |
||||
using Microsoft.EntityFrameworkCore; |
using Microsoft.EntityFrameworkCore; |
||||
using Microsoft.EntityFrameworkCore.Infrastructure; |
using Microsoft.EntityFrameworkCore.Infrastructure; |
||||
using Microsoft.EntityFrameworkCore.Metadata; |
using Microsoft.EntityFrameworkCore.Metadata; |
||||
using Microsoft.EntityFrameworkCore.Migrations; |
using Microsoft.EntityFrameworkCore.Migrations; |
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
||||
|
|
||||
namespace EasyMall.Migrations |
namespace EShopSample.Migrations |
||||
{ |
{ |
||||
[DbContext(typeof(EasyMallMigrationsDbContext))] |
[DbContext(typeof(EShopSampleMigrationsDbContext))] |
||||
[Migration("20200527083620_ChangedToSerializedEntityData")] |
[Migration("20200527083620_ChangedToSerializedEntityData")] |
||||
partial class ChangedToSerializedEntityData |
partial class ChangedToSerializedEntityData |
||||
{ |
{ |
||||
@ -1,6 +1,6 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
namespace EasyMall.Migrations |
namespace EShopSample.Migrations |
||||
{ |
{ |
||||
public partial class ChangedToSerializedEntityData : Migration |
public partial class ChangedToSerializedEntityData : Migration |
||||
{ |
{ |
||||
@ -1,15 +1,15 @@ |
|||||
// <auto-generated />
|
// <auto-generated />
|
||||
using System; |
using System; |
||||
using EasyMall.EntityFrameworkCore; |
using EShopSample.EntityFrameworkCore; |
||||
using Microsoft.EntityFrameworkCore; |
using Microsoft.EntityFrameworkCore; |
||||
using Microsoft.EntityFrameworkCore.Infrastructure; |
using Microsoft.EntityFrameworkCore.Infrastructure; |
||||
using Microsoft.EntityFrameworkCore.Metadata; |
using Microsoft.EntityFrameworkCore.Metadata; |
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
||||
|
|
||||
namespace EasyMall.Migrations |
namespace EShopSample.Migrations |
||||
{ |
{ |
||||
[DbContext(typeof(EasyMallMigrationsDbContext))] |
[DbContext(typeof(EShopSampleMigrationsDbContext))] |
||||
partial class EasyMallMigrationsDbContextModelSnapshot : ModelSnapshot |
partial class EShopSampleMigrationsDbContextModelSnapshot : ModelSnapshot |
||||
{ |
{ |
||||
protected override void BuildModel(ModelBuilder modelBuilder) |
protected override void BuildModel(ModelBuilder modelBuilder) |
||||
{ |
{ |
||||
@ -0,0 +1,15 @@ |
|||||
|
using EShopSample.Localization; |
||||
|
using Volo.Abp.AspNetCore.Mvc; |
||||
|
|
||||
|
namespace EShopSample.Controllers |
||||
|
{ |
||||
|
/* Inherit your controllers from this class. |
||||
|
*/ |
||||
|
public abstract class EShopSampleController : AbpController |
||||
|
{ |
||||
|
protected EShopSampleController() |
||||
|
{ |
||||
|
LocalizationResource = typeof(EShopSampleResource); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -1,6 +1,6 @@ |
|||||
using System; |
using System; |
||||
|
|
||||
namespace EasyMall.Models.Test |
namespace EShopSample.Models.Test |
||||
{ |
{ |
||||
public class TestModel |
public class TestModel |
||||
{ |
{ |
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue