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

Function FromEntity

service/ai-balance/model.go:24–39  ·  view source on GitHub ↗
(e *ai.Balance)

Source from the content-addressed store, hash-verified

22}
23
24func FromEntity(e *ai.Balance) *Balance {
25 return &Balance{
26 Id: e.Uuid,
27 Priority: e.Priority,
28 Provider: e.Provider,
29 ProviderName: e.ProviderName,
30 Model: e.Model,
31 ModelName: e.ModelName,
32 Type: e.Type,
33 State: e.State,
34 Creator: e.Creator,
35 Updater: e.Updater,
36 CreateAt: e.CreateAt,
37 UpdateAt: e.UpdateAt,
38 }
39}
40
41type Create struct {
42 Id string

Callers 2

SortBeforeMethod · 0.70
SortAfterMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected