33 lines
954 B
C#
33 lines
954 B
C#
using Syc.Basic.Web.WMS.Entitys;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.Domain.Services;
|
|
|
|
namespace Syc.Basic.Web.WMS.IServices
|
|
{
|
|
public interface IDictionaryService: IDomainService
|
|
{
|
|
/// <summary>
|
|
/// 获取字典项
|
|
/// </summary>
|
|
/// <typeparam name="T"></typeparam>
|
|
/// <param name="dictCode"></param>
|
|
/// <param name="itemCode"></param>
|
|
/// <returns></returns>
|
|
Task<T> GetAsync<T>(string dictCode,string key);
|
|
Task<Dictionary<string,T>> GetToKVAsync<T>(string dictCode);
|
|
Task<Dictionary<string, object>> GetToKVAsync(string dictCode);
|
|
|
|
Task<IEnumerable<T>> GetAsync<T>(string dictCode);
|
|
|
|
/// <summary>
|
|
/// 获取字典
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task<DataDictionary> GetDictAsync(string dictCode);
|
|
}
|
|
}
|