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

Function createEntityHandler

service/ai-balance/iml.go:153–166  ·  view source on GitHub ↗
(i *Create)

Source from the content-addressed store, hash-verified

151}
152
153func createEntityHandler(i *Create) *ai.Balance {
154 now := time.Now()
155 return &ai.Balance{
156 Uuid: i.Id,
157 Provider: i.Provider,
158 ProviderName: i.ProviderName,
159 Model: i.Model,
160 ModelName: i.ModelName,
161 Type: i.Type,
162 Priority: i.Priority,
163 CreateAt: now,
164 UpdateAt: now,
165 }
166}
167
168func uniquestHandler(i *Create) []map[string]interface{} {
169 return []map[string]interface{}{{"uuid": i.Id}}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected