|
@@ -41,14 +41,14 @@ public class AppletBrandController {
|
|
|
|
|
|
|
|
@PostMapping("/create")
|
|
@PostMapping("/create")
|
|
|
@Operation(summary = "创建小程序系统配置")
|
|
@Operation(summary = "创建小程序系统配置")
|
|
|
- @PreAuthorize("@ss.hasPermission('applet:brand:create')")
|
|
|
|
|
|
|
+// @PreAuthorize("@ss.hasPermission('applet:brand:create')")
|
|
|
public CommonResult<Long> createBrand(@Valid @RequestBody AppletBrandSaveReqVO createReqVO) {
|
|
public CommonResult<Long> createBrand(@Valid @RequestBody AppletBrandSaveReqVO createReqVO) {
|
|
|
return success(brandService.createBrand(createReqVO));
|
|
return success(brandService.createBrand(createReqVO));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@PutMapping("/update")
|
|
@PutMapping("/update")
|
|
|
@Operation(summary = "更新小程序系统配置")
|
|
@Operation(summary = "更新小程序系统配置")
|
|
|
- @PreAuthorize("@ss.hasPermission('applet:brand:update')")
|
|
|
|
|
|
|
+// @PreAuthorize("@ss.hasPermission('applet:brand:update')")
|
|
|
public CommonResult<Boolean> updateBrand(@Valid @RequestBody AppletBrandSaveReqVO updateReqVO) {
|
|
public CommonResult<Boolean> updateBrand(@Valid @RequestBody AppletBrandSaveReqVO updateReqVO) {
|
|
|
brandService.updateBrand(updateReqVO);
|
|
brandService.updateBrand(updateReqVO);
|
|
|
return success(true);
|
|
return success(true);
|
|
@@ -57,7 +57,7 @@ public class AppletBrandController {
|
|
|
@DeleteMapping("/delete")
|
|
@DeleteMapping("/delete")
|
|
|
@Operation(summary = "删除小程序系统配置")
|
|
@Operation(summary = "删除小程序系统配置")
|
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
@Parameter(name = "id", description = "编号", required = true)
|
|
|
- @PreAuthorize("@ss.hasPermission('applet:brand:delete')")
|
|
|
|
|
|
|
+// @PreAuthorize("@ss.hasPermission('applet:brand:delete')")
|
|
|
public CommonResult<Boolean> deleteBrand(@RequestParam("id") Long id) {
|
|
public CommonResult<Boolean> deleteBrand(@RequestParam("id") Long id) {
|
|
|
brandService.deleteBrand(id);
|
|
brandService.deleteBrand(id);
|
|
|
return success(true);
|
|
return success(true);
|