forked from ebhomengo/niki
1
0
Fork 0
niki/vendor/github.com/kavenegar/kavenegar-go/account_Info.go

23 lines
515 B
Go
Raw Normal View History

2024-02-18 10:42:21 +00:00
package kavenegar
//AccountInfo ...
type AccountInfo struct {
Remaincredit int `json:"remaincredit"`
Expiredate int `json:"expiredate"`
Type string `json:"type"`
}
//AccountInfoResult ...
type AccountInfoResult struct {
*Return `json:"return"`
Entries AccountInfo `json:"entries"`
}
//Info ...
func (c *AccountService) Info() (AccountInfo, error) {
u := c.client.EndPoint("account", "info")
m := new(AccountInfoResult)
err := c.client.Execute(u.String(), nil, m)
return m.Entries, err
}