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,70 @@
|
||||
syntax = "v1"
|
||||
|
||||
import (
|
||||
"base.api"
|
||||
)
|
||||
|
||||
type (
|
||||
QueryMeasuresReq {
|
||||
PageReq
|
||||
SortReq
|
||||
MaterialType string `form:"materialType,optional" comment:"物料类型"`
|
||||
Keyword string `form:"keyword,optional" comment:"关键词搜索"`
|
||||
}
|
||||
|
||||
CreateMeasureReq {
|
||||
MaterialType string `json:"materialType" validate:"required" comment:"物料类型"`
|
||||
MaterialName string `json:"materialName" validate:"required" comment:"物料名称"`
|
||||
Program string `json:"program" validate:"required" comment:"测量程序"`
|
||||
}
|
||||
|
||||
UpdateMeasureReq {
|
||||
PathId
|
||||
MaterialType string `json:"materialType" validate:"required" comment:"物料类型"`
|
||||
MaterialName string `json:"materialName" validate:"required" comment:"物料名称"`
|
||||
Program string `json:"program" validate:"required" comment:"测量程序"`
|
||||
}
|
||||
|
||||
QueryMeasuresReply {
|
||||
PageReply
|
||||
Data []MeasureReply `json:"data"`
|
||||
}
|
||||
|
||||
MeasureReply {
|
||||
Id int `json:"id"`
|
||||
MaterialType string `json:"materialType" comment:"物料类型"`
|
||||
MaterialName string `json:"materialName" comment:"物料名称"`
|
||||
Program string `json:"program" comment:"测量程序"`
|
||||
}
|
||||
)
|
||||
|
||||
@server (
|
||||
jwt: Auth
|
||||
group: measure
|
||||
prefix: /api/v1
|
||||
)
|
||||
service hougai-api {
|
||||
@doc "查询测量配置分页列表"
|
||||
@handler queryMeasures
|
||||
get /measures (QueryMeasuresReq) returns (QueryMeasuresReply)
|
||||
|
||||
@doc "获取测量配置列表"
|
||||
@handler listMeasures
|
||||
get /measures/list returns ([]MeasureReply)
|
||||
|
||||
@doc "获取测量配置详情"
|
||||
@handler getMeasure
|
||||
get /measures/:id (PathId) returns (MeasureReply)
|
||||
|
||||
@doc "创建测量配置"
|
||||
@handler createMeasure
|
||||
post /measures (CreateMeasureReq) returns (int)
|
||||
|
||||
@doc "编辑测量配置"
|
||||
@handler updateMeasure
|
||||
put /measures/:id (UpdateMeasureReq)
|
||||
|
||||
@doc "删除测量配置"
|
||||
@handler deleteMeasure
|
||||
delete /measures/:id (PathId)
|
||||
}
|
||||
Reference in New Issue
Block a user