Files
KJD_WebService/Store.Contracts/User/Interfaces/IUserService.cs
T

33 lines
1.1 KiB
C#

using Store.Contracts.User.Entitys;
using Store.Contracts.User.Enums;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Store.Contracts.User.Interfaces;
public interface IUserService
{
OEMEntity GetOEMByOemId(string oemId, bool isCache = true);
OEMEntity GetOEMByUserName(string userName, bool isCache = true);
List<UserEntity> GetOEMUsers(string oemId, bool includeSu = true);
List<UserEntity> GetUserAndSubUser(string userName);
UserEntity GetUserByUserName(string userName);
bool IsOem(string userName);
OEMEntity SettleOemFlows(string userName, DbTransaction tarn = null);
long SettleUserFlows(string userName, DbTransaction tarn = null);
/// <summary>
/// 用户消费付款记录
/// </summary>
/// <param name="userName"></param>
/// <param name="orderId"></param>
/// <param name="type"></param>
/// <param name="tarn"></param>
/// <exception cref="Exception"></exception>
void UserPayment(string userName, string orderId, UserPaymentTypes type, DbTransaction tarn = null);
}