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

Method List

module/publish/iml.go:640–653  ·  view source on GitHub ↗
(ctx context.Context, serviceId string, page, pageSize int)

Source from the content-addressed store, hash-verified

638}
639
640func (i *imlPublishModule) List(ctx context.Context, serviceId string, page, pageSize int) ([]*dto.Publish, int64, error) {
641 _, err := i.serviceService.Check(ctx, serviceId, asServer)
642 if err != nil {
643 return nil, 0, err
644 }
645 list, total, err := i.publishService.ListProjectPage(ctx, serviceId, page, pageSize)
646 if err != nil {
647 return nil, 0, err
648 }
649
650 return utils.SliceToSlice(list, func(s *publish.Publish) *dto.Publish {
651 return dto.FromModel(s, "")
652 }), total, nil
653}
654
655func (i *imlPublishModule) updateMCPServer(ctx context.Context, sid string, name string, version string) error {
656 r, err := i.releaseService.GetRunning(ctx, sid)

Callers

nothing calls this directly

Calls 3

FromModelFunction · 0.92
CheckMethod · 0.65
ListProjectPageMethod · 0.65

Tested by

no test coverage detected