[api] swagger 셋팅중
- 로그인 추가
This commit is contained in:
@@ -15,6 +15,9 @@ jwt:
|
||||
access-token-validity-seconds: 3600
|
||||
refresh-token-validity-seconds: 2592000
|
||||
|
||||
cookie:
|
||||
secure: false # 로컬 개발 환경 (HTTP)
|
||||
|
||||
swagger:
|
||||
login:
|
||||
id: alist
|
||||
|
||||
@@ -17,6 +17,9 @@ jwt:
|
||||
access-token-validity-seconds: 3600
|
||||
refresh-token-validity-seconds: 2592000
|
||||
|
||||
cookie:
|
||||
secure: true # 프로젝트 환경 (HTTPS)
|
||||
|
||||
swagger:
|
||||
login:
|
||||
id: ${SWAGGER_ID}
|
||||
|
||||
@@ -16,6 +16,8 @@ mybatis:
|
||||
springdoc:
|
||||
swagger-ui:
|
||||
path: /swagger-ui.html
|
||||
tags-sorter: alpha # 태그 알파벳 순 정렬
|
||||
operations-sorter: alpha # API 알파벳 순 정렬
|
||||
api-docs:
|
||||
path: /v3/api-docs
|
||||
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user