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 { bool CanAfford(string userName, UserPaymentTypes type, decimal consumeAmount); OEMEntity GetOEMByOemId(string oemId, bool isCache = true); OEMEntity GetOEMByUserName(string userName, bool isCache = true); List GetOEMUsers(string oemId, bool includeSu = true); List 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); /// /// 用户消费付款记录 /// /// /// /// /// /// void UserPayment(string userName, string orderId, UserPaymentTypes type, DbTransaction tarn = null); }