2026-05-29 18:16:34 +08:00
|
|
|
namespace MiGu.Server.Configs;
|
|
|
|
|
|
|
|
|
|
public record EndpointDescriptor(string Id, string Name, string Url, bool Enabled);
|
|
|
|
|
|
|
|
|
|
public record ExternalIntegrations(
|
|
|
|
|
List<EndpointDescriptor> Mes,
|
|
|
|
|
List<EndpointDescriptor> Wms,
|
2026-06-03 09:37:07 +08:00
|
|
|
List<EndpointDescriptor> Rcs,
|
|
|
|
|
List<EndpointDescriptor> Ptl)
|
2026-05-29 18:16:34 +08:00
|
|
|
{
|
|
|
|
|
public static ExternalIntegrations Default() => new(
|
|
|
|
|
Mes: new List<EndpointDescriptor> { new("mes-1", "MES 主线", "http://mes.lan/api", true) },
|
|
|
|
|
Wms: new List<EndpointDescriptor> { new("wms-1", "WMS 仓储", "http://wms.lan/api", true) },
|
2026-06-03 09:37:07 +08:00
|
|
|
Rcs: new List<EndpointDescriptor>(),
|
|
|
|
|
Ptl: new List<EndpointDescriptor> { new("ptl-1", "PTL 拣选", "http://ptl.lan/api", true) });
|
2026-05-29 18:16:34 +08:00
|
|
|
}
|