ecode.go 365 B

12345678910111213141516
  1. package service
  2. import (
  3. "context"
  4. "go-common/app/admin/main/apm/model/ecode"
  5. "go-common/library/log"
  6. )
  7. // GetCodes ...
  8. func (s *Service) GetCodes(c context.Context, Interval1, Interval2 string) (data []*codes.Codes, err error) {
  9. data, err = s.dao.GetCodes(c, Interval1, Interval2)
  10. if err != nil {
  11. log.Error("service GetCodes error(%v)", err)
  12. }
  13. return
  14. }