package user import ( "context" "backend/internal/svc" "backend/internal/types" "github.com/zeromicro/go-zero/core/logx" ) type UpdatePasswordLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } // 修改當前登入使用者的密碼 func NewUpdatePasswordLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdatePasswordLogic { return &UpdatePasswordLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *UpdatePasswordLogic) UpdatePassword(req *types.UpdatePasswordReq) (resp *types.RespOK, err error) { // todo: add your logic here and delete this line return }