package com.feiyangedu.springcloud.petstore.web.mvc;

public class LoginController {

}

@@ -51,38 +51,943 @@
 c;%0A%0A
-public class LoginController %7B%0A
+import org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport com.feiyangedu.springcloud.petstore.web.client.AccountFeignClient;%0A%0Aimport io.swagger.api.client.account.model.Page;%0Aimport io.swagger.api.client.account.model.User;%0A%0A@RestController%0Apublic class UserController %7B%0A%0A%09@Autowired%0A%09AccountFeignClient accountClient;%0A%0A%09@GetMapping(%22/getUsers%22)%0A%09public Page%3CUser%3E getUsers() %7B%0A%09%09return accountClient.getUsers(0);%0A%09%7D%0A%0A%09@GetMapping(%22/getUser/%7Bid%7D%22)%0A%09public User getUser(@PathVariable(%22id%22) String id) %7B%0A%09%09return accountClient.getUser(id);%0A%09%7D%0A%0A%09@GetMapping(%22/getUser2%22)%0A%09public String getUser() %7B%0A%09%09try %7B%0A%09%09%09accountClient.getUser(%221b65nvt1k56u106000pp%22);%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%09return %22ex%22;%0A%09%09%7D%0A%09%09return %22ok%22;%0A%09%7D
 %0A%7D%0A

add user controller