refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.1
|
||||
// - protoc (unknown)
|
||||
// source: forget.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/base/passport/proto/forget.proto
|
||||
|
||||
package passport
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
@@ -30,9 +31,9 @@ const (
|
||||
// Passport通行证模块-找回密码
|
||||
type ForgetClient interface {
|
||||
// 验证手机号和验证码
|
||||
Verify(ctx context.Context, in *ForgetVerifyRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
Verify(ctx context.Context, in *ForgetVerifyRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
// 重罢密码
|
||||
Reset(ctx context.Context, in *ForgetResetRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
Reset(ctx context.Context, in *ForgetResetRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
|
||||
}
|
||||
|
||||
type forgetClient struct {
|
||||
@@ -43,9 +44,9 @@ func NewForgetClient(cc grpc.ClientConnInterface) ForgetClient {
|
||||
return &forgetClient{cc}
|
||||
}
|
||||
|
||||
func (c *forgetClient) Verify(ctx context.Context, in *ForgetVerifyRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *forgetClient) Verify(ctx context.Context, in *ForgetVerifyRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.StatusReply)
|
||||
err := c.cc.Invoke(ctx, Forget_Verify_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -53,9 +54,9 @@ func (c *forgetClient) Verify(ctx context.Context, in *ForgetVerifyRequest, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *forgetClient) Reset(ctx context.Context, in *ForgetResetRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *forgetClient) Reset(ctx context.Context, in *ForgetResetRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.StatusReply)
|
||||
err := c.cc.Invoke(ctx, Forget_Reset_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -64,33 +65,31 @@ func (c *forgetClient) Reset(ctx context.Context, in *ForgetResetRequest, opts .
|
||||
}
|
||||
|
||||
// ForgetServer is the server API for Forget service.
|
||||
// All implementations must embed UnimplementedForgetServer
|
||||
// All implementations should embed UnimplementedForgetServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// Passport通行证模块-找回密码
|
||||
type ForgetServer interface {
|
||||
// 验证手机号和验证码
|
||||
Verify(context.Context, *ForgetVerifyRequest) (*StatusReply, error)
|
||||
Verify(context.Context, *ForgetVerifyRequest) (*protobuf.StatusReply, error)
|
||||
// 重罢密码
|
||||
Reset(context.Context, *ForgetResetRequest) (*StatusReply, error)
|
||||
mustEmbedUnimplementedForgetServer()
|
||||
Reset(context.Context, *ForgetResetRequest) (*protobuf.StatusReply, error)
|
||||
}
|
||||
|
||||
// UnimplementedForgetServer must be embedded to have
|
||||
// UnimplementedForgetServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedForgetServer struct{}
|
||||
|
||||
func (UnimplementedForgetServer) Verify(context.Context, *ForgetVerifyRequest) (*StatusReply, error) {
|
||||
func (UnimplementedForgetServer) Verify(context.Context, *ForgetVerifyRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Verify not implemented")
|
||||
}
|
||||
func (UnimplementedForgetServer) Reset(context.Context, *ForgetResetRequest) (*StatusReply, error) {
|
||||
func (UnimplementedForgetServer) Reset(context.Context, *ForgetResetRequest) (*protobuf.StatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Reset not implemented")
|
||||
}
|
||||
func (UnimplementedForgetServer) mustEmbedUnimplementedForgetServer() {}
|
||||
func (UnimplementedForgetServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedForgetServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeForgetServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to ForgetServer will
|
||||
@@ -163,5 +162,5 @@ var Forget_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "forget.proto",
|
||||
Metadata: "module/base/passport/proto/forget.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user