All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.rexsheng.springboot.faster.system.auth.domain.MenuDomainService Maven / Gradle / Ivy

The newest version!
package com.github.rexsheng.springboot.faster.system.auth.domain;

import com.github.rexsheng.springboot.faster.common.constant.CommonConstant;
import com.github.rexsheng.springboot.faster.system.menu.application.MenuService;
import com.github.rexsheng.springboot.faster.system.menu.application.dto.MenuDetailResponse;
import com.github.rexsheng.springboot.faster.system.menu.application.dto.QueryMenuRequest;
import jakarta.annotation.Resource;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@ConditionalOnClass({SqlSessionFactoryBean.class})
public class MenuDomainService {

    @Resource
    private MenuService menuService;

    public List queryList(){
        QueryMenuRequest menuRequest=new QueryMenuRequest();
        menuRequest.setStatus(CommonConstant.STATUS_RUNNING);
        List menuList=menuService.queryList(menuRequest);
        return menuList;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy