这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
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.
 
 
 
 
 
 

2.5 KiB

LINGYUN.Abp.TextTemplating.Application.Contracts

Module Description

Text templating application service contracts module, providing interface definitions and DTOs for text template management.

Base Modules

  • Volo.Abp.TextTemplating
  • Volo.Abp.Ddd.Application.Contracts

Features

  • Provides application service interfaces for text template management
    • ITextTemplateDefinitionAppService - Template definition management service interface
    • ITextTemplateContentAppService - Template content management service interface
  • Provides DTO definitions for text templates
    • TextTemplateDefinitionDto - Template definition DTO
    • TextTemplateContentDto - Template content DTO
    • TextTemplateDefinitionCreateDto - Create template definition DTO
    • TextTemplateDefinitionUpdateDto - Update template definition DTO
    • TextTemplateContentUpdateDto - Update template content DTO
  • Provides permission definitions for text template management

Permission Definitions

  • AbpTextTemplating.TextTemplateDefinitions
    • Create - Create template definition
    • Update - Update template definition
    • Delete - Delete template definition
  • AbpTextTemplating.TextTemplateContents
    • Update - Update template content
    • Delete - Delete template content

Application Service Interfaces

  • ITextTemplateDefinitionAppService
    • GetAsync - Get template definition
    • GetListAsync - Get template definition list
    • CreateAsync - Create template definition
    • UpdateAsync - Update template definition
    • DeleteAsync - Delete template definition
  • ITextTemplateContentAppService
    • GetAsync - Get template content
    • UpdateAsync - Update template content
    • DeleteAsync - Delete template content
    • RestoreAsync - Restore template content

How to Use

  1. Add AbpTextTemplatingApplicationContractsModule dependency
[DependsOn(typeof(AbpTextTemplatingApplicationContractsModule))]
public class YouProjectModule : AbpModule
{
}
  1. Inject and use template service interfaces
public class YourService
{
    private readonly ITextTemplateDefinitionAppService _templateDefinitionAppService;

    public YourService(ITextTemplateDefinitionAppService templateDefinitionAppService)
    {
        _templateDefinitionAppService = templateDefinitionAppService;
    }

    public async Task ManageTemplateAsync()
    {
        // Get template definition list
        var templates = await _templateDefinitionAppService.GetListAsync(
            new TextTemplateDefinitionGetListInput());
    }
}

查看中文