增加修改门店信息接口

This commit is contained in:
2025-08-07 20:37:55 +08:00
parent 378e08f2d6
commit 156cad4bc7
2 changed files with 9 additions and 6 deletions

View File

@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sczx.store.common.Result; import com.sczx.store.common.Result;
import com.sczx.store.dto.CompanyStoreDTO; import com.sczx.store.dto.CompanyStoreDTO;
import com.sczx.store.dto.SimpleUserInfoDTO; import com.sczx.store.dto.SimpleUserInfoDTO;
import com.sczx.store.dto.req.StoreChangeReq;
import com.sczx.store.dto.req.StoreDistanceReq; import com.sczx.store.dto.req.StoreDistanceReq;
import com.sczx.store.service.StoreService; import com.sczx.store.service.StoreService;
import com.sczx.store.util.JwtUtil; import com.sczx.store.util.JwtUtil;
@ -23,7 +24,7 @@ import java.util.List;
* @author zhangli * @author zhangli
* @since 2025-07-08 21:16:36 * @since 2025-07-08 21:16:36
*/ */
@Api(value = "门店管理端接口", produces = "管理端接口") @Api(value = "门店管理端接口", tags = "门店管理端接口")
@RestController @RestController
@RequestMapping("/store") @RequestMapping("/store")
public class StoreManageController { public class StoreManageController {
@ -44,4 +45,11 @@ public class StoreManageController {
} }
return Result.ok(storeService.listStoresByManage(managerId)); return Result.ok(storeService.listStoresByManage(managerId));
} }
@ApiOperation(value = "修改门店信息")
@PostMapping("/changeStoreInfo")
public Result<Boolean> changeStoreInfo(@RequestBody StoreChangeReq storeChangeReq){
return Result.ok(storeService.changeStore(storeChangeReq));
}
} }

View File

@ -32,9 +32,4 @@ public class StorePubController {
return Result.ok(storeService.getStoreById(storeId)); return Result.ok(storeService.getStoreById(storeId));
} }
@ApiOperation(value = "修改门店信息")
@PostMapping("/changeStoreInfo")
public Result<Boolean> changeStoreInfo(@RequestBody StoreChangeReq storeChangeReq){
return Result.ok(storeService.changeStore(storeChangeReq));
}
} }