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

Method DeleteApi

internal/repository/api.go:60–65  ·  view source on GitHub ↗

DeleteApi 删除API

(ctx context.Context, id int)

Source from the content-addressed store, hash-verified

58
59// DeleteApi 删除API
60func (a *apiRepository) DeleteApi(ctx context.Context, id int) error {
61 if id <= 0 {
62 return dao.ErrInvalidMenu
63 }
64 return a.dao.DeleteApi(ctx, id)
65}
66
67// ListApis 分页获取API列表
68func (a *apiRepository) ListApis(ctx context.Context, page, pageSize int) ([]*domain.Api, int, error) {

Callers

nothing calls this directly

Calls 1

DeleteApiMethod · 0.65

Tested by

no test coverage detected