| 101 | } |
| 102 | |
| 103 | type AiAPIUse struct { |
| 104 | Id int64 `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"` |
| 105 | API string `gorm:"size:36;not null;column:api;comment:API;index:api"` |
| 106 | Service string `gorm:"size:36;not null;column:service;comment:服务;index:service"` |
| 107 | Provider string `gorm:"size:36;not null;column:provider;comment:提供者;index:provider"` |
| 108 | Model string `gorm:"size:255;not null;column:model;comment:模型"` |
| 109 | Day int64 `gorm:"type:int(11);not null;column:day;comment:当前日期"` |
| 110 | Hour int64 `gorm:"type:int(11);not null;column:hour;comment:当前小时"` |
| 111 | Minute int64 `gorm:"type:int(11);not null;column:minute;comment:当前分钟"` |
| 112 | InputToken int `gorm:"type:int(11);not null;column:input_token;comment:输入token"` |
| 113 | OutputToken int `gorm:"type:int(11);not null;column:output_token;comment:输出token"` |
| 114 | TotalToken int `gorm:"type:int(11);not null;column:total_token;comment:总token"` |
| 115 | } |
| 116 | |
| 117 | func (a *AiAPIUse) TableName() string { |
| 118 | return "ai_api_use" |
nothing calls this directly
no outgoing calls
no test coverage detected