stdlibserver.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: stdlib.proto
  3. package server
  4. import (
  5. "context"
  6. "app.yhyue.com/moapp/jydocs/rpc/stdlib/internal/logic"
  7. "app.yhyue.com/moapp/jydocs/rpc/stdlib/internal/svc"
  8. "app.yhyue.com/moapp/jydocs/rpc/stdlib/stdlib"
  9. )
  10. type StdlibServer struct {
  11. svcCtx *svc.ServiceContext
  12. }
  13. func NewStdlibServer(svcCtx *svc.ServiceContext) *StdlibServer {
  14. return &StdlibServer{
  15. svcCtx: svcCtx,
  16. }
  17. }
  18. func (s *StdlibServer) DocQuery(ctx context.Context, in *stdlib.DocQueryRequest) (*stdlib.DocQueryResponse, error) {
  19. l := logic.NewDocQueryLogic(ctx, s.svcCtx)
  20. return l.DocQuery(in)
  21. }
  22. func (s *StdlibServer) DocOn(ctx context.Context, in *stdlib.DocChangeReq) (*stdlib.DocChangeResp, error) {
  23. l := logic.NewDocOnLogic(ctx, s.svcCtx)
  24. return l.DocOn(in)
  25. }
  26. func (s *StdlibServer) DocOff(ctx context.Context, in *stdlib.DocChangeReq) (*stdlib.DocChangeResp, error) {
  27. l := logic.NewDocOffLogic(ctx, s.svcCtx)
  28. return l.DocOff(in)
  29. }
  30. func (s *StdlibServer) DocStatistics(ctx context.Context, in *stdlib.DocStatisticsReq) (*stdlib.DocChangeResp, error) {
  31. l := logic.NewDocStatisticsLogic(ctx, s.svcCtx)
  32. return l.DocStatistics(in)
  33. }
  34. func (s *StdlibServer) DocGetCheck(ctx context.Context, in *stdlib.DocGetCheckReq) (*stdlib.DocGetCheckResp, error) {
  35. l := logic.NewDocGetCheckLogic(ctx, s.svcCtx)
  36. return l.DocGetCheck(in)
  37. }
  38. func (s *StdlibServer) DocGetContent(ctx context.Context, in *stdlib.DocGetCheckReq) (*stdlib.DocGetContentResp, error) {
  39. l := logic.NewDocGetContentLogic(ctx, s.svcCtx)
  40. return l.DocGetContent(in)
  41. }
  42. func (s *StdlibServer) DocActivity(ctx context.Context, in *stdlib.DocActivityReq) (*stdlib.DocQueryResponse, error) {
  43. l := logic.NewDocActivityLogic(ctx, s.svcCtx)
  44. return l.DocActivity(in)
  45. }