release- 修改controller适配swagger

release-2024-08-08
huangyawei 4 months ago
parent 42a6397241
commit a18a8ca557

@ -34,7 +34,7 @@ public class StoreController {
@Autowired @Autowired
private StoreService storeService; private StoreService storeService;
@RequestMapping("/list/{page}/{size}") @PostMapping(value = "/list/{page}/{size}")
@GlobalInterceptor(checkAdminLogin = true) @GlobalInterceptor(checkAdminLogin = true)
@ApiOperation(value = "获取门店列表(PC)", notes = "获取门店列表") @ApiOperation(value = "获取门店列表(PC)", notes = "获取门店列表")
public Result<PageResult<StorePCVO>> getStoreList( public Result<PageResult<StorePCVO>> getStoreList(
@ -46,7 +46,7 @@ public class StoreController {
return Result.success(storeService.getList(storeSearchDto, page, size)); return Result.success(storeService.getList(storeSearchDto, page, size));
} }
@RequestMapping("/app/list") @PostMapping("/app/list")
@ApiOperation(value = "获取门店列表(APP)", notes = "获取门店列表") @ApiOperation(value = "获取门店列表(APP)", notes = "获取门店列表")
@GlobalInterceptor(checkAppUserLogin = true) @GlobalInterceptor(checkAppUserLogin = true)
public Result<List<StoreAppVO>> getStoreList( public Result<List<StoreAppVO>> getStoreList(
@ -55,7 +55,7 @@ public class StoreController {
return Result.success(storeService.getListForApp(storeSearchDto)); return Result.success(storeService.getListForApp(storeSearchDto));
} }
@RequestMapping("/get") @GetMapping("/get")
@GlobalInterceptor(checkAdminLogin = true) @GlobalInterceptor(checkAdminLogin = true)
@ApiOperation(value = "获取门店详情(PC)", notes = "获取门店详情") @ApiOperation(value = "获取门店详情(PC)", notes = "获取门店详情")
public Result<Store> getStore(String id) { public Result<Store> getStore(String id) {

Loading…
Cancel
Save