|
|
@@ -24,9 +24,9 @@ import jakarta.validation.Valid;
|
|
|
* @author wzq
|
|
|
* @since 2025-11-26 15:59
|
|
|
*/
|
|
|
-@Tag(name = "小程序banner图接口")
|
|
|
+@Tag(name = "v2.0 小程序banner图接口")
|
|
|
@RestController
|
|
|
-@RequestMapping("/api/v1/banner-info")
|
|
|
+@RequestMapping("/api/v1/bannerInfo")
|
|
|
@RequiredArgsConstructor
|
|
|
public class BannerInfoController {
|
|
|
|
|
|
@@ -34,7 +34,7 @@ public class BannerInfoController {
|
|
|
|
|
|
@Operation(summary = "小程序banner图分页列表")
|
|
|
@GetMapping("/page")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:banner-info:query')")
|
|
|
+ @PreAuthorize("@ss.hasPerm('business:bannerInfo:query')")
|
|
|
public PageResult<BannerInfoVO> getBannerInfoPage(BannerInfoQuery queryParams ) {
|
|
|
IPage<BannerInfoVO> result = bannerInfoService.getBannerInfoPage(queryParams);
|
|
|
return PageResult.success(result);
|
|
|
@@ -42,7 +42,7 @@ public class BannerInfoController {
|
|
|
|
|
|
@Operation(summary = "新增小程序banner图")
|
|
|
@PostMapping
|
|
|
- @PreAuthorize("@ss.hasPerm('business:banner-info:add')")
|
|
|
+ @PreAuthorize("@ss.hasPerm('business:bannerInfo:add')")
|
|
|
public Result<Void> saveBannerInfo(@RequestBody @Valid BannerInfoForm formData ) {
|
|
|
boolean result = bannerInfoService.saveBannerInfo(formData);
|
|
|
return Result.judge(result);
|
|
|
@@ -50,7 +50,7 @@ public class BannerInfoController {
|
|
|
|
|
|
@Operation(summary = "获取小程序banner图表单数据")
|
|
|
@GetMapping("/{id}/form")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:banner-info:edit')")
|
|
|
+ @PreAuthorize("@ss.hasPerm('business:bannerInfo:edit')")
|
|
|
public Result<BannerInfoForm> getBannerInfoForm(
|
|
|
@Parameter(description = "小程序banner图ID") @PathVariable Long id
|
|
|
) {
|
|
|
@@ -60,7 +60,7 @@ public class BannerInfoController {
|
|
|
|
|
|
@Operation(summary = "修改小程序banner图")
|
|
|
@PutMapping(value = "/{id}")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:banner-info:edit')")
|
|
|
+ @PreAuthorize("@ss.hasPerm('business:bannerInfo:edit')")
|
|
|
public Result<Void> updateBannerInfo(
|
|
|
@Parameter(description = "小程序banner图ID") @PathVariable Long id,
|
|
|
@RequestBody @Validated BannerInfoForm formData
|
|
|
@@ -71,7 +71,7 @@ public class BannerInfoController {
|
|
|
|
|
|
@Operation(summary = "删除小程序banner图")
|
|
|
@DeleteMapping("/{ids}")
|
|
|
- @PreAuthorize("@ss.hasPerm('business:banner-info:delete')")
|
|
|
+ @PreAuthorize("@ss.hasPerm('business:bannerInfo:delete')")
|
|
|
public Result<Void> deleteBannerInfos(
|
|
|
@Parameter(description = "小程序banner图ID,多个以英文逗号(,)分割") @PathVariable String ids
|
|
|
) {
|