28 lines
1.1 KiB
Go
28 lines
1.1 KiB
Go
package entity
|
||
|
||
import "github.com/gogf/gf/v2/os/gtime"
|
||
|
||
// Tools 工具目录
|
||
//
|
||
// 额度模型(三池):免费额度 → 会员额度 → 付费额度,依次扣减。
|
||
// - FreeQuota 非会员每周期可用次数(周期由 settings/quota_period_days 决定,默认 7 天)
|
||
// - MemberQuota 会员每周期可用次数(在免费额度用尽后启用)
|
||
// - PayCost 使用付费额度时每次消耗的次数系数(重工具可设 2、3)
|
||
type Tools struct {
|
||
Id int64 `json:"id"`
|
||
ToolKey string `json:"tool_key"`
|
||
ModuleKey string `json:"module_key"`
|
||
Name string `json:"name"`
|
||
Icon string `json:"icon"`
|
||
Description string `json:"description"`
|
||
FreeQuota int `json:"free_quota"`
|
||
MemberQuota int `json:"member_quota"`
|
||
PayCost int `json:"pay_cost"`
|
||
Sort int `json:"sort"`
|
||
IsEnabled int `json:"is_enabled"`
|
||
IsHot int `json:"is_hot"`
|
||
UsageCount int64 `json:"usage_count"`
|
||
CreatedAt *gtime.Time `json:"created_at"`
|
||
UpdatedAt *gtime.Time `json:"updated_at"`
|
||
}
|