123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // Code generated by goctl. DO NOT EDIT!
- // Source: stdlib.proto
- package server
- import (
- "context"
- "app.yhyue.com/moapp/jydocs/rpc/stdlib/internal/logic"
- "app.yhyue.com/moapp/jydocs/rpc/stdlib/internal/svc"
- "app.yhyue.com/moapp/jydocs/rpc/stdlib/stdlib"
- )
- type StdlibServer struct {
- svcCtx *svc.ServiceContext
- }
- func NewStdlibServer(svcCtx *svc.ServiceContext) *StdlibServer {
- return &StdlibServer{
- svcCtx: svcCtx,
- }
- }
- func (s *StdlibServer) DocQuery(ctx context.Context, in *stdlib.DocQueryRequest) (*stdlib.DocQueryResponse, error) {
- l := logic.NewDocQueryLogic(ctx, s.svcCtx)
- return l.DocQuery(in)
- }
- func (s *StdlibServer) DocOn(ctx context.Context, in *stdlib.DocChangeReq) (*stdlib.DocChangeResp, error) {
- l := logic.NewDocOnLogic(ctx, s.svcCtx)
- return l.DocOn(in)
- }
- func (s *StdlibServer) DocOff(ctx context.Context, in *stdlib.DocChangeReq) (*stdlib.DocChangeResp, error) {
- l := logic.NewDocOffLogic(ctx, s.svcCtx)
- return l.DocOff(in)
- }
- func (s *StdlibServer) DocStatistics(ctx context.Context, in *stdlib.DocStatisticsReq) (*stdlib.DocChangeResp, error) {
- l := logic.NewDocStatisticsLogic(ctx, s.svcCtx)
- return l.DocStatistics(in)
- }
- func (s *StdlibServer) DocGetCheck(ctx context.Context, in *stdlib.DocGetCheckReq) (*stdlib.DocGetCheckResp, error) {
- l := logic.NewDocGetCheckLogic(ctx, s.svcCtx)
- return l.DocGetCheck(in)
- }
- func (s *StdlibServer) DocGetContent(ctx context.Context, in *stdlib.DocGetCheckReq) (*stdlib.DocGetContentResp, error) {
- l := logic.NewDocGetContentLogic(ctx, s.svcCtx)
- return l.DocGetContent(in)
- }
- func (s *StdlibServer) DocActivity(ctx context.Context, in *stdlib.DocActivityReq) (*stdlib.DocActivityResp, error) {
- l := logic.NewDocActivityLogic(ctx, s.svcCtx)
- return l.DocActivity(in)
- }
|