internal 0.1.62__py3-none-any.whl → 0.1.63__py3-none-any.whl

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.

Potentially problematic release.


This version of internal might be problematic. Click here for more details.

internal/base_factory.py CHANGED
@@ -1,4 +1,3 @@
1
- # -*- coding: UTF-8 -*-
2
1
  import logging
3
2
  import logging.handlers
4
3
  import os
@@ -9,7 +8,7 @@ from functools import lru_cache
9
8
  import dotenv
10
9
  import watchtower
11
10
  from beanie import init_beanie
12
- from fastapi import FastAPI, status, Request, HTTPException
11
+ from fastapi import FastAPI, status, Request
13
12
  from fastapi.exceptions import RequestValidationError
14
13
  from fastapi.middleware.cors import CORSMiddleware
15
14
 
internal/model/operate.py CHANGED
@@ -1,3 +1,5 @@
1
+ from enum import Enum
2
+
1
3
  import dictdiffer
2
4
  from typing import Optional
3
5
 
@@ -43,3 +45,9 @@ class Operate(BaseModel):
43
45
  @classmethod
44
46
  async def remove_ignore_field(cls, model_dict: dict):
45
47
  return {k: v for k, v in model_dict.items() if k not in ['create_time', 'update_time']}
48
+
49
+
50
+ class OperatorTypeEnum(str, Enum):
51
+ SYSTEM = "SYSTEM"
52
+ USER = "USER"
53
+ CUSTOMER = "CUSTOMER"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 0.1.62
3
+ Version: 0.1.63
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -1,6 +1,6 @@
1
1
  internal/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  internal/base_config.py,sha256=M2HMhJAerOHppSqy1O2J0tGrC5cTGmouf3Cyu0YfIXo,1020
3
- internal/base_factory.py,sha256=vgJogtay7GHUqPdGFm9iGRUEvRCncl4KskweviZTk58,6434
3
+ internal/base_factory.py,sha256=L5e_WT7OClyP7Jpr8IpgmTPSeEBB97WGTGONdTZhsxI,6395
4
4
  internal/const.py,sha256=U1S9r7bjtHgad2oYQoHO19s8D4V0WDUG-L-haV4UaIw,1025
5
5
  internal/database.py,sha256=MyRLlb0W8FB8Odq0UQpN3R7OD3yUPWgJXsZRuDWQC_w,1010
6
6
  internal/exception/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -17,8 +17,8 @@ internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
17
17
  internal/interface/base_interface.py,sha256=R5MmO5oa5-ORPV_adkegLVCwsVio2zFOuQFGiby3khs,340
18
18
  internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  internal/model/base_model.py,sha256=gNbixWuGiK8Tbe78wHuLneZ8p3fwMwQRKurBDrGoh6s,1874
20
- internal/model/operate.py,sha256=3mOs7eQ2CPnCB6i6UQBOp8VdTPmVnayaUFqUEDOKoTY,1493
20
+ internal/model/operate.py,sha256=Yuq7oyM2xmBy_X9021SgrpnpYQW6D_bgydI9PRFuQVQ,1619
21
21
  internal/utils.py,sha256=0SubS0iUhDvjSX1F4TykasA5-enYJzt2VH-f7_0BnjI,1509
22
- internal-0.1.62.dist-info/METADATA,sha256=LtxMw90joBrnwbk6sAqXGaMM8oJIU3K700JBDn4WvNU,625
23
- internal-0.1.62.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
24
- internal-0.1.62.dist-info/RECORD,,
22
+ internal-0.1.63.dist-info/METADATA,sha256=2gh8dhzxS1PLxnTd1lDIGtzVhWe1R1UbHdJo7XwVZBk,625
23
+ internal-0.1.63.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
24
+ internal-0.1.63.dist-info/RECORD,,