feat:打通simple admin
This commit is contained in:
parent
e83d9cf460
commit
f0f316227f
@ -172,6 +172,11 @@ public class AppsService : ApplicationService
|
|||||||
(await _interfaceRepository.GetListAsync(x => interfaceIds.Contains(x.Id), x => new { x.Id, x.Code }))
|
(await _interfaceRepository.GetListAsync(x => interfaceIds.Contains(x.Id), x => new { x.Id, x.Code }))
|
||||||
.ToDictionary(x => x.Id, x => x.Code);
|
.ToDictionary(x => x.Id, x => x.Code);
|
||||||
|
|
||||||
|
if (interfaceDic.Count != interfaceIds.Count)
|
||||||
|
{
|
||||||
|
throw new BusinessException(message: "有接口不存在,请检查");
|
||||||
|
}
|
||||||
|
|
||||||
using (var ts = TransacationHelper.GetReadCommitted())
|
using (var ts = TransacationHelper.GetReadCommitted())
|
||||||
{
|
{
|
||||||
var id = await _appRepository.InsertReturnIdentityAsync(entity);
|
var id = await _appRepository.InsertReturnIdentityAsync(entity);
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
/// 应用表
|
/// 应用表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_app")]
|
[SugarTable("t_app")]
|
||||||
public class AppEntity : FullAuditedAggregateRoot<int>
|
public class AppEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
/// 应用可用接口表
|
/// 应用可用接口表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_app_scope")]
|
[SugarTable("t_app_scope")]
|
||||||
public class AppScopeEntity : FullAuditedAggregateRoot<int>
|
public class AppScopeEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
/// 应用mq订阅配置表
|
/// 应用mq订阅配置表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_app_subscribe_config")]
|
[SugarTable("t_app_subscribe_config")]
|
||||||
public class AppSubscribeConfigEntity : FullAuditedAggregateRoot<int>
|
public class AppSubscribeConfigEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
/// 接口分类表
|
/// 接口分类表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_interface_category")]
|
[SugarTable("t_interface_category")]
|
||||||
public class InterfaceCategoryEntity : FullAuditedAggregateRoot<int>
|
public class InterfaceCategoryEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// 父分类id
|
/// 父分类id
|
||||||
|
|||||||
@ -6,7 +6,7 @@ namespace InterfaceForward.Repositories.Interface.Entitys;
|
|||||||
/// 接口表
|
/// 接口表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_interface")]
|
[SugarTable("t_interface")]
|
||||||
public class InterfaceEntity : FullAuditedAggregateRoot<int>
|
public class InterfaceEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
/// 接口映射明细表
|
/// 接口映射明细表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_interface_map_detail")]
|
[SugarTable("t_interface_map_detail")]
|
||||||
public class InterfaceMapDetailEntity: FullAuditedAggregateRoot<int>
|
public class InterfaceMapDetailEntity: FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// 映射明细id
|
/// 映射明细id
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
/// 接口映射表
|
/// 接口映射表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_interface_map")]
|
[SugarTable("t_interface_map")]
|
||||||
public class InterfaceMapEntity : FullAuditedAggregateRoot<int>
|
public class InterfaceMapEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
|
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|||||||
@ -6,7 +6,7 @@ namespace InterfaceForward.Repositories.Interface.Entitys;
|
|||||||
/// 接口映射明细表
|
/// 接口映射明细表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_interface_map_published")]
|
[SugarTable("t_interface_map_published")]
|
||||||
public class InterfaceMapPublishedEntity: AggregateRoot<int>, IHasCreateUserId, IHasCreateTime
|
public class InterfaceMapPublishedEntity: AggregateRoot<int>, IHasCreateUserId<int>, IHasCreateTime
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// id
|
/// id
|
||||||
@ -62,6 +62,6 @@ public class InterfaceMapPublishedEntity: AggregateRoot<int>, IHasCreateUserId,
|
|||||||
[SugarColumn(ColumnName = "Description")]
|
[SugarColumn(ColumnName = "Description")]
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
|
||||||
public Guid CreateUserId { get; }
|
public int CreateUserId { get; }
|
||||||
public DateTime CreateTime { get; }
|
public DateTime CreateTime { get; }
|
||||||
}
|
}
|
||||||
@ -6,7 +6,7 @@ namespace InterfaceForward.Repositories.Interface.Entitys;
|
|||||||
/// 接口返回配置
|
/// 接口返回配置
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_interface_return_config")]
|
[SugarTable("t_interface_return_config")]
|
||||||
public class InterfaceReturnConfigEntity : FullAuditedAggregateRoot<int>
|
public class InterfaceReturnConfigEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
/// 固定参数
|
/// 固定参数
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_parameter_fixed")]
|
[SugarTable("t_parameter_fixed")]
|
||||||
public class FixedParameterEntity : FullAuditedAggregateRoot<int>
|
public class FixedParameterEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
|
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
/// 表单参数
|
/// 表单参数
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_parameter_form")]
|
[SugarTable("t_parameter_form")]
|
||||||
public class FormParameterEntity : FullAuditedAggregateRoot<int>
|
public class FormParameterEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -6,7 +6,7 @@ namespace InterfaceForward.Repositories.Interface.Entitys
|
|||||||
/// 参数表
|
/// 参数表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_parameter")]
|
[SugarTable("t_parameter")]
|
||||||
public class ParameterEntity : FullAuditedAggregateRoot<int>
|
public class ParameterEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
|
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
/// 服务商账户表
|
/// 服务商账户表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_service_provider_account")]
|
[SugarTable("t_service_provider_account")]
|
||||||
public class ServiceProviderAccountEntity : FullAuditedAggregateRoot<int>
|
public class ServiceProviderAccountEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
/// 服务商账户字段表
|
/// 服务商账户字段表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_service_provider_account_field")]
|
[SugarTable("t_service_provider_account_field")]
|
||||||
public class ServiceProviderAccountFieldEntity : FullAuditedAggregateRoot<int>
|
public class ServiceProviderAccountFieldEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
|
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|||||||
@ -6,7 +6,7 @@ namespace InterfaceForward.Repositories.ServiceProvider.Entitys;
|
|||||||
/// 服务商授权配置表
|
/// 服务商授权配置表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_service_provider_auth_config")]
|
[SugarTable("t_service_provider_auth_config")]
|
||||||
public class ServiceProviderAuthConfigEntity: FullAuditedAggregateRoot<int>
|
public class ServiceProviderAuthConfigEntity: FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// 自增主键
|
/// 自增主键
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
/// 服务商主表
|
/// 服务商主表
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("t_service_provider")]
|
[SugarTable("t_service_provider")]
|
||||||
public class ServiceProviderEntity : FullAuditedAggregateRoot<int>
|
public class ServiceProviderEntity : FullAuditedAggregateRoot<int, int>
|
||||||
{
|
{
|
||||||
|
|
||||||
///<summary>
|
///<summary>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user