Browse Source

修改 URL

weiximei 6 years ago
parent
commit
70aecc802d

+ 8
- 1
CODE/smart-community/community-common/src/main/java/com/community/commom/constant/Constant.java View File

12
     /** APP端session **/
12
     /** APP端session **/
13
     public static final String APP_USER_SESSION = "appUser";
13
     public static final String APP_USER_SESSION = "appUser";
14
 
14
 
15
-    /** WEB端session **/
15
+    /** WEB运营端session **/
16
+    // 待废弃
16
     public static final String WEB_USER_SESSION = "webUser";
17
     public static final String WEB_USER_SESSION = "webUser";
17
 
18
 
19
+    /** WEB运营端session **/
20
+    public static final String WEB_OPERATE_USER_SESSION = "webOperateUser";
21
+
22
+    /** WEB物业端session **/
23
+    public static final String WEB_PROPERTY_USER_SESSION = "webPropertyUser";
24
+
18
     /** 不需要权限的URL身份 **/
25
     /** 不需要权限的URL身份 **/
19
     public static final String ROLE_NONEUSER = "ROLE_NONEUSER";
26
     public static final String ROLE_NONEUSER = "ROLE_NONEUSER";
20
 
27
 

+ 3
- 3
CODE/smart-community/property-api/src/main/java/com/community/huiju/common/base/BaseController.java View File

11
  */
11
  */
12
 public class BaseController {
12
 public class BaseController {
13
 
13
 
14
-//    protected UserElement getUserElement(HttpSession session){
15
-//        //session.getAttribute(Constant.)
16
-//    }
14
+    protected UserElement getUserElement(HttpSession session){
15
+        session.getAttribute(Constant.)
16
+    }
17
 
17
 
18
 }
18
 }

+ 5
- 5
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BuildingOwnerInfoController.java View File

26
  * @since 2018-12-18
26
  * @since 2018-12-18
27
  */
27
  */
28
 @RestController
28
 @RestController
29
-@RequestMapping("/tp/building-owner-info")
29
+@RequestMapping("/")
30
 @Api(value = "楼栋业主资料信息", description = "楼栋业主资料信息 Api")
30
 @Api(value = "楼栋业主资料信息", description = "楼栋业主资料信息 Api")
31
 public class BuildingOwnerInfoController extends BaseController {
31
 public class BuildingOwnerInfoController extends BaseController {
32
 
32
 
40
                     "ownerName业主姓名;" +
40
                     "ownerName业主姓名;" +
41
                     "pageNum第几页;pageSize 一页多少行;")
41
                     "pageNum第几页;pageSize 一页多少行;")
42
     })
42
     })
43
-    @RequestMapping(value = "list", method = RequestMethod.POST)
43
+    @RequestMapping(value = "/building/list", method = RequestMethod.POST)
44
     public ResponseBean getList(@RequestBody String parameter){
44
     public ResponseBean getList(@RequestBody String parameter){
45
         ResponseBean responseBean = new ResponseBean();
45
         ResponseBean responseBean = new ResponseBean();
46
         responseBean = iBuildingOwnerInfoService.listQuery(parameter);
46
         responseBean = iBuildingOwnerInfoService.listQuery(parameter);
55
                     "ownerTel业主手机号"),
55
                     "ownerTel业主手机号"),
56
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
56
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
57
     })
57
     })
58
-    @RequestMapping(value = "update", method = RequestMethod.PUT)
58
+    @RequestMapping(value = "/building/update", method = RequestMethod.PUT)
59
     public ResponseBean update(@RequestBody String parameter){
59
     public ResponseBean update(@RequestBody String parameter){
60
         ResponseBean responseBean = new ResponseBean();
60
         ResponseBean responseBean = new ResponseBean();
61
         responseBean = iBuildingOwnerInfoService.update(parameter);
61
         responseBean = iBuildingOwnerInfoService.update(parameter);
70
                     "ownerTel业主手机号"),
70
                     "ownerTel业主手机号"),
71
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
71
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
72
     })
72
     })
73
-    @RequestMapping(value = "add", method = RequestMethod.POST)
73
+    @RequestMapping(value = "/building/add", method = RequestMethod.POST)
74
     public ResponseBean add(String parameter){
74
     public ResponseBean add(String parameter){
75
         ResponseBean responseBean = new ResponseBean();
75
         ResponseBean responseBean = new ResponseBean();
76
         responseBean = iBuildingOwnerInfoService.add(parameter);
76
         responseBean = iBuildingOwnerInfoService.add(parameter);
82
             @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "ids"),
82
             @ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "ids"),
83
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
83
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "token")
84
     })
84
     })
85
-    @RequestMapping(value = "delete", method = RequestMethod.DELETE)
85
+    @RequestMapping(value = "/building/delete", method = RequestMethod.DELETE)
86
     public ResponseBean delete(@RequestBody List<Integer> ids){
86
     public ResponseBean delete(@RequestBody List<Integer> ids){
87
         ResponseBean responseBean = new ResponseBean();
87
         ResponseBean responseBean = new ResponseBean();
88
         responseBean = iBuildingOwnerInfoService.deleteByIdDatch(ids);
88
         responseBean = iBuildingOwnerInfoService.deleteByIdDatch(ids);