20 lines
886 B
Go
20 lines
886 B
Go
|
|
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"` // 认证配置
|
|||
|
|
}
|