|
@@ -3,6 +3,7 @@ package com.ym.mec.student.controller;
|
|
|
import com.ym.mec.auth.api.client.SysUserFeignService;
|
|
|
import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.biz.dal.dto.DegreeRegistrationActivityDto;
|
|
|
+import com.ym.mec.biz.dal.entity.ChildrenDayReserve;
|
|
|
import com.ym.mec.biz.dal.entity.SporadicChargeInfo;
|
|
|
import com.ym.mec.biz.dal.enums.SporadicChargeTypeEnum;
|
|
|
import com.ym.mec.biz.service.ChildrenDayReserveService;
|
|
@@ -33,11 +34,21 @@ public class ChildrenDayController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "占位")
|
|
|
@PostMapping("/reserve")
|
|
|
- public HttpResponseResult reserve() {
|
|
|
+ public HttpResponseResult<ChildrenDayReserve> reserve() {
|
|
|
SysUser user = sysUserFeignService.queryUserInfo();
|
|
|
if (Objects.isNull(user)) {
|
|
|
return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
|
}
|
|
|
return succeed(childrenDayReserveService.addReserve(user));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取占位信息")
|
|
|
+ @PostMapping("/getReserve")
|
|
|
+ public HttpResponseResult<ChildrenDayReserve> getReserve() {
|
|
|
+ SysUser user = sysUserFeignService.queryUserInfo();
|
|
|
+ if (Objects.isNull(user)) {
|
|
|
+ return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
|
+ }
|
|
|
+ return succeed(childrenDayReserveService.getUserReserve(user.getId()));
|
|
|
+ }
|
|
|
}
|