You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.3 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using Myshipping.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Myshipping.Application
{
/// <summary>
/// 状态管理
/// </summary>
internal interface IStatusSkuBaseService
{
/// <summary>
/// 保存
/// </summary>
/// <param name="info">状态详情</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> Save(StatusSkuBaseDto info);
/// <summary>
/// 保存并启用
/// </summary>
/// <param name="info">状态详情</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> SaveAndEnable(StatusSkuBaseDto info);
/// <summary>
/// 启用
/// </summary>
/// <param name="pkIds">状态主键数组</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> SetEnable(string[] pkIds);
/// <summary>
/// 取消启用
/// </summary>
/// <param name="pkIds">状态主键数组</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> SetUnEnable(string[] pkIds);
/// <summary>
/// 删除
/// </summary>
/// <param name="pkIds">状态主键数组</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> Delete(string[] pkIds);
/// <summary>
/// 获取状态详情
/// </summary>
/// <param name="pkId">状态主键</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> GetInfo(string pkId);
/// <summary>
/// 检索状态列表
/// </summary>
/// <param name="queryItem">检索值</param>
/// <param name="topNum">最大返回行数默认15</param>
/// <returns>返回回执</returns>
Task<TaskManageOrderResultDto> QueryList(string queryItem, int topNum = 15);
/// <summary>
/// 状态台账查询
/// </summary>
/// <param name="QuerySearch">状态台账查询请求</param>
/// <returns>返回结果</returns>
Task<SqlSugarPagedList<StatusSkuBasePageDto>> GetPageAsync(QueryStatusSkuBaseDto QuerySearch);
}
}