外卖项目day02-启用禁用员工账号_代码开发和功能测试
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user