MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / ListApis

Method ListApis

internal/service/api.go:73–80  ·  view source on GitHub ↗

ListApis 分页获取API列表

(ctx context.Context, page, pageSize int)

Source from the content-addressed store, hash-verified

71
72// ListApis 分页获取API列表
73func (a *apiService) ListApis(ctx context.Context, page, pageSize int) ([]*domain.Api, int, error) {
74 if page < 1 || pageSize < 1 {
75 a.l.Warn("分页参数无效", zap.Int("页码", page), zap.Int("每页数量", pageSize))
76 return nil, 0, errors.New("分页参数无效")
77 }
78
79 return a.repo.ListApis(ctx, page, pageSize)
80}

Callers

nothing calls this directly

Calls 1

ListApisMethod · 0.65

Tested by

no test coverage detected