46 lines
936 B
Go
46 lines
936 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// Source: pay.proto
|
|
|
|
package payclient
|
|
|
|
import (
|
|
"context"
|
|
|
|
"mingyang-admin-pay/rpc/types/pay"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
BaseIDResp = pay.BaseIDResp
|
|
BaseMsg = pay.BaseMsg
|
|
BaseResp = pay.BaseResp
|
|
BaseUUIDResp = pay.BaseUUIDResp
|
|
Empty = pay.Empty
|
|
IDReq = pay.IDReq
|
|
IDsReq = pay.IDsReq
|
|
PageInfoReq = pay.PageInfoReq
|
|
UUIDReq = pay.UUIDReq
|
|
UUIDsReq = pay.UUIDsReq
|
|
|
|
Pay interface {
|
|
InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error)
|
|
}
|
|
|
|
defaultPay struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewPay(cli zrpc.Client) Pay {
|
|
return &defaultPay{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
func (m *defaultPay) InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error) {
|
|
client := pay.NewPayClient(m.cli.Conn())
|
|
return client.InitDatabase(ctx, in, opts...)
|
|
}
|