feat:打通simple admin

This commit is contained in:
xiaolipro 2025-11-07 16:36:03 +08:00
parent e83d9cf460
commit f0f316227f
17 changed files with 22 additions and 17 deletions

View File

@ -172,6 +172,11 @@ public class AppsService : ApplicationService
(await _interfaceRepository.GetListAsync(x => interfaceIds.Contains(x.Id), x => new { x.Id, x.Code }))
.ToDictionary(x => x.Id, x => x.Code);
if (interfaceDic.Count != interfaceIds.Count)
{
throw new BusinessException(message: "有接口不存在,请检查");
}
using (var ts = TransacationHelper.GetReadCommitted())
{
var id = await _appRepository.InsertReturnIdentityAsync(entity);

View File

@ -4,7 +4,7 @@
/// 应用表
///</summary>
[SugarTable("t_app")]
public class AppEntity : FullAuditedAggregateRoot<int>
public class AppEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>
/// 自增主键

View File

@ -4,7 +4,7 @@
/// 应用可用接口表
///</summary>
[SugarTable("t_app_scope")]
public class AppScopeEntity : FullAuditedAggregateRoot<int>
public class AppScopeEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>
/// 自增主键

View File

@ -4,7 +4,7 @@
/// 应用mq订阅配置表
///</summary>
[SugarTable("t_app_subscribe_config")]
public class AppSubscribeConfigEntity : FullAuditedAggregateRoot<int>
public class AppSubscribeConfigEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>
/// 自增主键

View File

@ -4,7 +4,7 @@
/// 接口分类表
///</summary>
[SugarTable("t_interface_category")]
public class InterfaceCategoryEntity : FullAuditedAggregateRoot<int>
public class InterfaceCategoryEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>
/// 父分类id

View File

@ -6,7 +6,7 @@ namespace InterfaceForward.Repositories.Interface.Entitys;
/// 接口表
///</summary>
[SugarTable("t_interface")]
public class InterfaceEntity : FullAuditedAggregateRoot<int>
public class InterfaceEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>
/// 自增主键

View File

@ -4,7 +4,7 @@
/// 接口映射明细表
///</summary>
[SugarTable("t_interface_map_detail")]
public class InterfaceMapDetailEntity: FullAuditedAggregateRoot<int>
public class InterfaceMapDetailEntity: FullAuditedAggregateRoot<int, int>
{
///<summary>
/// 映射明细id

View File

@ -4,7 +4,7 @@
/// 接口映射表
///</summary>
[SugarTable("t_interface_map")]
public class InterfaceMapEntity : FullAuditedAggregateRoot<int>
public class InterfaceMapEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>

View File

@ -6,7 +6,7 @@ namespace InterfaceForward.Repositories.Interface.Entitys;
/// 接口映射明细表
///</summary>
[SugarTable("t_interface_map_published")]
public class InterfaceMapPublishedEntity: AggregateRoot<int>, IHasCreateUserId, IHasCreateTime
public class InterfaceMapPublishedEntity: AggregateRoot<int>, IHasCreateUserId<int>, IHasCreateTime
{
///<summary>
/// id
@ -62,6 +62,6 @@ public class InterfaceMapPublishedEntity: AggregateRoot<int>, IHasCreateUserId,
[SugarColumn(ColumnName = "Description")]
public string Description { get; set; }
public Guid CreateUserId { get; }
public int CreateUserId { get; }
public DateTime CreateTime { get; }
}

View File

@ -6,7 +6,7 @@ namespace InterfaceForward.Repositories.Interface.Entitys;
/// 接口返回配置
///</summary>
[SugarTable("t_interface_return_config")]
public class InterfaceReturnConfigEntity : FullAuditedAggregateRoot<int>
public class InterfaceReturnConfigEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>
/// 自增主键

View File

@ -4,7 +4,7 @@
/// 固定参数
///</summary>
[SugarTable("t_parameter_fixed")]
public class FixedParameterEntity : FullAuditedAggregateRoot<int>
public class FixedParameterEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>

View File

@ -4,7 +4,7 @@
/// 表单参数
///</summary>
[SugarTable("t_parameter_form")]
public class FormParameterEntity : FullAuditedAggregateRoot<int>
public class FormParameterEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>
/// 自增主键

View File

@ -6,7 +6,7 @@ namespace InterfaceForward.Repositories.Interface.Entitys
/// 参数表
///</summary>
[SugarTable("t_parameter")]
public class ParameterEntity : FullAuditedAggregateRoot<int>
public class ParameterEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>

View File

@ -4,7 +4,7 @@
/// 服务商账户表
///</summary>
[SugarTable("t_service_provider_account")]
public class ServiceProviderAccountEntity : FullAuditedAggregateRoot<int>
public class ServiceProviderAccountEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>
/// 自增主键

View File

@ -2,7 +2,7 @@
/// 服务商账户字段表
///</summary>
[SugarTable("t_service_provider_account_field")]
public class ServiceProviderAccountFieldEntity : FullAuditedAggregateRoot<int>
public class ServiceProviderAccountFieldEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>

View File

@ -6,7 +6,7 @@ namespace InterfaceForward.Repositories.ServiceProvider.Entitys;
/// 服务商授权配置表
///</summary>
[SugarTable("t_service_provider_auth_config")]
public class ServiceProviderAuthConfigEntity: FullAuditedAggregateRoot<int>
public class ServiceProviderAuthConfigEntity: FullAuditedAggregateRoot<int, int>
{
///<summary>
/// 自增主键

View File

@ -4,7 +4,7 @@
/// 服务商主表
///</summary>
[SugarTable("t_service_provider")]
public class ServiceProviderEntity : FullAuditedAggregateRoot<int>
public class ServiceProviderEntity : FullAuditedAggregateRoot<int, int>
{
///<summary>