32 lines
583 B
Go
32 lines
583 B
Go
|
package auth
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"backend/internal/svc"
|
||
|
"backend/internal/types"
|
||
|
|
||
|
"github.com/zeromicro/go-zero/core/logx"
|
||
|
)
|
||
|
|
||
|
type RegisterLogic struct {
|
||
|
logx.Logger
|
||
|
ctx context.Context
|
||
|
svcCtx *svc.ServiceContext
|
||
|
}
|
||
|
|
||
|
// 註冊新帳號
|
||
|
func NewRegisterLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RegisterLogic {
|
||
|
return &RegisterLogic{
|
||
|
Logger: logx.WithContext(ctx),
|
||
|
ctx: ctx,
|
||
|
svcCtx: svcCtx,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (l *RegisterLogic) Register(req *types.LoginReq) (resp *types.LoginResp, err error) {
|
||
|
// todo: add your logic here and delete this line
|
||
|
|
||
|
return
|
||
|
}
|