32 lines
723 B
Go
32 lines
723 B
Go
package auth
|
|
|
|
import (
|
|
"context"
|
|
|
|
"backend/internal/svc"
|
|
"backend/internal/types"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type RequestPasswordResetLogic struct {
|
|
logx.Logger
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
}
|
|
|
|
func NewRequestPasswordResetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RequestPasswordResetLogic {
|
|
return &RequestPasswordResetLogic{
|
|
Logger: logx.WithContext(ctx),
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
// RequestPasswordReset 請求發送密碼重設驗證碼 aka 忘記密碼
|
|
func (l *RequestPasswordResetLogic) RequestPasswordReset(req *types.RequestPasswordResetReq) (resp *types.RespOK, err error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return
|
|
}
|