MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / SaveServiceDoc

Method SaveServiceDoc

module/service/iml.go:1031–1040  ·  view source on GitHub ↗
(ctx context.Context, pid string, input *serviceDto.SaveServiceDoc)

Source from the content-addressed store, hash-verified

1029}
1030
1031func (i *imlServiceDocModule) SaveServiceDoc(ctx context.Context, pid string, input *serviceDto.SaveServiceDoc) error {
1032 _, err := i.serviceService.Check(ctx, pid, map[string]bool{"as_server": true})
1033 if err != nil {
1034 return err
1035 }
1036 return i.serviceDocService.Save(ctx, &service_doc.SaveDoc{
1037 Sid: pid,
1038 Doc: input.Doc,
1039 })
1040}
1041
1042var (
1043 _ IAppModule = &imlAppModule{}

Callers

nothing calls this directly

Calls 2

CheckMethod · 0.65
SaveMethod · 0.65

Tested by

no test coverage detected