From 1631dc20426f609fd0200f43e84e5a7098e52b30 Mon Sep 17 00:00:00 2001 From: zhangwei <894646498@qq.com> Date: Tue, 30 Jan 2024 09:47:41 +0800 Subject: [PATCH] Modify the input parameter information of some interfaces, and some fields are not required. Former-commit-id: 1909b103840b716894c8749e5bcbac13d81ecd06 --- api/desc/core/pcm-core.api | 4 ++-- api/internal/types/types.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/desc/core/pcm-core.api b/api/desc/core/pcm-core.api index bd1905c9..1dd3c122 100644 --- a/api/desc/core/pcm-core.api +++ b/api/desc/core/pcm-core.api @@ -562,8 +562,8 @@ type SaveHashcatReq { CrackEstimatedTime string `json:"crackEstimatedTime"` // 预计时间 CrackProgress string `json:"crackProgress"` // 进度 CrackResult string `json:"crackResult"` // 结果 - Started string `json:"started"` // 开始时间 - Stopped string `json:"stopped"` // 结束时间 + Started string `json:"started,optional"` // 开始时间 + Stopped string `json:"stopped,optional"` // 结束时间 KernelFeature string `json:"kernelFeature"` HashMode string `json:"hashMode"` Rejected string `json:"rejected"` diff --git a/api/internal/types/types.go b/api/internal/types/types.go index 2e52c925..7ef22882 100644 --- a/api/internal/types/types.go +++ b/api/internal/types/types.go @@ -525,8 +525,8 @@ type SaveHashcatReq struct { CrackEstimatedTime string `json:"crackEstimatedTime"` // 预计时间 CrackProgress string `json:"crackProgress"` // 进度 CrackResult string `json:"crackResult"` // 结果 - Started string `json:"started"` // 开始时间 - Stopped string `json:"stopped"` // 结束时间 + Started string `json:"started,optional"` // 开始时间 + Stopped string `json:"stopped,optional"` // 结束时间 KernelFeature string `json:"kernelFeature"` HashMode string `json:"hashMode"` Rejected string `json:"rejected"`