| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 预约技师 |
| | | */ |
| | | @PostMapping("/subscribe") |
| | | @ApiOperation(value = "预约技师", notes = "预约技师", tags = {"小程序-个人中心-门店管理-预约列表-预约技师"}) |
| | | public R<Void> subscribe(@RequestBody TechnicianSubscribe technicianSubscribe){ |
| | | technicianSubscribeService.subscribe(technicianSubscribe); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 取消服务 |
| | | */ |
| | | @GetMapping("/cancel") |
| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/home/list") |
| | | @ApiOperation(value = "列表", notes = "列表", tags = {"小程序-个人中心-我的预约"}) |
| | | public TableDataInfo homelist(@ApiParam(value = "状态 0=待服务,1=已服务,2=已取消 4 已到期") @RequestParam Integer status){ |
| | | startPage(); |
| | | List<TechnicianSubscribeVO> list = technicianSubscribeService |
| | | .getTechnicianSubscribeByUser(SecurityUtils.getUserId(),status); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | |
| | | } |
| | | |