package Ġcom . food . ordering . z inger . seller . data . ret rofit Ċ Ċ import Ġcom . food . ordering . z inger . seller . data . model .* Ċ import Ġretrofit 2 . http .* Ċ Ċ interface ĠCustom Api Ġ Ġ{ ĊĊĠĠĠ Ġ// Ġuser Ġrepository ĊĠĠĠ Ġ@ POST ("/ user / seller ") ĊĠĠĠ Ġsuspend Ġfun Ġlogin (@ Body Ġuser Model : ĠUser Model ): ĠResponse < User Shop ListModel > ĊĊĠĠĠ Ġ@ PATCH ("/ user ") ĊĠĠĠ Ġsuspend Ġfun Ġupdate Profile (@ Body Ġuser Model : ĠUser Model ): ĠResponse < String > ĊĊĠĠĠ Ġ@ PATCH ("/ user / notif ") ĊĠĠĠ Ġsuspend Ġfun Ġupdate F cm Token (@ Body Ġuser Model : ĠUser Model ): ĠResponse < String > ĊĊĠĠĠ Ġ// Ġshop Ġrepository ĊĠĠĠ Ġ@ PATCH ("/ shop / config ") ĊĠĠĠ Ġsuspend Ġfun Ġupdate Shop Configuration (@ Body Ġshop Config Request : ĠConfiguration Model ): ĠResponse < String > ĊĊĠĠĠ Ġ@ GET ("/ shop /{ shop Id }") ĊĠĠĠ Ġsuspend Ġfun Ġget Shop Details ById (@ Path (" shop Id ") Ġshop Id : ĠInt ): ĠResponse < Shop Configuration Model > ĊĊĠĠĠ Ġ// ĠItem ĠRepository ĊĠĠĠ Ġ@ GET ("/ menu / shop /{ shop Id }") ĊĠĠĠ Ġsuspend Ġfun Ġget Shop Menu (@ Path (" shop Id ") Ġshop Id : ĠInt ): ĠResponse < List < Item Model >> ĊĊĠĠĠ Ġ@ POST ("/ menu ") ĊĠĠĠ Ġsuspend Ġfun Ġadd Item (@ Body Ġitem Model List : ĠList < Item Model >): ĠResponse < String > ĊĊĠĠĠ Ġ@ PATCH ("/ menu ") ĊĠĠĠ Ġsuspend Ġfun Ġupdate Item (@ Body Ġitem : ĠList < Item Model >): ĠResponse < String > ĊĊĠĠĠ Ġ@ DELETE ("/ menu / delete /{ itemId }") ĊĠĠĠ Ġsuspend Ġfun Ġdelete Item (@ Path (" itemId ") ĠitemId : ĠInt ): ĠResponse < String > ĊĊĠĠĠ Ġ@ DELETE ("/ menu / un delete /{ itemId }") ĊĠĠĠ Ġsuspend Ġfun Ġun Delete Item (@ Path (" itemId ") ĠitemId : ĠInt ): ĠResponse < String > ĊĊĊĠĠĠ Ġ// ĠOrder ĠRepository ĊĊĠĠĠ Ġ@ GET ("/ order /{ orderId }") ĊĠĠĠ Ġsuspend Ġfun Ġget Order ById (@ Path (" orderId ") ĠorderId : ĠInt ): ĠResponse < Order ItemList Model > ĊĊĠĠĠ Ġ@ GET ("/ order / seller /{ shop Id }/{ pageNum }/{ page Cnt }") ĊĠĠĠ Ġsuspend Ġfun Ġget OrderBy Pagination (@ Path (" shop Id ") Ġshop Id : ĠInt ,@ Path (" pageNum ") Ġpage Num : ĠInt ,@ Path (" page Cnt ") Ġpage Cnt : ĠInt ): ĠResponse < List < Order ItemList Model >> ĊĊĠĠĠ Ġ@ GET ("/ order /{ shop Id }/{ search Item }/{ pageNum }/{ page Count }") ĊĠĠĠ Ġsuspend Ġfun Ġget OrderBy Search Item (@ Path (" shop Id ") Ġshop Id : ĠInt , Ġ@ Path (" search Item ") Ġsearch Item : ĠString , Ġ@ Path (" pageNum ") Ġpage Num : ĠInt , Ġ@ Path (" page Count ") Ġpage Cnt : ĠInt ): ĠResponse < List < Order ItemList Model >> ĊĊĠĠĠ Ġ@ GET ("/ order / seller /{ shop Id }") ĊĠĠĠ Ġsuspend Ġfun Ġget OrderBy Shop Id (@ Path (" shop Id ") Ġshop Id : ĠInt ): ĠResponse < List < Order ItemList Model >> ĊĊĠĠĠ Ġ@ PATCH ("/ order / status ") ĊĠĠĠ Ġsuspend Ġfun Ġupdate Order Status (@ Body Ġorder : ĠOrder Model ): Response < String > ĊĊ Ċ }