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

Method UpdateApi

internal/repository/api.go:52–57  ·  view source on GitHub ↗

UpdateApi 更新API信息

(ctx context.Context, api *domain.Api)

Source from the content-addressed store, hash-verified

50
51// UpdateApi 更新API信息
52func (a *apiRepository) UpdateApi(ctx context.Context, api *domain.Api) error {
53 if api == nil {
54 return dao.ErrInvalidMenu
55 }
56 return a.dao.UpdateApi(ctx, a.apiToDAO(api))
57}
58
59// DeleteApi 删除API
60func (a *apiRepository) DeleteApi(ctx context.Context, id int) error {

Callers

nothing calls this directly

Calls 2

apiToDAOMethod · 0.95
UpdateApiMethod · 0.65

Tested by

no test coverage detected