api

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Algorithm https://cloud.tencent.com/document/api/555/30995
	Algorithm = "TC3-HMAC-SHA256"
)

Variables

This section is empty.

Functions

func Exec

func Exec[T respInt](r *resty.Request, method, addr, path, action, version, region, service string, args ...any) (t T, _ error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(account config.Account) *Client

func (*Client) DescribeAccountBalance

func (c *Client) DescribeAccountBalance() (*DescribeAccountBalanceData, error)

func (*Client) R

func (c *Client) R() *resty.Request

type DescribeAccountBalanceData

type DescribeAccountBalanceData struct {
	Uin                      int    `json:"Uin"`
	RealBalance              int    `json:"RealBalance"`
	CashAccountBalance       int    `json:"CashAccountBalance"`
	IncomeIntoAccountBalance int    `json:"IncomeIntoAccountBalance"`
	PresentAccountBalance    int    `json:"PresentAccountBalance"`
	FreezeAmount             int    `json:"FreezeAmount"`
	OweAmount                int    `json:"OweAmount"`
	IsAllowArrears           bool   `json:"IsAllowArrears"`
	IsCreditLimited          bool   `json:"IsCreditLimited"`
	Balance                  int    `json:"Balance"`
	CreditAmount             int    `json:"CreditAmount"`
	CreditBalance            int    `json:"CreditBalance"`
	RealCreditBalance        int    `json:"RealCreditBalance"`
	RequestId                string `json:"RequestId"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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