api

package
v1.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Region https://www.volcengine.com/docs/6369/67268
	Region = "cn-beijing"

	// Algorithm https://www.volcengine.com/docs/6369/67270
	Algorithm = "HMAC-SHA256"
)

Variables

This section is empty.

Functions

func Exec

func Exec[T any](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) ListBillDetail added in v1.0.6

func (c *Client) ListBillDetail(req *ListBillDetailReq) ([]*ListBillDetailItem, error)

func (*Client) QueryBalanceAcct

func (c *Client) QueryBalanceAcct() (*QueryBalanceAcctData, error)

func (*Client) R

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

type ListBillDetailData added in v1.0.6

type ListBillDetailData struct {
	Offset int `json:"Offset"`
	Limit  int `json:"Limit"`
	Total  int `json:"Total"`

	List []*ListBillDetailItem `json:"List"`
}

type ListBillDetailItem added in v1.0.6

type ListBillDetailItem struct {
	ExpenseDate   string `json:"ExpenseDate"`
	Product       string `json:"Product"`
	ProductZh     string `json:"ProductZh"`
	PayableAmount string `json:"PayableAmount"`
}

type ListBillDetailReq added in v1.0.6

type ListBillDetailReq struct {
	Offset        int    `json:"Offset"`
	Limit         int    `json:"Limit"`
	BillPeriod    string `json:"BillPeriod"`
	ExpenseDate   string `json:"ExpenseDate"`
	GroupPeriod   int    `json:"GroupPeriod"`
	GroupTerm     int    `json:"GroupTerm"`
	IgnoreZero    int    `json:"IgnoreZero"`
	NeedRecordNum int    `json:"NeedRecordNum"`
}

type QueryBalanceAcctData

type QueryBalanceAcctData struct {
	AccountID        int    `json:"AccountID"`
	ArrearsBalance   string `json:"ArrearsBalance"`
	AvailableBalance string `json:"AvailableBalance"`
	CashBalance      string `json:"CashBalance"`
	CreditLimit      string `json:"CreditLimit"`
	FreezeAmount     string `json:"FreezeAmount"`
}

Jump to

Keyboard shortcuts

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