| | |
| | | package com.panzhihua.service_jinhui_community.api; |
| | | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiInterspaceApplyForVO; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiInterspaceTypeVO; |
| | | import com.panzhihua.common.model.vos.jinhui.JinhuiInterspaceVO; |
| | | import com.panzhihua.service_jinhui_community.entity.JinhuiInterspaceApplyFor; |
| | | import com.panzhihua.service_jinhui_community.service.JinhuiInterspaceApplyForService; |
| | | import com.panzhihua.service_jinhui_community.service.JinhuiInterspaceService; |
| | | import com.panzhihua.service_jinhui_community.service.JinhuiInterspaceTypeService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | |
| | | @Resource |
| | | private JinhuiInterspaceTypeService interspaceTypeService; |
| | | |
| | | @Resource |
| | | private JinhuiInterspaceApplyForService applyForService; |
| | | |
| | | /** |
| | | * 金汇空间预约模块分页查询 |
| | |
| | | } |
| | | |
| | | |
| | | /*************************************************************************************************************** |
| | | * |
| | | * |
| | | * 空间预约申请 |
| | | * |
| | | * |
| | | **************************************************************************************************************/ |
| | | /** |
| | | * 空间预约申请分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping("/applyFor/getList") |
| | | public R applyForGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "intendantType",required = false) String intendantType, |
| | | @RequestParam(value = "state",required = false) String state) |
| | | { |
| | | return applyForService.getList(pageNum,pageSize,intendantType,state); |
| | | } |
| | | |
| | | /** |
| | | * 空间预约申请详情 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping("/applyFor/getDetails") |
| | | public R applyForGetDetails(@RequestParam("id") String id) |
| | | { |
| | | return R.ok(applyForService.getDetails(id)); |
| | | } |
| | | |
| | | /** |
| | | * 空间预约申请新增 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/applyFor/addData") |
| | | public R applyForAddData(@RequestBody JinhuiInterspaceApplyForVO item) |
| | | { |
| | | return applyForService.addData(item); |
| | | } |
| | | |
| | | /** |
| | | * 空间预约申请编辑 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/applyFor/editData") |
| | | public R applyForEditData(@RequestBody JinhuiInterspaceApplyForVO item) |
| | | { |
| | | return applyForService.editData(item); |
| | | } |
| | | |
| | | /** |
| | | * 空间预约申请删除 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/applyFor/expurgateData") |
| | | public R applyForExpurgateData(@RequestParam("id") String id) |
| | | { |
| | | return applyForService.expurgateData(id); |
| | | } |
| | | |
| | | |
| | | |