32 lines
667 B
Go
32 lines
667 B
Go
|
package logic
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"fusenapi/home-user-auth/internal/svc"
|
||
|
"fusenapi/home-user-auth/internal/types"
|
||
|
|
||
|
"github.com/zeromicro/go-zero/core/logx"
|
||
|
)
|
||
|
|
||
|
type UserBasicInfoLogic struct {
|
||
|
logx.Logger
|
||
|
ctx context.Context
|
||
|
svcCtx *svc.ServiceContext
|
||
|
}
|
||
|
|
||
|
func NewUserBasicInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UserBasicInfoLogic {
|
||
|
return &UserBasicInfoLogic{
|
||
|
Logger: logx.WithContext(ctx),
|
||
|
ctx: ctx,
|
||
|
svcCtx: svcCtx,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (l *UserBasicInfoLogic) UserBasicInfo(req *types.Request) (resp *types.Response, err error) {
|
||
|
// todo: add your logic here and delete this line
|
||
|
|
||
|
// l.svcCtx.FsUserModel.FindOne(l.ctx, )
|
||
|
return
|
||
|
}
|