mirror of https://github.com/abpframework/abp.git
committed by
GitHub
30 changed files with 570 additions and 89 deletions
@ -0,0 +1,11 @@ |
|||
using System; |
|||
|
|||
namespace Volo.Docs.Admin.Documents; |
|||
|
|||
public class DocumentInfoDto |
|||
{ |
|||
public string Version { get; set; } |
|||
public string Format { get; set; } |
|||
public string LanguageCode { get; set; } |
|||
public Guid ProjectId { get; set; } |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
using System; |
|||
|
|||
namespace Volo.Docs.Admin.Projects; |
|||
|
|||
public class ProjectWithoutDetailsDto |
|||
{ |
|||
public Guid Id { get; set; } |
|||
public string Name { get; set; } |
|||
} |
|||
@ -1,14 +1,24 @@ |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Volo.Docs.Admin.Projects; |
|||
|
|||
namespace Volo.Docs.Admin.Pages.Docs.Admin.Documents; |
|||
|
|||
[Authorize(DocsAdminPermissions.Projects.Default)] |
|||
public class IndexModel : DocsAdminPageModel |
|||
{ |
|||
public virtual Task<IActionResult> OnGet() |
|||
private readonly IProjectAdminAppService _projectAdminAppService; |
|||
public List<ProjectWithoutDetailsDto> Projects { get; set; } |
|||
|
|||
public IndexModel(IProjectAdminAppService projectAdminAppService) |
|||
{ |
|||
_projectAdminAppService = projectAdminAppService; |
|||
} |
|||
public virtual async Task<IActionResult> OnGet() |
|||
{ |
|||
return Task.FromResult<IActionResult>(Page()); |
|||
Projects = await _projectAdminAppService.GetListWithoutDetailsAsync(); |
|||
return Page(); |
|||
} |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,11 @@ |
|||
using System; |
|||
|
|||
namespace Volo.Docs.Documents; |
|||
|
|||
public class DocumentInfo |
|||
{ |
|||
public string Version { get; set; } |
|||
public string Format { get; set; } |
|||
public string LanguageCode { get; set; } |
|||
public Guid ProjectId { get; set; } |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
using System; |
|||
|
|||
namespace Volo.Docs.Projects; |
|||
|
|||
public class ProjectWithoutDetails |
|||
{ |
|||
public Guid Id { get; set; } |
|||
public string Name { get; set; } |
|||
} |
|||
Loading…
Reference in new issue