You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
869 B
32 lines
869 B
package external |
|
|
|
import ( |
|
"context" |
|
"encoding/json" |
|
|
|
"go-common/library/log" |
|
) |
|
|
|
// DynamicNew . |
|
func (s *Service) DynamicNew(c context.Context, params string) (res json.RawMessage, err error) { |
|
if res, err = s.dynamic.DynamicNew(c, params); err != nil { |
|
log.Error("dynamic.service.DynamicNew.error(%v)", err.Error()) |
|
} |
|
return |
|
} |
|
|
|
// DynamicCount . |
|
func (s *Service) DynamicCount(c context.Context, params string) (res json.RawMessage, err error) { |
|
if res, err = s.dynamic.DynamicCount(c, params); err != nil { |
|
log.Error("dynamic.service.DynamicCount.error(%v)", err.Error()) |
|
} |
|
return |
|
} |
|
|
|
// DynamicHistory . |
|
func (s *Service) DynamicHistory(c context.Context, params string) (res json.RawMessage, err error) { |
|
if res, err = s.dynamic.DynamicHistory(c, params); err != nil { |
|
log.Error("dynamic.service.DynamicHistory.error(%v)", err.Error()) |
|
} |
|
return |
|
}
|
|
|