feat: 前后端联调代码生成接口
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Volo.Abp.Application.Services;
|
||||
using Volo.Abp.Uow;
|
||||
using Yi.Framework.CodeGun.Application.Contracts.IServices;
|
||||
@@ -79,7 +80,8 @@ namespace Yi.Framework.CodeGun.Application.Services
|
||||
/// 打开目录
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public async Task PostDir(string path)
|
||||
[HttpPost("code-gun/dir/{**path}")]
|
||||
public async Task PostDir([FromRoute]string path)
|
||||
{
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Yi.Framework.CodeGun.Application.Services
|
||||
/// 获取类型枚举
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Route("type")]
|
||||
[Route("field/type")]
|
||||
public object GetFieldTypeEnum()
|
||||
{
|
||||
return typeof(FieldTypeEnum).GetFields(BindingFlags.Static | BindingFlags.Public).Select(x => new { lable = x.Name, value = (int)Enum.Parse(typeof(FieldTypeEnum), x.Name) }).ToList();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Volo.Abp.Domain.Repositories;
|
||||
using Volo.Abp.Application.Dtos;
|
||||
using Volo.Abp.Domain.Repositories;
|
||||
using Yi.Framework.CodeGun.Application.Contracts.Dtos.Table;
|
||||
using Yi.Framework.CodeGun.Application.Contracts.IServices;
|
||||
using Yi.Framework.CodeGun.Domain.Entities;
|
||||
@@ -11,5 +12,10 @@ namespace Yi.Framework.CodeGun.Application.Services
|
||||
public TableService(IRepository<TableAggregateRoot, Guid> repository) : base(repository)
|
||||
{
|
||||
}
|
||||
|
||||
public override Task<PagedResultDto<TableDto>> GetListAsync(TableGetListInput input)
|
||||
{
|
||||
return base.GetListAsync(input);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user