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

Method fromEntity

service/ai-local/iml.go:69–80  ·  view source on GitHub ↗
(e *ai.LocalModel)

Source from the content-addressed store, hash-verified

67}
68
69func (i *imlLocalModelService) fromEntity(e *ai.LocalModel) *LocalModel {
70 return &LocalModel{
71 Id: e.Uuid,
72 Name: e.Name,
73 Provider: e.Provider,
74 State: e.State,
75 CreateAt: e.CreateAt,
76 UpdateAt: e.UpdateAt,
77 Creator: e.Creator,
78 Updater: e.Updater,
79 }
80}
81
82var (
83 _ ILocalModelPackageService = &imlLocalModelPackageService{}

Callers 1

DefaultModelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected