32 lines
811 B
Go
32 lines
811 B
Go
|
package accountlogic
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"app-cloudep-member-server/gen_result/pb/member"
|
||
|
"app-cloudep-member-server/internal/svc"
|
||
|
|
||
|
"github.com/zeromicro/go-zero/core/logx"
|
||
|
)
|
||
|
|
||
|
type GenerateRefreshCodeLogic struct {
|
||
|
ctx context.Context
|
||
|
svcCtx *svc.ServiceContext
|
||
|
logx.Logger
|
||
|
}
|
||
|
|
||
|
func NewGenerateRefreshCodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GenerateRefreshCodeLogic {
|
||
|
return &GenerateRefreshCodeLogic{
|
||
|
ctx: ctx,
|
||
|
svcCtx: svcCtx,
|
||
|
Logger: logx.WithContext(ctx),
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的
|
||
|
func (l *GenerateRefreshCodeLogic) GenerateRefreshCode(in *member.GenerateRefreshCodeReq) (*member.GenerateRefreshCodeResp, error) {
|
||
|
// todo: add your logic here and delete this line
|
||
|
|
||
|
return &member.GenerateRefreshCodeResp{}, nil
|
||
|
}
|