|  |  |  | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | @GetMapping("info/{id}/") | 
|---|
|  |  |  | //http://127.0.0.1:8000/demo/demo/info/123234234/?name=张三 | 
|---|
|  |  |  | @SsoAop(power="123456", ifAllPower = {"123", "456"}) | 
|---|
|  |  |  | @SsoAop() | 
|---|
|  |  |  | public BaseResponse<String> info(@PathVariable String id, @RequestParam String name) throws GlException{ | 
|---|
|  |  |  | if(name == null || name.trim().equals("")){ | 
|---|
|  |  |  | return BaseResponseUtils.buildFail(ResultCodeMsg.RsMsg.ERROR_PARAM); | 
|---|
|  |  |  | 
|---|
|  |  |  | @GetMapping("test1") | 
|---|
|  |  |  | public BaseResponse<BaUser> test1(){ | 
|---|
|  |  |  | BaUser po = new BaUser() ; | 
|---|
|  |  |  | po.id = System.currentTimeMillis() ; | 
|---|
|  |  |  | po.name = "张三" ; | 
|---|
|  |  |  | po.userId = System.currentTimeMillis() ; | 
|---|
|  |  |  | po.userName = "张三" ; | 
|---|
|  |  |  | po.phone = "13912345678" ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return BaseResponseUtils.buildSuccess(po); | 
|---|