2026-08-09 10:43:45 +08:00
|
|
|
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
|
|
|
|
package server
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
2026-08-09 12:41:08 +08:00
|
|
|
"bsm/full/module/base/passport/internal/logic/forget"
|
|
|
|
|
pb "bsm/full/module/base/passport/pb"
|
2026-08-09 10:43:45 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type ForgetServer struct {
|
|
|
|
|
pb.UnimplementedForgetServer
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewForgetServer() *ForgetServer {
|
|
|
|
|
return &ForgetServer{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 验证手机号和验证码
|
|
|
|
|
func (s *ForgetServer) Verify(ctx context.Context, in *pb.ForgetVerifyRequest) (*pb.StatusReply, error) {
|
|
|
|
|
return forget.Verify(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 重罢密码
|
|
|
|
|
func (s *ForgetServer) Reset(ctx context.Context, in *pb.ForgetResetRequest) (*pb.StatusReply, error) {
|
|
|
|
|
return forget.Reset(ctx, in)
|
|
|
|
|
}
|