|
@@ -73,10 +73,11 @@ public class BirthdayLogController extends BaseController {
|
|
*/
|
|
*/
|
|
@PostMapping
|
|
@PostMapping
|
|
@ApiOperation("新增查询记录")
|
|
@ApiOperation("新增查询记录")
|
|
- public Response<Integer> add(@RequestBody BirthdayLog birthdayLog) {
|
|
|
|
|
|
+ public Response<BirthdayLog> add(@RequestBody BirthdayLog birthdayLog) {
|
|
Long userId = SecurityUtils.getLoginUser().getStudent().getId();
|
|
Long userId = SecurityUtils.getLoginUser().getStudent().getId();
|
|
birthdayLog.setUserId(userId);
|
|
birthdayLog.setUserId(userId);
|
|
- return toResponse(birthdayLogService.saveBirthdayLog(birthdayLog) ? 1 : 0);
|
|
|
|
|
|
+ BirthdayLog birthdayLogDb = birthdayLogService.saveBirthdayLog(birthdayLog);
|
|
|
|
+ return Response.success(birthdayLogDb);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|