MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / convertUserExamplePb

Function convertUserExamplePb

internal/handler/userExample_logic.go:175–184  ·  view source on GitHub ↗
(record *model.UserExample)

Source from the content-addressed store, hash-verified

173}
174
175func convertUserExamplePb(record *model.UserExample) (*serverNameExampleV1.UserExample, error) {
176 value := &serverNameExampleV1.UserExample{}
177 err := copier.Copy(value, record)
178 if err != nil {
179 return nil, err
180 }
181 // Note: if copier.Copy cannot assign a value to a field, add it here
182
183 return value, nil
184}

Callers 2

GetByIDMethod · 0.85
ListMethod · 0.85

Calls 1

CopyFunction · 0.92

Tested by

no test coverage detected