Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompletionsReq ¶
type UsageRes ¶
type UsageRes struct {
UsageCount int `json:"usage_count"`
UsedTokens int `json:"used_tokens"`
TotalTokens int `json:"total_tokens"`
}
使用量接口响应参数
type User ¶
type User struct {
Id string `bson:"_id,omitempty"` // ID
UserId int `bson:"user_id,omitempty"` // 用户ID
Nickname string `bson:"nickname,omitempty"` // 昵称
Avatar string `bson:"avatar,omitempty"` // 头像
Gender int `bson:"gender,omitempty"` // 性别[0:保密;1:男;2:女]
Mobile string `bson:"mobile,omitempty"` // 手机号
Email string `bson:"email,omitempty"` // 邮箱
Birthday string `bson:"birthday,omitempty"` // 生日
Motto string `bson:"motto,omitempty"` // 座右铭
VipLevel int `bson:"vip_level,omitempty"` // 会员等级
SecretKey string `bson:"secret_key,omitempty"` // 密钥
Status int `bson:"status,omitempty"` // 状态[1:正常;2:禁用;-1:删除]
CreatedAt int64 `bson:"created_at,omitempty"` // 注册时间
UpdatedAt int64 `bson:"updated_at,omitempty"` // 更新时间
}
Click to show internal directories.
Click to hide internal directories.