chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace 報到系統客戶端.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// API 回應基礎類別
|
||||
/// </summary>
|
||||
public class BaseResponse
|
||||
{
|
||||
[JsonProperty("Success")]
|
||||
public bool Success { get; set; }
|
||||
|
||||
[JsonProperty("Message")]
|
||||
public string Message { get; set; }
|
||||
|
||||
[JsonProperty("Data")]
|
||||
public dynamic Data { get; set; }
|
||||
|
||||
[JsonProperty("TotalCount")]
|
||||
public int TotalCount { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 登入回應資料
|
||||
/// </summary>
|
||||
public class LoginResponse
|
||||
{
|
||||
[JsonProperty("UserName")]
|
||||
public string UserName { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 檢查 Session 回應資料
|
||||
/// </summary>
|
||||
public class CheckSessionResponse
|
||||
{
|
||||
[JsonProperty("UserName")]
|
||||
public string UserName { get; set; }
|
||||
|
||||
[JsonProperty("LoginTime")]
|
||||
public DateTime LoginTime { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user