22 lines
494 B
C#
22 lines
494 B
C#
using System.Threading.Tasks;
|
|||
|
|
using CommonDomain.BaseModel;
|
||
|
|
|
||
|
|
namespace UserService.ScratchCard
|
||
|
|
{
|
||
|
|
public class ScratchCardResult
|
||
|
|
{
|
||
|
|
public int PrizeType { get; set; }
|
||
|
|
|
||
|
|
public string PrizeName { get; set; } = string.Empty;
|
||
|
|
|
||
|
|
public int Count { get; set; }
|
||
|
|
|
||
|
|
public BaseProduct? BaseProduct { get; set; }
|
||
|
|
}
|
||
|
|
|
||
|
|
public interface IScratchCardService
|
||
|
|
{
|
||
|
|
Task<(bool success, string message, ScratchCardResult? result)> Draw(string userId);
|
||
|
|
}
|
||
|
|
}
|