Class UrlShortingAdminAppService
Implements
Inherited Members
Namespace: Volo.CmsKit.Admin.UrlShorting
Assembly: Volo.CmsKit.Pro.Admin.Application.dll
Syntax
[RequiresFeature(new string[] { "CmsKitPro.UrlShortingEnable" })]
[RequiresGlobalFeature("CmsKitPro.UrlShorting")]
[Authorize("CmsKit.UrlShorting")]
public class UrlShortingAdminAppService : CmsKitProAdminAppService, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IUrlShortingAdminAppService, ICrudAppService<ShortenedUrlDto, ShortenedUrlDto, Guid, GetShortenedUrlListInput, CreateShortenedUrlDto, UpdateShortenedUrlDto>, IReadOnlyAppService<ShortenedUrlDto, ShortenedUrlDto, Guid, GetShortenedUrlListInput>, ICreateUpdateAppService<ShortenedUrlDto, Guid, CreateShortenedUrlDto, UpdateShortenedUrlDto>, ICreateAppService<ShortenedUrlDto, CreateShortenedUrlDto>, IUpdateAppService<ShortenedUrlDto, Guid, UpdateShortenedUrlDto>, IDeleteAppService<Guid>, IApplicationService, IRemoteService
Constructors
UrlShortingAdminAppService(IShortenedUrlRepository)
Declaration
public UrlShortingAdminAppService(IShortenedUrlRepository shortenedUrlRepository)
Parameters
Type | Name | Description |
---|---|---|
IShortenedUrlRepository | shortenedUrlRepository |
Methods
CreateAsync(CreateShortenedUrlDto)
Declaration
[Authorize("CmsKit.UrlShorting.Create")]
public virtual Task<ShortenedUrlDto> CreateAsync(CreateShortenedUrlDto input)
Parameters
Type | Name | Description |
---|---|---|
CreateShortenedUrlDto | input |
Returns
Type | Description |
---|---|
Task<ShortenedUrlDto> |
DeleteAsync(Guid)
Declaration
[Authorize("CmsKit.UrlShorting.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task |
GetAsync(Guid)
Declaration
public virtual Task<ShortenedUrlDto> GetAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task<ShortenedUrlDto> |
GetListAsync(GetShortenedUrlListInput)
Declaration
public virtual Task<PagedResultDto<ShortenedUrlDto>> GetListAsync(GetShortenedUrlListInput input)
Parameters
Type | Name | Description |
---|---|---|
GetShortenedUrlListInput | input |
Returns
Type | Description |
---|---|
Task<PagedResultDto<ShortenedUrlDto>> |
UpdateAsync(Guid, UpdateShortenedUrlDto)
Declaration
[Authorize("CmsKit.UrlShorting.Update")]
public virtual Task<ShortenedUrlDto> UpdateAsync(Guid id, UpdateShortenedUrlDto input)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
UpdateShortenedUrlDto | input |
Returns
Type | Description |
---|---|
Task<ShortenedUrlDto> |