package Ġnetwork Ċ Ċ import ĠCategory . data . Category Data Ċ import ĠCategory . data . Category Response Ċ import ĠCategory . data . Save Category Data Ċ import ĠCategory . data . Save Category Response Ċ import ĠClo set . data .* Ċ import ĠColor . data . Color Data Ċ import ĠColor . data . Color Response Ċ import ĠColor . data . Tone Data Ċ import ĠColor . data . Tone Response Ċ import ĠCut out . data . Info Data Ċ import ĠCut out . data . Info Response Ċ import ĠImage Select . Post Item Data Ċ import ĠImage Select . Post Item Data Response Ċ import ĠLogin _ Main . data .* Ċ import ĠLook Book . Look Book Data . Look Book Data Ċ import ĠLook Book . Look Book Data . Look Book Response Ċ import ĠLook Book . Look Book Result Data . Look Book Result Data Ċ import ĠLook Book . Look Book Result Data . Look Book Result Response Ċ import Ġokhttp 3 . Multipart Body Ċ import Ġokhttp 3 . RequestBody Ċ import Ġokhttp 3 . ResponseBody Ċ import Ġretrofit 2 . Call Ċ import Ġretrofit 2 . Response Ċ import Ġretrofit 2 . http .* Ċ import Ġstyle List . data . Rating Data Ċ import Ġstyle List . data . Rating Response Ċ import Ġstyle List . data . Style list Ċ Ċ // ë¡ľ ê·¸ ìĿ¸ , Ġí ļĮ ìĽĲ ê°Ģ ìŀħ Ġê´Ģ ëł¨ Ċ interface ĠService Api Ġ{ ĊĠĠĠ Ġ// ë¡ľ ê·¸ ìĿ¸ Ġroutes -> login . js ĊĠĠĠ Ġ@ POST ("/ user / login ") ĊĠĠĠ Ġfun Ġuser Login (@ Body Ġdata : ĠLogin Data ?): ĠCall < Login Response ?> ? ĊĊĠĠĠ Ġ// íļĮ ìĽĲ ê°Ģ ìŀħ Ġroutes -> login . js ĊĠĠĠ Ġ@ POST ("/ user / join ") ĊĠĠĠ Ġfun Ġuser Join (@ Body Ġdata : ĠJoin Data ?): ĠCall < Join Response ?> ? ĊĊĠĠĠ Ġ// íļĮ ìĽĲ ê°Ģ ìŀħ ĠëķĮ ĠID ì¤ĳ ë³µ ì²´ íģ¬ Ġroutes -> login . js ĊĠĠĠ Ġ@ POST ("/ user / dup ") ĊĠĠĠ Ġfun Ġuser Check Dup (@ Body Ġdata : ĠD up Check Data ?): ĠCall < Dup Check Response ?> ? ĊĊĠĠĠ Ġ// ìĿ´ ê±° ĠìĤ¬ìļ© ĠìķĪ íķ¨ !!!! ! - ìĤ¬ ì§Ħ ĠìĹħ ë¡ľ ëĵľ Ġíķĺ ê¸° ĠìľĦ íķľ Ġìłķë³´ ( ID , ĠíĮĮìĿ¼ ĠìĿ´ë¦Ħ ) ĠìĹħ ë¡ľ ëĵľ Ġroutes -> upload . js ĊĠĠĠ Ġ@ POST ("/ upload / info ") ĊĠĠĠ Ġfun Ġpost Image Info (@ Body Ġdata : ĠInfo Data ?): ĠCall < Info Response ?> ? ĊĊĠĠĠ Ġ// ìĤ¬ ì§Ħ ĠìĹħ ë¡ľ ëĵľ ( ìĸ´ë ĸ ¤ Ġìĺ · ìĿ¸ ì§Ģ ĠíĮĮ ìķ ħ íķĺìĹ¬ Ġìĺ · ìŀ¥ ìĹĲ ĠìłĢìŀ¥ ) Ġroutes -> upload . js ĊĠĠĠ Ġ@ Multipart ĊĠĠĠ Ġ@ POST ("/ upload / pic ") ĊĠĠĠ Ġfun Ġpost Image (@ Part Ġimage : ĠMultip art Body . Part ?, Ġ@ Part (" upload ") Ġname : ĠRequest Body ?): ĠCall < ResponseBody ?> ? ĊĊĠĠĠ Ġ// open CV Ġë°° ê²½ ìłľ ê±° ĠìľĦíķ´ ĠìĤ¬ ì§Ħ ĠìĹħ ë¡ľ ëĵľ ( ìĸ´ë ĸ ¤ Ġìĺ · ìĿ¸ ì§Ģ ĠíĮĮ ìķ ħ íķĺìĹ¬ Ġìĺ · ìŀ¥ ìĹĲ ĠìłĢìŀ¥ ) Ġroutes -> upload 2 bg . js ĊĠĠĠ Ġ@ Multipart ĊĠĠĠ Ġ@ POST ("/ upload 2 bg / pic 2 ") ĊĠĠĠ Ġfun Ġpost Image 2 bg (@ Part Ġimage : ĠMultip art Body . Part ?, Ġ@ Part (" upload 2 bg ") Ġname : ĠRequest Body ?): ĠCall < ResponseBody ?> ? ĊĊĊĠĠĠ Ġ// ì¹´ íħ Į ê³ł ë¦¬ Ġì¢ ħ ë¥ĺ Ġê° ĸ ê³ł ìĺ¤ ê¸° Ġroutes -> category . js ĊĠĠĠ Ġ@ POST ("/ category / model ") ĊĠĠĠ Ġfun Ġfind Category (@ Body Ġdata : ĠCategory Data ?): ĠCall < Category Response ?> ? ĊĊĠĠĠ Ġ// ì¹´ íħ Į ê³ł ë¦¬ Ġdb ìĹĲ ĠìłĢìŀ¥ íķĺê¸° Ġroutes -> clo set . js ĊĠĠĠ Ġ@ POST ("/ category / save ") ĊĠĠĠ Ġfun Ġsave Category (@ Body Ġdata : ĠSave Category Data ?): ĠCall < Save Category Response ?> ? ĊĊĠĠĠ Ġ// Clo set ìĹĲìĦľ ĠìĤ¬ ì§Ħ Ġurl ëĵ¤ Ġê° ĸ ê³ł ìĺ ¬ ĠëķĮ ĠìĤ¬ìļ© ĊĠĠĠ Ġ@ POST ("/ clo set / image ") ĊĠĠĠ Ġfun Ġget Clo set Images (@ Body Ġdata : ĠImage Data ?): ĠCall < Image Response ?> ? ĊĊĠĠĠ Ġ// Clo set ĠFull Image Activity ìĹĲìĦľ ĠìĤ Ń ìłľ íķł ĠëķĮ ĠìĤ¬ìļ© ĊĠĠĠ Ġ@ POST ("/ clo set / delete ") ĊĠĠĠ Ġfun Ġdelete Image (@ Body Ġdata : ĠDelete Data ?): ĠCall < Delete Response ?> ? ĊĊĠĠĠ Ġ// Clo set ĠFull Image Activity ìĹĲìĦľ ĠìĪĺ ìłķ íķł ĠëķĮ ĠìĤ¬ìļ© ĊĠĠĠ Ġ@ POST ("/ clo set / modify ") ĊĠĠĠ Ġfun Ġmodify Image (@ Body Ġdata : ĠModify Data ?): ĠCall < Modify Response ?> ? ĊĊĠĠĠ Ġ// Call < List < Image Response >> Ġget Clo set Images (@ Body ĠImage Data Ġdata ); ĊĠĠĠ Ġ@ POST ("/ color / color ") ĊĠĠĠ Ġfun Ġuser Check Color (@ Body Ġdata : ĠColor Data ?): ĠCall < Color Response ?> ? ĊĊĠĠĠ Ġ/* Ġ@ POST ("/ color 1 / color 1 ") ĊĠĠĠ ĠCall < Color Response > Ġuser Check Color 1 (@ Body ĠColor Data Ġdata ); ĊĊĠĠĠ Ġ@ POST ("/ color 1 / color 2 ") ĊĠĠĠ ĠCall < Color Response > Ġuser Check Color 2 (@ Body ĠColor Data Ġdata ); Ċ */ ĊĠĠĠ Ġ@ POST ("/ color 1 / color 1 ") ĊĠĠĠ Ġfun Ġuser Check Color 1 2 3 (@ Body Ġdata : ĠColor Data ?): ĠCall < Color Response ?> ? ĊĊĠĠĠ Ġ@ POST ("/ tone 1 / tone 1 ") ĊĠĠĠ Ġfun Ġuser Check Tone 1 2 3 (@ Body Ġdata : ĠT one Data ?): ĠCall < Tone Response ?> ? ĊĊĠĠĠ Ġ@ POST ("/ tone 2 / tone 2 ") ĊĠĠĠ Ġfun Ġuser Check Tone 2 (@ Body Ġdata : ĠT one Data ?): ĠCall < Tone Response ?> ? ĊĊĠĠĠ Ġ@ POST ("/ tone 3 / tone 3 ") ĊĠĠĠ Ġfun Ġuser Check Tone 3 (@ Body Ġdata : ĠT one Data ?): ĠCall < Tone Response ?> ? ĊĊĊĠĠĠ Ġ@ GET ("/ style ") ĊĠĠĠ Ġsuspend Ġfun Ġget Style list Data (@ Query (" userId ") ĠuserId : String ): ĠResponse < List < Style list >> ĊĊĊĊ ĊĊĠĠĠ Ġ@ GET ("/ rating ") ĊĠĠĠ Ġfun Ġuser Style Rating (@ Query (" image ID ") Ġimage ID : ĠInt , Ġ@ Query (" userId ") ĠuserId : String ): ĠCall < Rating Response ?> ? ĊĊĠĠĠ Ġ@ POST ("/ rating / update ") ĊĠĠĠ Ġfun Ġupdate Style Rating (@ Body Ġdata : ĠRating Data ?): ĠCall < Rating Response ?> ? ĊĊĠĠĠ Ġ@ GET ("/ style / select ") ĊĠĠĠ Ġfun Ġget Post Item Data (@ Query (" userId ") ĠuserId : String ,@ Query (" Purpose ") ĠPurpose : Int ): ĠCall < Post Item Data Response > ĊĊĊĠĠĠ Ġ@ POST ("/ style / update ") ĊĠĠĠ Ġfun Ġset Style Purpose (@ Body Ġdata : ĠPost Item Data ): ĠCall < Post Item Data Response ?> ? ĊĊĊĊĠĠĠ Ġ// Look Book ĊĠĠĠ Ġ@ POST ("/ look book ") ĊĠĠĠ Ġfun Ġget Coord i List (@ Body Ġdata : ĠLook Book Data ?): ĠCall < Look Book Response ?> ? ĊĊĠĠ Ġ// Ġ@ POST ("/ look book ") ĊĠĠ Ġ// Ġfun Ġget Coord i List (@ Body Ġdata : ĠLook Book Data ?): ĠCall < Look Book Response 2 ?> ? ĊĊĠĠĠ Ġ//@ POST ("/ look book ") ĊĠĠĠĠ Ġ// fun Ġget Coord i List (@ Body Ġdata : ĠLook Book Data ?): ĠCall < JSONObject ?> ? ĊĊĠĠĠ Ġ@ POST ("/ look book / result ") ĊĠĠĠ Ġfun Ġget Urls List (@ Body Ġdata : ĠLook Book Result Data ?): ĠCall < Look Book Result Response ?> ? ĊĊĠĠĠ Ġ// ìĬ¤ íĥĢ ìĿ¼ ë³Ħ ë¡ľ ĠíķĦ íĦ° ë§ģ íķ´ìĦľ Ġë³´ ìĹ¬ ì£¼ ê¸° ĊĠĠĠ Ġ@ GET ("/ rating / by name ") ĊĠĠĠ Ġfun Ġget Style Name (@ Query (" style ") Ġstyle : String ) Ġ: ĠResponse < List < Style list >> ĊĠĠĠ Ġ// Ġfun Ġget Style Images (@ Body Ġdata : ĠImage Data ?): ĠCall < Image Response ?> ? Ċ Ċ }