|
|
@@ -0,0 +1,51 @@
|
|
|
+package com.goafanti.user.controller;
|
|
|
+
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import com.goafanti.common.bo.Result;
|
|
|
+import com.goafanti.common.constant.ErrorConstants;
|
|
|
+import com.goafanti.common.controller.CertifyApiController;
|
|
|
+import com.goafanti.common.utils.StringUtils;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping(value = "/api/user/Partner")
|
|
|
+public class UserPartnerApiController extends CertifyApiController {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 个人"伙伴"主页详情
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/userDetail", method = RequestMethod.GET)
|
|
|
+ public Result userDetail(String uid) {
|
|
|
+ Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(uid)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "用户ID"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 组织"伙伴"主页详情
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/orgDetail", method = RequestMethod.GET)
|
|
|
+ public Result orgDetail(String uid){
|
|
|
+ Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(uid)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "", "用户ID"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+ @RequestMapping(value = "/demandList", method = RequestMethod.GET)
|
|
|
+ public Result demandList(){
|
|
|
+ Result res = new Result();
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+ /*public Result achievementList(){
|
|
|
+
|
|
|
+ }*/
|
|
|
+}
|