go-common/app/interface/main/report-click/service/err_report.go
2019-04-22 18:49:16 +08:00

18 lines
450 B
Go

package service
import (
"context"
"go-common/app/interface/main/report-click/model"
)
// ErrReport reports the failures of calling the api "heartbeat/mobile"
func (s *Service) ErrReport(ctx context.Context, req *model.ErrReport) {
s.promErr.Incr(req.ToProm())
}
// SuccReport reports the success of calling the api "heartbeat/mobile"
func (s *Service) SuccReport(ctx context.Context, req *model.SuccReport) {
s.promInfo.Incr(req.ToProm())
}