model

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	AccessKey string // AccessKey 是用于访问API的认证密钥
	Nonce     int    // Nonce 是一个随机数,用于防止重放攻击
	Timestamp string // Timestamp 是请求的时间戳,通常用于防止请求过时
	Sign      string // Sign 是请求的签名,用于验证请求的完整性和来源
	Body      string // Body 是请求的正文,通常包含具体的请求数据
}

type InterfaceInfo

type InterfaceInfo struct {
	UserId         uint   `json:"user_id"`         // UserId 是使用此接口的用户ID
	Name           string `json:"name"`            // Name 是接口的名称
	Description    string `json:"description"`     // Description 是对接口功能的详细描述
	Url            string `json:"url"`             // Url 是接口的请求URL
	Method         string `json:"method"`          // Method 是请求使用的方法(如GET、POST等)
	RequestHeader  string `json:"request_header"`  // RequestHeader 是请求时使用的头部信息
	ResponseHeader string `json:"response_header"` // ResponseHeader 是响应时的头部信息
	RequestParams  string `json:"request_params"`  // RequestParams 是请求参数的详细描述
	Status         bool   `json:"status"`          // Status 表示接口的启用状态
}

type InvokeInterface

type InvokeInterface struct {
	AccessKey string `json:"access_key" binding:"required"` // AccessKey 是用于API认证的公钥,必填字段
	SecretKey string `json:"secret_key" binding:"required"` // SecretKey 是用于API认证的私钥,必填字段
	Body      string `json:"body"`                          // Body 是API请求的正文,可选字段
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL