|
|
@@ -1,15 +1,5 @@
|
|
|
package com.goafanti.user.controller;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
-import javax.annotation.Resource;
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
-
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
-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.BaseApiController;
|
|
|
@@ -18,6 +8,13 @@ import com.goafanti.user.bo.InputListOrderUserService;
|
|
|
import com.goafanti.user.bo.InputUserServiceFollow;
|
|
|
import com.goafanti.user.bo.OutOrderUserService;
|
|
|
import com.goafanti.user.service.UserServiceService;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/api/admin")
|
|
|
@@ -41,6 +38,16 @@ public class UserServiceApiController extends BaseApiController {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+ @RequestMapping(value = "/updateUseService",method = RequestMethod.POST)
|
|
|
+ public Result updateUseService(InputUserServiceFollow us) {
|
|
|
+ Result res =new Result();
|
|
|
+ if(us.getUid()==null) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "用户编号"));
|
|
|
+ }
|
|
|
+ res.data(userServiceService.updateUseService(us));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@RequestMapping(value = "/listUseServiceFollow",method = RequestMethod.GET)
|
|
|
public Result listUseServiceFollow(String uid) {
|