change layout
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
// Code generated by goctl. DO NOT EDIT.
|
||||
// goctl 1.10.2
|
||||
// Source: lonelog.proto
|
||||
|
||||
package lonelogClient
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"lone-services/rpc/lonelog/pb"
|
||||
|
||||
"github.com/zeromicro/go-zero/zrpc"
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type (
|
||||
ActionLog = lonelog.ActionLog
|
||||
ItemsRequest = lonelog.ItemsRequest
|
||||
LoginLog = lonelog.LoginLog
|
||||
Response = lonelog.Response
|
||||
|
||||
Lonelog interface {
|
||||
Items(ctx context.Context, in *ItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
ActionAdd(ctx context.Context, in *ActionLog, opts ...grpc.CallOption) (*Response, error)
|
||||
LoginAdd(ctx context.Context, in *LoginLog, opts ...grpc.CallOption) (*Response, error)
|
||||
}
|
||||
|
||||
defaultLonelog struct {
|
||||
cli zrpc.Client
|
||||
}
|
||||
)
|
||||
|
||||
func NewLonelog(cli zrpc.Client) Lonelog {
|
||||
return &defaultLonelog{
|
||||
cli: cli,
|
||||
}
|
||||
}
|
||||
|
||||
func (m *defaultLonelog) Items(ctx context.Context, in *ItemsRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
client := lonelog.NewLonelogClient(m.cli.Conn())
|
||||
return client.Items(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultLonelog) ActionAdd(ctx context.Context, in *ActionLog, opts ...grpc.CallOption) (*Response, error) {
|
||||
client := lonelog.NewLonelogClient(m.cli.Conn())
|
||||
return client.ActionAdd(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultLonelog) LoginAdd(ctx context.Context, in *LoginLog, opts ...grpc.CallOption) (*Response, error) {
|
||||
client := lonelog.NewLonelogClient(m.cli.Conn())
|
||||
return client.LoginAdd(ctx, in, opts...)
|
||||
}
|
||||
Reference in New Issue
Block a user