api model use record
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
using System;
|
||||
|
||||
namespace SimApi.Communications
|
||||
namespace SimApi.Communications
|
||||
{
|
||||
/// <summary>
|
||||
/// 登录信息中间件
|
||||
/// </summary>
|
||||
public class SimApiLoginItem
|
||||
{
|
||||
//登录用户的ID
|
||||
public string Id { get; set; }
|
||||
|
||||
//登录用户来源
|
||||
public string[] Type { get; set; }
|
||||
}
|
||||
public record SimApiLoginItem(string Id, string[] Type);
|
||||
}
|
||||
Reference in New Issue
Block a user