rcvr.go 452 B

12345678910111213141516171819202122
  1. // Copyright 2019 getensh.com. All rights reserved.
  2. // Use of this source code is governed by getensh.com.
  3. package impl
  4. import (
  5. "context"
  6. "gd_adm_data/apis"
  7. "gd_adm_data/impl/v1/query"
  8. "gd_adm_data/common.in/task"
  9. )
  10. // 具体实现
  11. type Rcvr struct{}
  12. func (c *Rcvr) Query(ctx context.Context, req *apis.QueryRequest, reply *apis.QueryResponse) error {
  13. t1 := func() error {
  14. return query.Query(ctx, req, reply)
  15. }
  16. return task.Do(ctx, t1)
  17. }