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
+14 -5
View File
@@ -31,6 +31,10 @@ type (
Exchange bool `json:"exchange,optional" comment:"是否支持换料"`
Batch bool `json:"batch,optional" comment:"是否批量完成"`
}
UpdateEquipmentAvailabilityReq {
PathId
Enabled bool `json:"enabled" comment:"是否启用调度"`
}
QueryEquipmentsReply {
PageReply
Data []EquipmentReply `json:"data"`
@@ -44,6 +48,7 @@ type (
IpAddress string `json:"ipAddress" comment:"IP地址"`
Location string `json:"location" comment:"位置"`
Status string `json:"status" comment:"状态"`
Enabled bool `json:"enabled" comment:"是否启用调度"`
Remark string `json:"remark" comment:"备注"`
SlotCount int `json:"slotCount" comment:"槽位数量"`
Exchange bool `json:"exchange" comment:"是否支持换料"`
@@ -70,12 +75,12 @@ type (
}
)
@server (
jwt: Auth
group: equipment
@server(
jwt: Auth
group: equipment
prefix: /api/v1
)
service spherical-api {
service hougai-api {
@doc "查询设备分页列表"
@handler queryEquipments
get /equipments (QueryEquipmentsReq) returns (QueryEquipmentsReply)
@@ -88,7 +93,7 @@ service spherical-api {
@handler listEquipmentTypes
get /equipment-types returns ([]EquipmentTypeReply)
@doc (
@doc(
summary: "创建设备"
comment: "创建成功返回设备信息"
)
@@ -99,6 +104,10 @@ service spherical-api {
@handler updateEquipment
put /equipments/:id (UpdateEquipmentReq)
@doc "修改设备调度可用状态"
@handler updateEquipmentAvailability
put /equipments/:id/availability (UpdateEquipmentAvailabilityReq)
@doc "删除设备"
@handler deleteEquipment
delete /equipments/:id (PathId)