(ctx *gin.Context, id string)
| 657 | } |
| 658 | |
| 659 | func (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 | |
| 667 | func (i *imlServiceController) Search(ctx *gin.Context, teamIDs string, keyword string) ([]*service_dto.ServiceItem, error) { |
| 668 | return i.module.Search(ctx, teamIDs, keyword) |