|
@@ -33,7 +33,7 @@ import java.util.Arrays;
|
|
*/
|
|
*/
|
|
@Tag(name = "AdWeb套餐订购")
|
|
@Tag(name = "AdWeb套餐订购")
|
|
@RestController
|
|
@RestController
|
|
-@RequestMapping("/serp/seoPlanSubscription")
|
|
|
|
|
|
+@RequestMapping("/adweb/userPlanSubscription")
|
|
@Slf4j
|
|
@Slf4j
|
|
public class UserPlanSubscriptionController
|
|
public class UserPlanSubscriptionController
|
|
extends JeecgController<UserPlanSubscription, IUserPlanSubscriptionService> {
|
|
extends JeecgController<UserPlanSubscription, IUserPlanSubscriptionService> {
|
|
@@ -71,7 +71,7 @@ public class UserPlanSubscriptionController
|
|
*/
|
|
*/
|
|
@AutoLog(value = "AdWeb套餐订购-添加")
|
|
@AutoLog(value = "AdWeb套餐订购-添加")
|
|
@Operation(summary = "AdWeb套餐订购-添加")
|
|
@Operation(summary = "AdWeb套餐订购-添加")
|
|
- @PreAuthorize("@jps.requiresPermissions('serp:seo_plan_subscription:add')")
|
|
|
|
|
|
+ @PreAuthorize("@jps.requiresPermissions('adweb:user_plan_subscription:add')")
|
|
@PostMapping(value = "/add")
|
|
@PostMapping(value = "/add")
|
|
public Result<String> add(@RequestBody UserPlanSubscription userPlanSubscription) {
|
|
public Result<String> add(@RequestBody UserPlanSubscription userPlanSubscription) {
|
|
userPlanSubscriptionService.save(userPlanSubscription);
|
|
userPlanSubscriptionService.save(userPlanSubscription);
|
|
@@ -86,7 +86,7 @@ public class UserPlanSubscriptionController
|
|
*/
|
|
*/
|
|
@AutoLog(value = "AdWeb套餐订购-编辑")
|
|
@AutoLog(value = "AdWeb套餐订购-编辑")
|
|
@Operation(summary = "AdWeb套餐订购-编辑")
|
|
@Operation(summary = "AdWeb套餐订购-编辑")
|
|
- @PreAuthorize("@jps.requiresPermissions('serp:seo_plan_subscription:edit')")
|
|
|
|
|
|
+ @PreAuthorize("@jps.requiresPermissions('adweb:user_plan_subscription:edit')")
|
|
@RequestMapping(
|
|
@RequestMapping(
|
|
value = "/edit",
|
|
value = "/edit",
|
|
method = {RequestMethod.PUT, RequestMethod.POST})
|
|
method = {RequestMethod.PUT, RequestMethod.POST})
|
|
@@ -103,7 +103,7 @@ public class UserPlanSubscriptionController
|
|
*/
|
|
*/
|
|
@AutoLog(value = "AdWeb套餐订购-通过id删除")
|
|
@AutoLog(value = "AdWeb套餐订购-通过id删除")
|
|
@Operation(summary = "AdWeb套餐订购-通过id删除")
|
|
@Operation(summary = "AdWeb套餐订购-通过id删除")
|
|
- @PreAuthorize("@jps.requiresPermissions('serp:seo_plan_subscription:delete')")
|
|
|
|
|
|
+ @PreAuthorize("@jps.requiresPermissions('adweb:user_plan_subscription:delete')")
|
|
@DeleteMapping(value = "/delete")
|
|
@DeleteMapping(value = "/delete")
|
|
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
|
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
|
userPlanSubscriptionService.removeById(id);
|
|
userPlanSubscriptionService.removeById(id);
|
|
@@ -118,7 +118,7 @@ public class UserPlanSubscriptionController
|
|
*/
|
|
*/
|
|
@AutoLog(value = "AdWeb套餐订购-批量删除")
|
|
@AutoLog(value = "AdWeb套餐订购-批量删除")
|
|
@Operation(summary = "AdWeb套餐订购-批量删除")
|
|
@Operation(summary = "AdWeb套餐订购-批量删除")
|
|
- @PreAuthorize("@jps.requiresPermissions('serp:seo_plan_subscription:deleteBatch')")
|
|
|
|
|
|
+ @PreAuthorize("@jps.requiresPermissions('adweb:user_plan_subscription:deleteBatch')")
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
@DeleteMapping(value = "/deleteBatch")
|
|
public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
|
public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
|
this.userPlanSubscriptionService.removeByIds(Arrays.asList(ids.split(",")));
|
|
this.userPlanSubscriptionService.removeByIds(Arrays.asList(ids.split(",")));
|
|
@@ -149,7 +149,7 @@ public class UserPlanSubscriptionController
|
|
* @param request
|
|
* @param request
|
|
* @param userPlanSubscription
|
|
* @param userPlanSubscription
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@jps.requiresPermissions('serp:seo_plan_subscription:exportXls')")
|
|
|
|
|
|
+ @PreAuthorize("@jps.requiresPermissions('adweb:user_plan_subscription:exportXls')")
|
|
@RequestMapping(value = "/exportXls")
|
|
@RequestMapping(value = "/exportXls")
|
|
public ModelAndView exportXls(
|
|
public ModelAndView exportXls(
|
|
HttpServletRequest request, UserPlanSubscription userPlanSubscription) {
|
|
HttpServletRequest request, UserPlanSubscription userPlanSubscription) {
|
|
@@ -164,7 +164,7 @@ public class UserPlanSubscriptionController
|
|
* @param response
|
|
* @param response
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- @PreAuthorize("@jps.requiresPermissions('serp:seo_plan_subscription:importExcel')")
|
|
|
|
|
|
+ @PreAuthorize("@jps.requiresPermissions('adweb:user_plan_subscription:importExcel')")
|
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
return super.importExcel(request, response, UserPlanSubscription.class);
|
|
return super.importExcel(request, response, UserPlanSubscription.class);
|