外卖项目day02-启用禁用员工账号_代码开发和功能测试

This commit is contained in:
xx
2026-11-14 16:29:40 +08:00
parent f5c4b998fe
commit 2f1dcbf595
6 changed files with 58 additions and 1 deletions
@@ -99,4 +99,13 @@ public class EmployeeController {
PageResult pageResult = employeeService.pageQuery(employeePageQueryDTO);
return Result.success(pageResult);
}
@ApiOperation("启用禁用员工")
@PostMapping("/status/{status}")
public Result startOrStop(@PathVariable Integer status,Long id) {
log.info("启用禁用员工:{},{}",status,id);
employeeService.startOrStop(status,id);
return Result.success();
}
}