package Ġcom . aos . app . net Ċ Ċ import Ġcom . aos . app . dto . A Response Ċ import Ġcom . aos . app . ui . login . data . model . UserInfo Ċ import Ġretrofit 2 . http . Field Ċ import Ġretrofit 2 . http . Form Url Encoded Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . POST Ċ Ċ /** Ċ Ġ* ĠCreated Ġby : Ġ Ġq il iant ao Ġon Ġ 2 0 2 0 . 0 6 . 2 2 Ġ 1 2 : 2 4 Ċ Ġ* Ġemail ĠĠĠĠ Ġ: Ġ Ġq il iant ao @ mock u ai . com Ċ Ġ* ĠDescribe Ġ Ġ: Ċ Ġ*/ Ċ interface ĠApi Auth Service Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġconst Ġval ĠBASE _ URL Ġ= Ġ" https :// www . wan android . com " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Form Url Encoded ĊĠĠĠ Ġ@ POST ("/ user / login ") ĊĠĠĠ Ġsuspend Ġfun Ġlogin (@ Field (" username ") ĠuserName : ĠString , Ġ@ Field (" password ") Ġpass Word : ĠString ): ĠA Response < UserInfo ?> ĊĊĠĠĠ Ġ@ GET ("/ user / logout / json ") ĊĠĠĠ Ġsuspend Ġfun Ġlogout (): ĠA Response < Any > ĊĊĠĠĠ Ġ@ Form Url Encoded ĊĠĠĠ Ġ@ POST ("/ user / register ") ĊĠĠĠ Ġsuspend Ġfun Ġregister (@ Field (" username ") ĠuserName : ĠString , Ġ@ Field (" password ") Ġpass Word : ĠString , Ġ@ Field (" re password ") Ġre Pass Word : ĠString ): ĠA Response < UserInfo > ĊĊ Ċ }