张延森 4 lat temu
rodzic
commit
f0b3b3c567

+ 3
- 3
src/main/java/com/yunzhi/demo/controller/TdPostTypeController.java Wyświetl plik

89
      * 根据id删除对象
89
      * 根据id删除对象
90
      * @param id  实体ID
90
      * @param id  实体ID
91
      */
91
      */
92
-    @RequestMapping(value="/post-type/{id}", method= RequestMethod.DELETE)
92
+    @RequestMapping(value="/admin/post-type/{id}", method= RequestMethod.DELETE)
93
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
93
     @ApiOperation(value="删除", notes = "删除", httpMethod = "DELETE", response = ResponseBean.class)
94
     public ResponseBean tdPostTypeDelete(@ApiParam("对象ID") @PathVariable String id) throws Exception{
94
     public ResponseBean tdPostTypeDelete(@ApiParam("对象ID") @PathVariable String id) throws Exception{
95
         TdPostType tdPostType = iTdPostTypeService.getById(id);
95
         TdPostType tdPostType = iTdPostTypeService.getById(id);
112
      * @param tdPostType 实体对象
112
      * @param tdPostType 实体对象
113
      * @return
113
      * @return
114
      */
114
      */
115
-    @RequestMapping(value="/post-type/{id}",method= RequestMethod.PUT)
115
+    @RequestMapping(value="/admin/post-type/{id}",method= RequestMethod.PUT)
116
     @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
116
     @ApiOperation(value="更新", notes = "更新", httpMethod = "PUT", response = ResponseBean.class)
117
     public ResponseBean tdPostTypeUpdate(@ApiParam("对象ID") @PathVariable String id,
117
     public ResponseBean tdPostTypeUpdate(@ApiParam("对象ID") @PathVariable String id,
118
                                          @ApiParam("更新内容") @RequestBody TdPostType tdPostType) throws Exception {
118
                                          @ApiParam("更新内容") @RequestBody TdPostType tdPostType) throws Exception {
131
      * 根据id查询对象
131
      * 根据id查询对象
132
      * @param id  实体ID
132
      * @param id  实体ID
133
      */
133
      */
134
-    @RequestMapping(value="/post-type/{id}",method= RequestMethod.GET)
134
+    @RequestMapping(value="/admin/post-type/{id}",method= RequestMethod.GET)
135
     @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
135
     @ApiOperation(value="详情", notes = "详情", httpMethod = "GET", response = ResponseBean.class)
136
     public ResponseBean tdPostTypeGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
136
     public ResponseBean tdPostTypeGet(@ApiParam("对象ID") @PathVariable Integer id) throws Exception{
137
         TdPostType tdPostType = iTdPostTypeService.getById(id);
137
         TdPostType tdPostType = iTdPostTypeService.getById(id);