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:
@@ -0,0 +1,31 @@
|
||||
syntax = "v1"
|
||||
|
||||
type (
|
||||
// === 看板(对齐 frontend-api.md 7.1 节)===
|
||||
|
||||
DashboardOverviewReply {
|
||||
ActiveOrderCount int `json:"activeOrderCount"`
|
||||
ActiveJobCount int `json:"activeJobCount"`
|
||||
CompletedToday int `json:"completedToday"`
|
||||
ScrappedToday int `json:"scrappedToday"`
|
||||
StationFaultCount int `json:"stationFaultCount"`
|
||||
Buffer BufferSummary `json:"buffer"`
|
||||
}
|
||||
BufferSummary {
|
||||
Total int `json:"total"`
|
||||
Occupied int `json:"occupied"`
|
||||
Free int `json:"free"`
|
||||
NeedRefill bool `json:"needRefill"`
|
||||
}
|
||||
)
|
||||
|
||||
@server (
|
||||
jwt: Auth
|
||||
group: dashboard
|
||||
prefix: /api/v1
|
||||
)
|
||||
service hougai-api {
|
||||
@doc "生产线总览"
|
||||
@handler dashboardOverview
|
||||
get /dashboard/overview returns (DashboardOverviewReply)
|
||||
}
|
||||
Reference in New Issue
Block a user