导航,附件,拦截器
This commit is contained in:
23
src/main/java/com/lovenav/controller/UrlListController.java
Normal file
23
src/main/java/com/lovenav/controller/UrlListController.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package com.lovenav.controller;
|
||||
|
||||
import com.lovenav.entity.UrlList;
|
||||
import com.lovenav.service.UrlListService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
public class UrlListController {
|
||||
@Autowired
|
||||
UrlListService urlListService;
|
||||
//后台修改网站状态
|
||||
@RequestMapping("/admin/weblist/alterUrlStatus")
|
||||
public String setUrlStatus(UrlList urlList){
|
||||
int result=urlListService.updateUrlStatusListById(urlList);
|
||||
if (result==1){
|
||||
return "修改成功";
|
||||
}else {
|
||||
return "修改失败";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user