| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- package com.template.api;
- import com.template.model.dto.*;
- import com.template.model.result.CommonResult;
- import io.swagger.annotations.ApiOperation;
- import org.springframework.validation.BindingResult;
- import org.springframework.validation.annotation.Validated;
- import org.springframework.web.bind.annotation.*;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- @RequestMapping("/auto/house-order")
- public interface HouseOrderAPI {
- @GetMapping("/houseOrderPrice")
- @ApiOperation(value = "订单金额", notes = "订单金额", httpMethod = "GET")
- CommonResult getHouseOrderPrice(int houseOrderNumber, String userId, String houseId, String liveTime, String leaveTime);
- @PostMapping("/establishOrder")
- @ApiOperation(value = "小程序——创建订单", notes = "小程序——创建订单", httpMethod = "POST")
- CommonResult establishOrder(@RequestBody EstablishOrderDto establishOrderDto);
- @GetMapping("/pay")
- @ApiOperation(value = "订单支付", notes = "订单支付", httpMethod = "GET")
- CommonResult payOrder(String houseOrderId,String openId);
- @GetMapping("/checkIn")
- @ApiOperation(value = "移动端入住", notes = "移动端入住", httpMethod = "GET")
- CommonResult checkIn(String houseOrderId, String userId);
- @GetMapping("/pageList")
- @ApiOperation(value = "订单管理-订单页面展示", notes = "订单管理-订单页面展示", httpMethod = "GET")
- CommonResult pageList(int adminId, int page, int size, String keyWord, String houseType, String orderStatus, String payPriceStartTime, String payPriceEndTime, String refundStartTime, String refundEndTime, String cancelStartTime, String cancelEndTime, String liveStartTime, String liveEndTime, String leaveStartTime, String leaveEndTime,String houseId,Integer keyType,Integer giveBack,Integer buildingId);
- @PostMapping("/cancel")
- @ApiOperation(value = "订单管理-订单取消", notes = "订单管理-订单取消", httpMethod = "POST")
- CommonResult cancel(@RequestBody CancelDto cancelDto);
- @GetMapping("/particulars")
- @ApiOperation(value = "订单管理-订单详情", notes = "订单管理-订单详情", httpMethod = "GET")
- CommonResult particulars(String orderNumber, int adminId);
- @PostMapping("/checkIdCard")
- @ApiOperation(value = "订单管理-入住", notes = "订单管理-入住", httpMethod = "POST")
- CommonResult checkIdCard(@RequestBody CheckIdCardDto checkIdCardDto);
- @PostMapping("/checkOut")
- @ApiOperation(value = "订单管理-退房", notes = "订单管理-退房", httpMethod = "POST")
- CommonResult checkOut(@RequestBody CheckOutDto checkOutDto);
- @PostMapping("/roomChange")
- @ApiOperation(value = "订单管理-换房", notes = "订单管理-换房", httpMethod = "POST")
- CommonResult roomChange(@RequestBody RoomChangeDto roomChangeDto);
- @GetMapping("/queryExport")
- @ApiOperation(value = "订单管理-订单导出", notes = "订单管理-订单导出", httpMethod = "GET")
- void queryExport(HttpServletResponse response, int adminId, String keyWord, String houseType, String orderStatus, String payPriceStartTime, String payPriceEndTime, String refundStartTime, String refundEndTime, String cancelStartTime, String cancelEndTime, String liveStartTime, String liveEndTime, String leaveStartTime, String leaveEndTime,String houseId,Integer keyType,Integer giveBack,Integer buildingId);
- @GetMapping("/reportStatistics")
- @ApiOperation(value = "统计报表", notes = "统计报表", httpMethod = "GET")
- CommonResult reportStatistics(String permissionSettingId, String state, String keyWord, String startTime, String endTime, int page, int size);
- @GetMapping("/reportStatisticsExport")
- @ApiOperation(value = "统计报表导出", notes = "统计报表导出", httpMethod = "GET")
- void reportStatisticsExport(HttpServletResponse response,String permissionSettingId, String state, String keyWord, String startTime, String endTime);
- @GetMapping("/orderPage")
- @ApiOperation(value = "小程序——订单页面展示", notes = "小程序——订单页面展示", httpMethod = "GET")
- CommonResult orderPage(String userId, int page, int size, String status);
- @GetMapping("/getHouseOrder")
- @ApiOperation(value = "小程序——订单详情", notes = "小程序——订单详情", httpMethod = "GET")
- CommonResult getHouseOrder(@RequestParam String houseOrderId);
- //小程序H5支付
- @PostMapping(value = "/pay")
- @ApiOperation(value = "H5——微信支付", notes = "小程序——微信支付", httpMethod = "POST")
- CommonResult pay(@Validated @RequestBody WxPayDto wpd, BindingResult bindingResult,HttpServletRequest request) throws Exception;
- //微信支付订单号查询订单
- @PostMapping(value = "/queryOrderById")
- @ApiOperation(value = "订单号查询订单", notes = "小程序——微信支付", httpMethod = "POST")
- CommonResult queryOrderById(@RequestParam String outTradeNo) throws Exception;
- //微信支付订单号查询订单
- @PostMapping(value = "/closeOrder")
- @ApiOperation(value = "关闭订单", notes = "小程序——微信支付", httpMethod = "POST")
- CommonResult closeOrder(@RequestParam String outTradeNo) throws Exception;
- @PostMapping(value = "/returnPay")
- @ApiOperation(value = "H5——微信支付回调", notes = "小程序——微信支付回调", httpMethod = "POST")
- void returnPay(HttpServletRequest request, HttpServletResponse response) throws Exception;
- // 小程序退房
- @PostMapping("/checkOutApplet")
- @ApiOperation(value = "小程序-退房", notes = "小程序-退房", httpMethod = "POST")
- CommonResult checkOutApplet(@RequestBody CheckOutAppletDto checkOutAppletDto);
- // 取消
- @PostMapping("/cancelApplet")
- @ApiOperation(value = "小程序-订单取消", notes = "小程序-订单取消", httpMethod = "POST")
- CommonResult cancelApplet(@RequestBody CancelAppletDto cancelAppletDto,HttpServletRequest request);
- @PostMapping(value = "/returnRefund")
- @ApiOperation(value = "H5——微信退款回调", notes = "小程序——微信退款回调", httpMethod = "POST")
- void returnRefund(HttpServletRequest request, HttpServletResponse response) throws Exception;
- @PostMapping("/payOrderPrice")
- @ApiOperation(value = "管理端——支付", notes = "管理端——支付", httpMethod = "POST")
- CommonResult payOrderPrice(@RequestBody HouseOrderPriceDto houseOrderPriceDto);
- @PostMapping("/queryRefundById")
- @ApiOperation(value = "查询退款", notes = "管理端——支付", httpMethod = "POST")
- CommonResult queryRefundById(@RequestParam String refundNo);
- @GetMapping("/appletReserveHour")
- @ApiOperation(value = "小程序-钟点房当天占用状态", notes = "小程序-钟点房当天占用状态", httpMethod = "GET")
- CommonResult appletReserveHour(String houseNumberId, String startTime, Integer liveTime);
- //微信支付订单号查询订单
- @PostMapping(value = "/getPayOpenId")
- @ApiOperation(value = "获取支付人openid", notes = "获取支付人openid", httpMethod = "POST")
- CommonResult getPayOpenId(@RequestParam String wxcode) throws Exception;
- @GetMapping("/ifGiveBack")
- @ApiOperation(value = "是否归还钥匙房卡", notes = "小程序-钟点房当天占用状态", httpMethod = "GET")
- CommonResult ifGiveBack(@RequestParam String houseOrderId,@RequestParam Integer giveBack);
- @GetMapping("/saveRemark")
- @ApiOperation(value = "备注", notes = "备注", httpMethod = "GET")
- CommonResult saveRemark(@RequestParam Integer houseOrderId,@RequestParam String remark);
- }
|