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

import com.sqx.common.utils.Result;
import com.sqx.modules.app.annotation.Login;
import com.sqx.modules.bl.order.entity.UserPackage;
import com.sqx.modules.bl.order.service.UserPackageService;
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/user/package")
@Api(value = "用户服务包管理", tags = {"用户服务包"})
public class AppUserPackageController {

    @Autowired
    private UserPackageService service;

    @Login
    @GetMapping("/findMyPackageList")
    @ApiOperation("查询服务包")
    public Result findMyPackageList(UserPackage userPackage){
        return service.findMyPackageList(userPackage);
    }

}
