MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / AiAPIUse

Struct AiAPIUse

stores/api/model.go:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103type 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
117func (a *AiAPIUse) TableName() string {
118 return "ai_api_use"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected