package com.hzs.system.config.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.system.config.BdMenuDetail;
import com.hzs.system.config.service.IBdMenuDetailService;
import com.hzs.system.sys.IMenuDetailServiceApi;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class IMenuDetailServiceProvider implements IMenuDetailServiceApi {

    @Autowired
    private IBdMenuDetailService iBdMenuDetailService;

    /**
     * 查询会员显示菜单
     *
     * @param pkGrade    等级ID
     * @param pkAwards   奖衔ID
     * @param authority  注册权限
     * @param pkCountry  国家ID
     * @return
     */
    @Override
    public R<List<BdMenuDetail>> showMenuDetail(Integer pkGrade, Integer pkAwards, Integer authority, Integer pkCountry) {
        return R.ok(iBdMenuDetailService.showMenuDetail(pkGrade, pkAwards, authority, pkCountry));
    }

}
