fix: rebuild MES as compilable go-zero+ent backend (renamed bj_power_mes), restore 3 workstation projects from pristine original, align naming; all Go projects go build clean

This commit is contained in:
SunYF
2026-08-27 10:56:41 +08:00
parent 380715f8a9
commit 371b494c54
523 changed files with 67923 additions and 24758 deletions
+70
View File
@@ -0,0 +1,70 @@
syntax = "v1"
import (
"base.api"
)
type (
PalletReply {
Id int `json:"id"`
PalletCode string `json:"palletCode"`
WorkOrderId int `json:"workOrderId"`
DockNo int `json:"dockNo"`
Status string `json:"status"`
PassQty int `json:"passQty"`
NgQty int `json:"ngQty"`
TotalQty int `json:"totalQty"`
ArrivedAt string `json:"arrivedAt"`
CompletedAt string `json:"completedAt,omitempty"`
ReportedAt string `json:"reportedAt,omitempty"`
}
PalletJobReply {
Id int `json:"id"`
WorkpieceNo string `json:"workpieceNo"`
Status string `json:"status"`
CurrentStepId string `json:"currentStepId"`
PositionType string `json:"positionType"`
}
PalletDetailReply {
PalletReply
Jobs []PalletJobReply `json:"jobs"`
}
QueryPalletsReq {
PageReq
WorkOrderId int `form:"workOrderId,optional"`
DockNo int `form:"dockNo,optional"`
Status string `form:"status,optional"`
}
QueryPalletsReply {
PageReply
Data []PalletReply `json:"data"`
}
ReportPalletReply {
Id int `json:"id"`
Status string `json:"status"`
}
)
@server (
jwt: Auth
group: pallet
prefix: /api/v1
)
service hougai-api {
@doc "查询托盘列表"
@handler queryPallets
get /pallets (QueryPalletsReq) returns (QueryPalletsReply)
@doc "获取托盘详情"
@handler getPallet
get /pallets/:id (PathId) returns (PalletDetailReply)
@doc "托盘报工"
@handler reportPallet
post /pallets/:id/report (PathId) returns (ReportPalletReply)
}