服务包接口

This commit is contained in:
曹磊 2024-06-12 22:18:30 +08:00
parent 4f60a1a043
commit edbaff936b
3 changed files with 66 additions and 1 deletions

View File

@ -0,0 +1,34 @@
package com.sqx.modules.bl.massage.app;
import com.sqx.common.utils.Result;
import com.sqx.modules.app.annotation.Login;
import com.sqx.modules.bl.massage.entity.MassagePackage;
import com.sqx.modules.bl.massage.service.MassagePackageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.text.SimpleDateFormat;
import java.util.Date;
@RestController
@RequestMapping("/app/massage/package")
@Api(value = "服务包管理", tags = {"服务包管理"})
public class AppMassagePackageController {
@Autowired
private MassagePackageService service;
@Login
@GetMapping("/findPage")
@ApiOperation("查询按服务包(分页)")
public Result findPage(MassagePackage massagePackage){
massagePackage.setStatus(1);
return service.findPage(massagePackage);
}
}

View File

@ -0,0 +1,30 @@
package com.sqx.modules.bl.massage.app;
import com.sqx.common.utils.Result;
import com.sqx.modules.app.annotation.Login;
import com.sqx.modules.bl.massage.entity.MassagePackageDetail;
import com.sqx.modules.bl.massage.service.MassagePackageDetailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/app/massage/packageDetail")
@Api(value = "服务包详情管理", tags = {"服务包详情管理"})
public class AppMassagePackageDetailController {
@Autowired
private MassagePackageDetailService service;
@Login
@GetMapping("/findPage")
@ApiOperation("查询按服务包详情(分页)")
public Result findPage(MassagePackageDetail massagePackageDetail){
massagePackageDetail.setStatus(1);
return service.findPage(massagePackageDetail);
}
}

View File

@ -21,7 +21,7 @@ public class AppUserPackageOrderController {
@Autowired
private UserPackageOrderService service;
// @Login
@Login
@PostMapping("/insertOrders")
@ApiOperation("添加订单")
public Result insertOrders(@RequestBody UserPackageOrder userPackageOrder){
@ -29,6 +29,7 @@ public class AppUserPackageOrderController {
return service.insertOrders(userPackageOrder);
}
@Login
@PostMapping("/payOrder")
@ApiOperation("钱包支付订单")
public Result payOrder(Long ordersId){