rainycode 1.0.2__tar.gz → 1.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rainycode-1.0.2 → rainycode-1.0.4}/PKG-INFO +1 -1
- {rainycode-1.0.2 → rainycode-1.0.4}/common_servers/api/auth_api.py +2 -2
- {rainycode-1.0.2 → rainycode-1.0.4}/common_servers/service/auth_svc.py +2 -2
- {rainycode-1.0.2 → rainycode-1.0.4}/common_servers/service/wechat_svc.py +2 -2
- {rainycode-1.0.2 → rainycode-1.0.4}/common_servers/strategies/password_strategy.py +2 -2
- {rainycode-1.0.2 → rainycode-1.0.4}/common_servers/strategies/wechat_stragegy.py +1 -1
- {rainycode-1.0.2 → rainycode-1.0.4}/common_utlis/wechat_util.py +3 -3
- {rainycode-1.0.2 → rainycode-1.0.4}/pyproject.toml +1 -1
- {rainycode-1.0.2 → rainycode-1.0.4}/rainycode.egg-info/PKG-INFO +1 -1
- {rainycode-1.0.2 → rainycode-1.0.4}/common_base/aiorequests.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_base/consts.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_base/exception.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_base/logging.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_base/response.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_depends/auth_depend.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_models/base_model.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_models/user_model.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_models/wechat_model.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_servers/api/wechat_api.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_servers/router.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_servers/schemas/__init__.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_servers/schemas/auth_schema.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_servers/strategies/base_strategy.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_utlis/bcrypt_util.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_utlis/captcha_util.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_utlis/ip_util.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_utlis/jwt_util.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/common_utlis/snowflake_util.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/core/base_config.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/core/databases/aiodb.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/core/databases/aioredis.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/core/middleware/http_middleware.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/core/start.py +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/rainycode.egg-info/SOURCES.txt +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/rainycode.egg-info/dependency_links.txt +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/rainycode.egg-info/requires.txt +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/rainycode.egg-info/top_level.txt +0 -0
- {rainycode-1.0.2 → rainycode-1.0.4}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from common_models.user_model import User
|
|
2
2
|
from fastapi import APIRouter, Security, Body, Depends
|
|
3
|
-
from
|
|
4
|
-
from
|
|
3
|
+
from common_base.response import SuccessReturn
|
|
4
|
+
from common_depends.auth_depend import login_require, oauth2_scheme
|
|
5
5
|
from common_servers.schemas.auth_schema import *
|
|
6
6
|
from common_servers.service.auth_svc import AuthService
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from datetime import datetime, timedelta
|
|
2
2
|
import uuid
|
|
3
|
-
from
|
|
4
|
-
from
|
|
3
|
+
from common_base.consts import REDIS_PREFIX_BLOCKLIST, REDIS_PREFIX_REFRESH_TOKEN
|
|
4
|
+
from common_base.exception import CustomException
|
|
5
5
|
from common_models.user_model import User
|
|
6
6
|
from common_utlis.bcrypt_util import PwdUtil
|
|
7
7
|
from common_utlis.jwt_util import JwtUtil
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import time
|
|
2
2
|
import hashlib
|
|
3
3
|
import xml.etree.ElementTree as ET
|
|
4
|
-
from
|
|
5
|
-
from
|
|
4
|
+
from common_base.exception import CustomException
|
|
5
|
+
from common_base.logging import logger
|
|
6
6
|
from common_models.wechat_model import WechatApp
|
|
7
7
|
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
2
|
|
|
3
|
-
from
|
|
3
|
+
from common_base.consts import REDIS_PREFIX_USER_INFO
|
|
4
4
|
from core.databases.aioredis import AioRedis
|
|
5
5
|
from common_models.user_model import User
|
|
6
6
|
from common_utlis.bcrypt_util import PwdUtil
|
|
7
|
-
from
|
|
7
|
+
from common_base.exception import CustomException
|
|
8
8
|
from common_servers.schemas.auth_schema import UserLogin
|
|
9
9
|
from common_servers.strategies.base_strategy import IAuthStrategy
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@ from common_models.user_model import User
|
|
|
3
3
|
from common_models.wechat_model import WechatApp, WechatUser, AppTypeEnum
|
|
4
4
|
from common_servers.schemas.auth_schema import WechatLogin
|
|
5
5
|
from common_utlis.wechat_util import WechatUtil
|
|
6
|
-
from
|
|
6
|
+
from common_base.exception import CustomException
|
|
7
7
|
from common_servers.strategies.base_strategy import IAuthStrategy
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
from
|
|
2
|
-
from
|
|
3
|
-
from
|
|
1
|
+
from common_base import aiorequests
|
|
2
|
+
from common_base.exception import CustomException
|
|
3
|
+
from common_base.logging import logger
|
|
4
4
|
from Crypto.Cipher import AES
|
|
5
5
|
import base64
|
|
6
6
|
import json
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|