# 半價資訊網 ---- ### 功能 : ``` 1. 新增店家 2. 使用者登入,登出,權限確認 ``` #### API ###### 目前API皆為預設格式,將來可依情況討論後修改 ##### 新增店家 ```json= method : POST path : /usermanagement/saveStore request :{ email : String //必填 password : String //必填 phone : String //必填 city : String //必填 district : String //必填 address : String //必填 storeName : String //必填 info : String //必填 type : String //必填 createDtm : String //必填 } response :{ "success" // 成功訊息 } ``` ##### 刪除店家 ```json= method : GET path : /usermanagement/deleteStore?{dataId} //必填 request :{ } response :{ "success" // 成功訊息 } ``` ##### 更新店家 ```json= method : POST path : /usermanagement/update request :{ id : String //必填 email : String //必填 password : String //必填 phone : String //必填 city : String //必填 district : String //必填 address : String //必填 storeName : String //必填 info : String //必填 type : String //必填 createDtm : String //必填 } response :{ "success" // 成功訊息 } ``` ##### 登入 ```json= method : POST path : /auth/login request :{ email : String //必填 password : String //必填 } response :{ check : String auth : String } ``` ##### 確認權限 ```json= method : POST path : /auth/check request :{ email : String //必填 password : String //必填 } response :{ check : String auth : String } ``` ##### 登出 ```json= method : POST path : /logout request :{ } response :{ } ``` ##### 搜尋城市 ```json= method : POST path : /area/selectcity request :{ } response :{ id : String district: String } ```