从 Simple-FR 拆出 Platform.Server 并重命名为 MiGu.Server;frontends 源码与构建脚本迁入本仓库。地图监控在 projection/cars 失败或为空时回退 reflection 车辆列表;Simple 仓库已移除旧 Platform.Server。 Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
745 B
C#
22 lines
745 B
C#
namespace MiGu.Server.Configs;
|
|
|
|
public record Location(string Id, string Code, string Name, string SiteId, int Capacity, int Occupied);
|
|
public record InventoryRule(string Id, string ItemType, int MinQty, int MaxQty);
|
|
|
|
public record LocationManagement(
|
|
List<Location> Locations,
|
|
List<InventoryRule> InventoryRules)
|
|
{
|
|
public static LocationManagement Default() => new(
|
|
Locations: new List<Location>
|
|
{
|
|
new("L01", "A-01", "A 区货架 1", "S001", 20, 12),
|
|
new("L02", "A-02", "A 区货架 2", "S002", 20, 7),
|
|
new("L03", "B-01", "B 区缓存", "S003", 30, 25)
|
|
},
|
|
InventoryRules: new List<InventoryRule>
|
|
{
|
|
new("IR1", "PalletA", 5, 30)
|
|
});
|
|
}
|