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) }