|
@@ -3,32 +3,38 @@
|
|
|
|
|
|
//go:generate mockgen -destination ./stdlib_mock.go -package stdlibclient -source $GOFILE
|
|
|
|
|
|
-package git
|
|
|
-
|
|
|
-import "app.yhyue.com/moapp/jydocs/rpc/stdlib/stdlib"
|
|
|
-stdlibclient
|
|
|
+package stdlibclient
|
|
|
|
|
|
import (
|
|
|
"context"
|
|
|
|
|
|
- "app.yhyue.com/moapp/jydocs/rpc/stdlib/stdlib"
|
|
|
+ "app.yhyue.com/moapp/jy_docs/rpc/stdlib/stdlib"
|
|
|
|
|
|
"github.com/tal-tech/go-zero/zrpc"
|
|
|
)
|
|
|
|
|
|
type (
|
|
|
- DocQueryRequest = stdlib.DocQueryRequest
|
|
|
- DocQueryResponse = stdlib.DocQueryResponse
|
|
|
- Doc = stdlib.Doc
|
|
|
- DocChangeReq = stdlib.DocChangeReq
|
|
|
- DocChangeResp = stdlib.DocChangeResp
|
|
|
- DocStatisticsReq = stdlib.DocStatisticsReq
|
|
|
+ DocChangeReq = stdlib.DocChangeReq
|
|
|
+ DocStatisticsReq = stdlib.DocStatisticsReq
|
|
|
+ DocGetCheckResp = stdlib.DocGetCheckResp
|
|
|
+ DocActivity = stdlib.DocActivity
|
|
|
+ DocGetContentResp = stdlib.DocGetContentResp
|
|
|
+ DocActivityReq = stdlib.DocActivityReq
|
|
|
+ DocActivityResp = stdlib.DocActivityResp
|
|
|
+ DocQueryRequest = stdlib.DocQueryRequest
|
|
|
+ DocQueryResponse = stdlib.DocQueryResponse
|
|
|
+ Doc = stdlib.Doc
|
|
|
+ DocChangeResp = stdlib.DocChangeResp
|
|
|
+ DocGetCheckReq = stdlib.DocGetCheckReq
|
|
|
|
|
|
Stdlib interface {
|
|
|
DocQuery(ctx context.Context, in *DocQueryRequest) (*DocQueryResponse, error)
|
|
|
DocOn(ctx context.Context, in *DocChangeReq) (*DocChangeResp, error)
|
|
|
DocOff(ctx context.Context, in *DocChangeReq) (*DocChangeResp, error)
|
|
|
DocStatistics(ctx context.Context, in *DocStatisticsReq) (*DocChangeResp, error)
|
|
|
+ DocGetCheck(ctx context.Context, in *DocGetCheckReq) (*DocGetCheckResp, error)
|
|
|
+ DocGetContent(ctx context.Context, in *DocGetCheckReq) (*DocGetContentResp, error)
|
|
|
+ DocActivity(ctx context.Context, in *DocActivityReq) (*DocActivityResp, error)
|
|
|
}
|
|
|
|
|
|
defaultStdlib struct {
|
|
@@ -61,3 +67,18 @@ func (m *defaultStdlib) DocStatistics(ctx context.Context, in *DocStatisticsReq)
|
|
|
client := stdlib.NewStdlibClient(m.cli.Conn())
|
|
|
return client.DocStatistics(ctx, in)
|
|
|
}
|
|
|
+
|
|
|
+func (m *defaultStdlib) DocGetCheck(ctx context.Context, in *DocGetCheckReq) (*DocGetCheckResp, error) {
|
|
|
+ client := stdlib.NewStdlibClient(m.cli.Conn())
|
|
|
+ return client.DocGetCheck(ctx, in)
|
|
|
+}
|
|
|
+
|
|
|
+func (m *defaultStdlib) DocGetContent(ctx context.Context, in *DocGetCheckReq) (*DocGetContentResp, error) {
|
|
|
+ client := stdlib.NewStdlibClient(m.cli.Conn())
|
|
|
+ return client.DocGetContent(ctx, in)
|
|
|
+}
|
|
|
+
|
|
|
+func (m *defaultStdlib) DocActivity(ctx context.Context, in *DocActivityReq) (*DocActivityResp, error) {
|
|
|
+ client := stdlib.NewStdlibClient(m.cli.Conn())
|
|
|
+ return client.DocActivity(ctx, in)
|
|
|
+}
|