初始化 MiGu.Server 项目,包含基本的 ASP.NET Core 8 配置、JWT 鉴权、RBAC 权限管理、YARP 反向代理及相关配置文件。新增 build-and-run 脚本以简化构建与运行流程,添加 README 文档以指导用户快速上手。

This commit is contained in:
ArtoriasWu
2026-06-22 09:29:31 +08:00
parent f2ef32a22b
commit f4dec3c120
45 changed files with 0 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
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)
});
}