You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
929 B
25 lines
929 B
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Volo.Abp.Caching;
|
|
using Win_in.Sfs.Basedata.Application.Contracts;
|
|
using Win_in.Sfs.Basedata.Domain;
|
|
using Win_in.Sfs.Basedata.Domain.Shared;
|
|
|
|
namespace Win_in.Sfs.Basedata.Application;
|
|
|
|
[Authorize]
|
|
[Route($"{BasedataConsts.RootPath}project")]
|
|
|
|
public class ProjectAppService
|
|
: SfsBaseDataWithCodeAppServiceBase<Project, ProjectDTO, SfsBaseDataRequestInputBase, ProjectEditInput, ProjectImportInput>
|
|
, IProjectAppService
|
|
{
|
|
private readonly IProjectManager _manager;
|
|
public ProjectAppService(IProjectRepository repository, IDistributedCache<ProjectDTO> cache, IProjectManager manager) : base(repository, cache)
|
|
{
|
|
_manager = manager;
|
|
base.CreatePolicyName = ProjectPermissions.Create;
|
|
base.UpdatePolicyName = ProjectPermissions.Update;
|
|
base.DeletePolicyName = ProjectPermissions.Delete;
|
|
}
|
|
}
|
|
|