CDN Package(CDN 资源包)
用户成功购买的 cdn 资源包全部增加到 User 表中的 cdnBalance 字段中,即放到统一的资源池中。
字段
| Name | Type | Relation With | Description |
|---|---|---|---|
| name | Text(short text) | 资源包名称 | |
| type | Enumeration | 资源包类型 | |
| total | Number(big integer) | 资源包总量(以 byte 为单位) | |
| area | Enumeration | 加速区域 | |
| effTime | Date(datetime) | 生效时间 | |
| expTime | Date(datetime) | 失效时间 | |
| remain | Number(big integer) | 剩余量(以 byte 为单位) | |
| user | Relation | User | |
| pkgStatus | Enumeration | CDN资源包状态 |
枚举值定义
type(资源包类型)
traffic: 流量包
area(加速区域)
mainland: 中国大陆overseas: 中国境外global: 全球
pkgStatus(资源包状态)
pending: 待生效active: 生效中expired: 已过期exhausted: 已耗尽canceled: 已取消