New file |
| | |
| | | package com.example.erp.service.userInfo; |
| | | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.example.erp.entity.userInfo.SysMenu; |
| | | import com.example.erp.mapper.userInfo.SysMenuMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | @DS("user_info") |
| | | public class SysMenuService { |
| | | @Autowired |
| | | private SysMenuMapper sysMenuMapper; |
| | | |
| | | public List<SysMenu> getMenu(String lang){ |
| | | |
| | | return sysMenuMapper.findAll(lang); |
| | | } |
| | | } |