Skip to content

Commit

Permalink
Merge pull request #62 from AlphaYu/dev
Browse files Browse the repository at this point in the history
v0.9.3.0
  • Loading branch information
AlphaYu authored Aug 24, 2022
2 parents e9fd4b4 + c63258d commit 5a77c92
Show file tree
Hide file tree
Showing 92 changed files with 530 additions and 638 deletions.
1 change: 1 addition & 0 deletions doc/adnc_cus_dev.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ CREATE TABLE `customer` (
`modifyby` bigint(20) NULL DEFAULT NULL,
`modifytime` datetime(6) NULL DEFAULT NULL,
`account` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`password` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`nickname` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`realname` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`) USING BTREE
Expand Down
110 changes: 59 additions & 51 deletions doc/adnc_usr_dev.sql

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.6" />
<Compile Remove="Entities\EfEnities\Extensions\**" />
<EmbeddedResource Remove="Entities\EfEnities\Extensions\**" />
<None Remove="Entities\EfEnities\Extensions\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MongoDB.Bson" Version="2.16.1" />
<PackageReference Include="MongoDB.Driver" Version="2.16.1" />
</ItemGroup>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
global using Adnc.Infra.Entities;
global using Microsoft.EntityFrameworkCore;
global using Microsoft.EntityFrameworkCore.Metadata.Builders;
global using System.Data;
global using System.Data;
global using System.Linq.Expressions;
global using System.Reflection;
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Adnc.Infra.IRepositories;
using Adnc.Infra.Entities;

namespace Adnc.Infra.IRepositories;

/// <summary>
/// Ef仓储的基类接口
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Adnc.Infra.IRepositories;
using Adnc.Infra.Entities;

namespace Adnc.Infra.IRepositories;

/// <summary>
/// Ef简单的、基础的,初级的仓储接口
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace Adnc.Infra.IRepositories;
using Adnc.Infra.Entities;

namespace Adnc.Infra.IRepositories;

/// <summary>
/// Ef默认的、全功能的仓储接口
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using MongoDB.Driver;
using Adnc.Infra.Entities;
using MongoDB.Driver;

namespace Adnc.Infra.IRepositories;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ public class CustomerRegisterDto : IInputDto
{
public string Account { get; set; }

public string Password { get; set; }

public string Nickname { get; set; }

public string Realname { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,49 @@

public interface ICustomerAppService : IAppService
{
/// <summary>
/// 注册
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[OperateLog(LogName = "注册")]
Task<AppSrvResult<CustomerDto>> RegisterAsync(CustomerRegisterDto input);

/// <summary>
/// 充值
/// </summary>
/// <param name="id"></param>
/// <param name="input"></param>
/// <returns></returns>
[OperateLog(LogName = "充值")]
[UnitOfWork(SharedToCap = true)]
Task<AppSrvResult<SimpleDto<string>>> RechargeAsync(long id, CustomerRechargeDto input);

/// <summary>
/// 处理充值
/// </summary>
/// <param name="eventDto"></param>
/// <param name="tracker"></param>
/// <returns></returns>
[OperateLog(LogName = "处理充值")]
[UnitOfWork]
Task<AppSrvResult> ProcessRechargingAsync(CustomerRechargedEvent eventDto, IMessageTracker tracker);

/// <summary>
/// 处理付款
/// </summary>
/// <param name="transactionLogId"></param>
/// <param name="customerId"></param>
/// <param name="amount"></param>
/// <returns></returns>
[OperateLog(LogName = "处理付款")]
[UnitOfWork(SharedToCap = true)]
Task<AppSrvResult> ProcessPayingAsync(long transactionLogId, long customerId, decimal amount);

/// <summary>
/// 分页列表
/// </summary>
/// <param name="search"></param>
/// <returns></returns>
Task<AppSrvResult<PageModelDto<CustomerDto>>> GetPagedAsync(CustomerSearchPagedDto search);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

public sealed class CacheService : AbstractCacheService, ICachePreheatable
{
public CacheService(Lazy<ICacheProvider> cacheProvider, Lazy<IServiceProvider> serviceProvider)
public CacheService(
Lazy<ICacheProvider> cacheProvider,
Lazy<IServiceProvider> serviceProvider)
: base(cacheProvider, serviceProvider)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
global using Adnc.Infra.Caching;
global using Adnc.Infra.Caching.Configurations;
global using Adnc.Infra.EventBus;
global using Adnc.Infra.Helper;
global using Adnc.Infra.IdGenerater.Yitter;
global using Adnc.Infra.IRepositories;
global using Adnc.Infra.Mapper;
global using Adnc.Shared.Application.BloomFilter;
global using Adnc.Shared.Application.Caching;
global using Adnc.Shared.Application.Contracts.Dtos;
Expand All @@ -27,4 +29,4 @@
global using MongoDB.Driver;
global using System.Linq.Expressions;
global using System.Net;
global using System.Reflection;
global using System.Reflection;
Loading

0 comments on commit 5a77c92

Please sign in to comment.