style(production): 优化代码格式和字段对齐

- 统一结构体字段的缩进和对齐格式
- 移除多余空行以提高代码可读性
- 标准化字段命名的一致性
This commit is contained in:
SunYF
2026-09-20 18:26:08 +08:00
parent 8e6e8e1d20
commit eeda70fc06
2 changed files with 21 additions and 23 deletions
@@ -161,13 +161,12 @@ func ProcessStepsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
}
}
// TorqueAuditHandler POST /torque/audit 拧紧记录审核签字
func TorqueAuditHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var req struct {
RecordId int `json:"recordId"`
Remark string `json:"remark"`
Remark string `json:"remark"`
}
if err := httpx.ParseJSON(r, &req); err != nil {
httpx.BadRequest(w, "请求体解析失败")
@@ -202,4 +201,3 @@ func TorqueAuditLogHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
httpx.Ok(w, data)
}
}