| | |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Mapper |
| | |
| | | int insertOperate(Map<String, Object> map); |
| | | |
| | | @Select("select * from lf.sys_user where id = (select create_user from lf.sys_token where token=#{token} and expire > now() limit 1)") |
| | | public UserPo selectByToken(String token); |
| | | UserPo selectByToken(String token); |
| | | |
| | | @Select("select a.* from lf.sys_token a where token = #{token} and expire > now() limit 1") |
| | | public TokenPo selectOneByToken(String token); |
| | | TokenPo selectOneByToken(String token); |
| | | |
| | | @Select("") |
| | | List<String> selectIpList(Integer type); |
| | | |
| | | @Select("") |
| | | List<String> selectPerms(String type); |
| | | } |