The first is correct but it isn't something you would normally say. If someone is treating you to lunch you would express gratitude. Another possibility would be to say "you really don't need to do this." But "do you mind treating me" sounds a little bit like "I hope you aren't upset about treating me". It's an odd thing to say, though there might be some circumstances in which it would be appropriate.