2025-07-28 01:46:39 +08:00
|
|
|
package commands
|
|
|
|
|
|
|
|
|
|
type ApiCallCommand struct {
|
|
|
|
|
ClientIP string `json:"-"`
|
|
|
|
|
AccessId string `json:"-"`
|
|
|
|
|
ApiName string `json:"-"`
|
|
|
|
|
Data string `json:"data" binding:"required"`
|
|
|
|
|
Options ApiCallOptions `json:"options,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ApiCallOptions struct {
|
2025-08-18 14:13:16 +08:00
|
|
|
Json bool `json:"json,omitempty"` // 是否返回JSON格式
|
|
|
|
|
IsDebug bool `json:"is_debug,omitempty"` // 是否为调试调用
|
2025-07-28 01:46:39 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// EncryptCommand 加密命令
|
|
|
|
|
type EncryptCommand struct {
|
2025-08-18 14:13:16 +08:00
|
|
|
Data map[string]interface{} `json:"data" binding:"required"`
|
|
|
|
|
SecretKey string `json:"secret_key" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DecryptCommand 解密命令
|
|
|
|
|
type DecryptCommand struct {
|
|
|
|
|
EncryptedData string `json:"encrypted_data" binding:"required"`
|
|
|
|
|
SecretKey string `json:"secret_key" binding:"required"`
|
2025-07-28 01:46:39 +08:00
|
|
|
}
|