|
@@ -44,7 +44,6 @@ import org.jeecg.modules.adweb.subscription.service.IUserPlanSubscriptionService
|
|
|
import org.jeecg.modules.adweb.system.service.SysAdwebApi;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
@@ -131,7 +130,7 @@ public class SeoKeywordsController extends JeecgController<SeoKeywords, ISeoKeyw
|
|
|
*/
|
|
|
@AutoLog(value = "关键词-添加")
|
|
|
@Operation(summary = "关键词-添加")
|
|
|
- @PreAuthorize("@jps.requiresPermissions('seo:seo_keywords:add')")
|
|
|
+ // @PreAuthorize("@jps.requiresPermissions('seo:seo_keywords:add')")
|
|
|
@PostMapping(value = "/add")
|
|
|
public Result<String> add(@RequestBody SeoKeywords seoKeywords) {
|
|
|
// AdwebSite siteByCode = adwebSiteService.getSiteByCode(seoKeywords.getSiteCode());
|
|
@@ -156,7 +155,7 @@ public class SeoKeywordsController extends JeecgController<SeoKeywords, ISeoKeyw
|
|
|
*/
|
|
|
@AutoLog(value = "关键词-编辑")
|
|
|
@Operation(summary = "关键词-编辑")
|
|
|
- @PreAuthorize("@jps.requiresPermissions('seo:seo_keywords:edit')")
|
|
|
+ // @PreAuthorize("@jps.requiresPermissions('seo:seo_keywords:edit')")
|
|
|
@RequestMapping(
|
|
|
value = "/edit",
|
|
|
method = {RequestMethod.PUT, RequestMethod.POST})
|
|
@@ -173,7 +172,7 @@ public class SeoKeywordsController extends JeecgController<SeoKeywords, ISeoKeyw
|
|
|
*/
|
|
|
@AutoLog(value = "关键词-通过id删除")
|
|
|
@Operation(summary = "关键词-通过id删除")
|
|
|
- @PreAuthorize("@jps.requiresPermissions('seo:seo_keywords:delete')")
|
|
|
+ // @PreAuthorize("@jps.requiresPermissions('seo:seo_keywords:delete')")
|
|
|
@DeleteMapping(value = "/delete")
|
|
|
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
|
|
seoKeywordsService.removeById(id);
|
|
@@ -188,7 +187,7 @@ public class SeoKeywordsController extends JeecgController<SeoKeywords, ISeoKeyw
|
|
|
*/
|
|
|
@AutoLog(value = "关键词-批量删除")
|
|
|
@Operation(summary = "关键词-批量删除")
|
|
|
- @PreAuthorize("@jps.requiresPermissions('seo:seo_keywords:deleteBatch')")
|
|
|
+ // @PreAuthorize("@jps.requiresPermissions('seo:seo_keywords:deleteBatch')")
|
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
|
public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
|
|
this.seoKeywordsService.removeByIds(Arrays.asList(ids.split(",")));
|
|
@@ -217,7 +216,7 @@ public class SeoKeywordsController extends JeecgController<SeoKeywords, ISeoKeyw
|
|
|
*
|
|
|
* @param request
|
|
|
*/
|
|
|
- @PreAuthorize("@jps.requiresPermissions('seo:seo_keywords:exportXls')")
|
|
|
+ // @PreAuthorize("@jps.requiresPermissions('seo:seo_keywords:exportXls')")
|
|
|
@RequestMapping(value = "/exportXls")
|
|
|
public ModelAndView exportXls(HttpServletRequest request, SeoKeywords seoKeywords) {
|
|
|
return super.exportXls(request, seoKeywords, SeoKeywords.class, "关键词");
|