thread-master/apps/backend/internal/logic/auth/update_profile_put_logic.go

26 lines
647 B
Go

package auth
import (
"context"
"apps/backend/internal/svc"
"apps/backend/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)
type UpdateProfilePutLogic struct {
logx.Logger
ctx context.Context
svcCtx *svc.ServiceContext
}
func NewUpdateProfilePutLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateProfilePutLogic {
return &UpdateProfilePutLogic{Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx}
}
func (l *UpdateProfilePutLogic) UpdateProfilePut(req *types.AuthProfilePatchReq) (resp *types.MemberPublic, err error) {
// same as PATCH
return NewUpdateProfileLogic(l.ctx, l.svcCtx).UpdateProfile(req)
}