refactor: clean code

This commit is contained in:
Fu Diwei
2024-10-21 09:15:36 +08:00
parent b031f00764
commit 9c41b0e357
7 changed files with 22 additions and 26 deletions

View File

@@ -21,7 +21,7 @@ type Uploader interface {
// 表示证书上传结果的数据结构,包含上传后的证书 ID、名称和其他数据。
type UploadResult struct {
CertId string `json:"certId"`
CertName string `json:"certName"`
CertData map[string]interface{} `json:"certData,omitempty"`
CertId string `json:"certId"`
CertName string `json:"certName"`
CertData map[string]any `json:"certData,omitempty"`
}