23 lines
579 B
C#
23 lines
579 B
C#
|
using Domain;
|
|||
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|||
|
|
|||
|
namespace Application.Game.Card;
|
|||
|
|
|||
|
public class CardRequest
|
|||
|
{
|
|||
|
[ModelBinder(Name = "mac_addr")]
|
|||
|
public string Mac { get; set; } = string.Empty;
|
|||
|
|
|||
|
[ModelBinder(Name = "cmd_str")]
|
|||
|
public int CardCommandType { get; set; }
|
|||
|
|
|||
|
[ModelBinder(Name = "type")]
|
|||
|
public int CardRequestType { get; set; }
|
|||
|
|
|||
|
[ModelBinder(Name = "card_no")]
|
|||
|
public long CardId { get; set; }
|
|||
|
|
|||
|
[ModelBinder(Name = "data")]
|
|||
|
public string Data { get; set; } = string.Empty;
|
|||
|
}
|