Files
assets/model/config/virtual.go
2026-03-18 10:18:03 +08:00

20 lines
886 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package config
// VirtualAssetConfig 虚拟资产配置
type VirtualAssetConfig struct {
VirtualAssetType string `json:"virtualType"`
CollectionPrice int `json:"collectionPrice"` // 合集价格(分为单位)
Currency string `json:"currency"` // 货币单位默认CNY
ApiConfig *ApiConfig `json:"apiConfig"`
}
// ApiConfig API配置虚拟资产专用
type ApiConfig struct {
Method string `json:"method"` // HTTP方法GET/POST/PUT/DELETE
RequestURL string `json:"requestURL"` // 请求地址
Headers map[string]string `json:"headers"` // 请求头配置
Params map[string]string `json:"params"` // 请求参数配置
AuthType string `json:"authType"` // 认证类型none/apikey/bearer/oauth
AuthConfig string `json:"authConfig"` // 认证配置
}