package com.sqx.modules.bl.order.controller;

import com.sqx.common.utils.Result;
import com.sqx.modules.bl.order.entity.UserPackageDetail;
import com.sqx.modules.bl.order.service.UserPackageDetailService;
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;

import java.util.List;


@RestController
@RequestMapping("/user/package/detail")
@Api(value = "用户服务包详情管理", tags = {"用户服务包详情"})
public class UserPackageDetailController {

    @Autowired
    private UserPackageDetailService service;

    @GetMapping("/findDetailUsedQuantity")
    @ApiOperation("查询服务包详情使用数量")
    public Result findDetailUsedQuantity(UserPackageDetail userPackageDetail){
        return service.findDetailUsedQuantity(userPackageDetail);
    }

}
