[api] swagger 셋팅중

- 로그인 추가
This commit is contained in:
2026-02-25 17:11:17 +09:00
parent b1d4b6a60e
commit 41b7eba619
20 changed files with 547 additions and 72 deletions
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.alist.api.modules.auth.mapper.TestAuthMapper">
<update id="updateRefreshToken">
/*TestLoginMapper.selectTestLogin*/
update test_user_token
set refresh_token = #{refreshToken}
, expires_at = #{expiresAt}
, updated_at = now()
where user_token_idx = #{userTokenIdx}
</update>
<select id="selectTestLogin" resultType="com.alist.api.modules.auth.vo.TestLoginVo">
/*TestLoginMapper.selectTestLogin*/
select user_idx
, id
, password
from test_user
where id = #{id}
and del_yn = 1
</select>
<select id="selectTestUserTokenByUserId" resultType="com.alist.api.modules.auth.vo.TestLoginTokenVo">
/*TestLoginMapper.selectUserTokenByUserId*/
select user_token_idx
, user_role
, refresh_token
from test_user_token
where user_idx = #{userIdx}
</select>
<select id="selectTestUserTokenByUserApiKey" resultType="com.alist.api.modules.auth.vo.TestLoginTokenVo">
/*TestLoginMapper.selectTestUserTokenByUserApiKey*/
select user_token_idx
, user_role
, refresh_token
from test_user_token
where user_api_key = #{userApiKey}
</select>
</mapper>