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