package cn.pluss.platform.controller;

import cn.pluss.platform.api.Result;
import cn.pluss.platform.user.UserLevelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *
 *用户等级APP接口
 *@author: bzg
 *@time: 2022/1/25 14:49
 */
@RestController
@Slf4j
@RequestMapping("/user")
@Api(value = "UserLevel控制类", tags = {"UserLevel接口"})
public class UserLevelController {


    @Resource
    private UserLevelService userLevelService;

    /**
     * 获取用户等级配置
     * @date: 2022/1/25 14:51
     * @return cn.pluss.platform.api.Result<java.lang.Object>
     */
    @GetMapping("/level/get")
    @ApiOperation(value = "用户等级配置", notes = "用户等级配置", httpMethod = "GET")
    public Result<Object> levelGet() {
        return userLevelService.getAppLevelInfo();
    }
}
