|
@@ -1,5 +1,6 @@
|
|
|
package com.zjj.controller;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.zjj.config.HttpUtil;
|
|
|
import com.zjj.config.URLConfig;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -18,4 +19,16 @@ public class AppInterfaceController {
|
|
|
param.put("password",password);
|
|
|
return HttpUtil.sendPostForm(URLConfig.LOGINMOBILE,new HashMap<>(),param);
|
|
|
}
|
|
|
+
|
|
|
+ @PostMapping("/register")
|
|
|
+ public String register(JSONObject param){
|
|
|
+ return HttpUtil.sendPostJson(URLConfig.REGISTER,param,new HashMap<>());
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/getCode")
|
|
|
+ public String getCode(String tel){
|
|
|
+ Map param = new HashMap<>();
|
|
|
+ param.put("tel",tel);
|
|
|
+ return HttpUtil.sendPostForm(URLConfig.GETCODE,new HashMap<>(),param);
|
|
|
+ }
|
|
|
}
|