feat: 通行和空开

This commit is contained in:
2025-10-09 14:31:59 +08:00
parent f71e58dfc1
commit efa0962f73
12 changed files with 274 additions and 12 deletions

View File

@@ -0,0 +1,21 @@
using Newtonsoft.Json;
namespace Dlhis.Dormitory.Api.Request;
public class PowerSwitchRequest
{
public PowerSwitchRequest(string roomid, int power)
{
this.RoomId = roomid;
this.Power = power;
}
[JsonProperty("roomid")]
public string RoomId { get; set; }
/// <summary>
/// 0 断电 1 上电
/// </summary>
[JsonProperty("power")]
public int Power { get; set; }
}