feat: add run.ps1 script to start projects easily
add a powershell script that supports starting MES, WMS, WMSClient, Workstation and Dashboard projects with one command, includes build and run logic for backend services and npm dev for dashboard
This commit is contained in:
@@ -10,16 +10,15 @@ import (
|
||||
|
||||
// Config 全局配置
|
||||
type Config struct {
|
||||
rest.RestConf
|
||||
Host string `json:",default=0.0.0.0"`
|
||||
Port int `json:",default=8080"`
|
||||
Database db.DatabaseConf
|
||||
Redis RedisConfWrapper
|
||||
Auth AuthConf
|
||||
Internal InternalConf
|
||||
Logger logx.LogConf
|
||||
Wms WmsConf
|
||||
Plc PlcConf
|
||||
rest.RestConf // 自带 Host/Port 等
|
||||
Database db.DatabaseConf
|
||||
Redis RedisConfWrapper
|
||||
Auth AuthConf
|
||||
Internal InternalConf
|
||||
Cli CliConf
|
||||
Logger logx.LogConf
|
||||
Wms WmsConf
|
||||
Plc PlcConf
|
||||
}
|
||||
|
||||
type RedisConfWrapper struct {
|
||||
@@ -38,6 +37,11 @@ type InternalConf struct {
|
||||
Token string `json:",default=Hardman_2026"`
|
||||
}
|
||||
|
||||
// CliConf 命令行敏感操作门禁密码(与管理员账号密码保持一致,改密时自动同步)
|
||||
type CliConf struct {
|
||||
AdminPassword string `json:"AdminPassword,default=Hardman_2026"`
|
||||
}
|
||||
|
||||
// WmsConf WMS 内部服务地址
|
||||
type WmsConf struct {
|
||||
BaseURL string `json:",default="`
|
||||
@@ -46,7 +50,7 @@ type WmsConf struct {
|
||||
|
||||
// PlcConf PLC 对接配置(mock 时不用)
|
||||
type PlcConf struct {
|
||||
Enable bool `json:",default=false"`
|
||||
Host string `json:",default=127.0.0.1"`
|
||||
Port int `json:",default=102"`
|
||||
}
|
||||
Enable bool `json:",default=false"`
|
||||
Host string `json:",default=127.0.0.1"`
|
||||
Port int `json:",default=102"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user