rather than salary, it's more like a project system.
you get paid either by the publishing company buy your whole manuscript and be done with it. or you get commission contract that you'll get paid around 20-30% each time there's a reprints
careful with the commission contract system tho, publishing company lock you in a contract but never print your manuscript (not even once) is not unheard of.