Documentation ¶
Index ¶
- Variables
- func FirstCheck(userid string) bool
- func GetBalance() (string, error)
- func GetReadTime(t time.Time) string
- func InitAiCli() *resty.Client
- func InitSvc()
- func JudgeAdminUsers(s string) bool
- func JudgeSensitiveWord(s string) bool
- func JudgeUsers(s string) bool
- func JudgeVipUsers(s string) bool
- func SolveSensitiveWord(s string) string
- func WriteToFile(path string, data []byte) error
- type Bill
- type DailyCost
- type LineItem
- type Plan
- type Subscription
Constants ¶
This section is empty.
Variables ¶
View Source
var Config *config.Configuration
View Source
var Prompt *[]config.Prompt
View Source
var UserService cache.UserServiceInterface
Functions ¶
func FirstCheck ¶
func GetReadTime ¶
func WriteToFile ¶
将内容写入到文件,如果文件名带路径,则会判断路径是否存在,不存在则创建
Types ¶
type Subscription ¶
type Subscription struct { Object string `json:"object"` HasPaymentMethod bool `json:"has_payment_method"` Canceled bool `json:"canceled"` CanceledAt interface{} `json:"canceled_at"` Delinquent interface{} `json:"delinquent"` AccessUntil int64 `json:"access_until"` SoftLimit int64 `json:"soft_limit"` HardLimit int64 `json:"hard_limit"` SystemHardLimit int64 `json:"system_hard_limit"` SoftLimitUsd float64 `json:"soft_limit_usd"` HardLimitUsd float64 `json:"hard_limit_usd"` SystemHardLimitUsd float64 `json:"system_hard_limit_usd"` Plan Plan `json:"plan"` AccountName string `json:"account_name"` PoNumber interface{} `json:"po_number"` BillingEmail interface{} `json:"billing_email"` TaxIDS interface{} `json:"tax_ids"` BillingAddress interface{} `json:"billing_address"` BusinessAddress interface{} `json:"business_address"` }
func GetSub ¶
func GetSub() (Subscription, error)
Click to show internal directories.
Click to hide internal directories.