Initial commit

This commit is contained in:
ywlmac
2026-05-13 10:30:19 +08:00
commit a2a693885b
38 changed files with 5757 additions and 0 deletions
@@ -0,0 +1,9 @@
package model
type CreateEvCertReq struct {
EvId string `json:"evId"`
}
type CreateEvCertResp struct {
Status int `json:"status"`
}
@@ -0,0 +1,15 @@
package model
type EvSaveReq struct {
PublicKey string `json:"publicKey"`
Hash string `json:"hash"`
Sign string `json:"sign"`
ExtendInfo string `json:"extendInfo"`
}
type EvSaveResp struct {
EvId string `json:"evId"`
TxId string `json:"txId"`
BlockHeight int64 `json:"blockHeight"`
TxTime string `json:"txTime"`
}
@@ -0,0 +1,9 @@
package model
type KvSaveReq struct {
PublicKey string `json:"publicKey"`
KvKey string `json:"kvKey"`
KvValue string `json:"kvValue"`
Sign string `json:"sign"`
OperateId string `json:"operateId"`
}
@@ -0,0 +1,10 @@
package model
type QueryEvCertReq struct {
EvId string `json:"evId" mapstructure:"evId"`
}
type QueryEvCertResp struct {
Status int `json:"status"`
CertUrl string `json:"certUrl"`
}
@@ -0,0 +1,15 @@
package model
type QueryEvStatusReq struct {
EvId string `json:"evId" mapstructure:"evId"`
Hash string `json:"hash" mapstructure:"hash"`
TxId string `json:"txId" mapstructure:"txId"`
}
type QueryEvStatusResp struct {
EvId string `json:"evId"`
TxId string `json:"txId"`
BlockHeight int64 `json:"blockHeight"`
TxTime string `json:"txTime"`
ExtendInfo string `json:"extendInfo"`
}
@@ -0,0 +1,15 @@
package model
type KvQueryReq struct {
KvKey string `json:"kvKey" mapstructure:"kvKey"`
IsNeedValue bool `json:"isNeedValue" mapstructure:"isNeedValue"`
}
type KvQueryResp struct {
KvStatus int `json:"kvStatus"`
KvKey string `json:"kvKey"`
KvValue string `json:"kvValue"`
TxId string `json:"txId"`
BlockHeight int64 `json:"blockHeight"`
TxTime string `json:"txTime"`
}