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

Method Get

controller/service/iml.go:659–665  ·  view source on GitHub ↗
(ctx *gin.Context, id string)

Source from the content-addressed store, hash-verified

657}
658
659func (i *imlServiceController) Get(ctx *gin.Context, id string) (*service_dto.Service, error) {
660 now := time.Now()
661 defer func() {
662 log.Infof("get service %s cost %d ms", id, time.Since(now).Milliseconds())
663 }()
664 return i.module.Get(ctx, id)
665}
666
667func (i *imlServiceController) Search(ctx *gin.Context, teamIDs string, keyword string) ([]*service_dto.ServiceItem, error) {
668 return i.module.Search(ctx, teamIDs, keyword)

Callers 1

EditMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected