外卖项目day01-新增员工_代码开发
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.sky.controller.admin;
|
||||
|
||||
import com.sky.constant.JwtClaimsConstant;
|
||||
import com.sky.dto.EmployeeDTO;
|
||||
import com.sky.dto.EmployeeLoginDTO;
|
||||
import com.sky.entity.Employee;
|
||||
import com.sky.properties.JwtProperties;
|
||||
@@ -76,4 +77,12 @@ public class EmployeeController {
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@ApiOperation("新增员工")
|
||||
@PostMapping()
|
||||
public Result<String> save(@RequestBody EmployeeDTO employeeDTO) {
|
||||
log.info("新增员工:{}",employeeDTO);
|
||||
//调用业务层新增员工的功能
|
||||
employeeService.save(employeeDTO);
|
||||
return Result.success();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user