Merge branch 'main' of https://gitea.o2o.kr/Negosium/o2o-negosium
This commit is contained in:
commit
f924c0aa59
131 files changed
+5069
-5587
No files matched your search
@@ -61,8 +61,8 @@ class users(MainTableMixin, MAIN_BASE):
|
||||
email = Column(String(255), nullable=True)
|
||||
contact_number = Column(String(20), nullable=True)
|
||||
last_accessed_at = Column(DateTime, nullable=False, server_default=_utc_now_sql())
|
||||
status = Column(SmallInteger, nullable=False, default=UserStatus.ACTIVE.value) # UserStatus
|
||||
role = Column(SmallInteger, nullable=False, default=UserRole.USER.value) # UserRole
|
||||
status = Column(SmallInteger, nullable=False, default=UserStatus.ACTIVE.value)
|
||||
role = Column(SmallInteger, nullable=False, default=UserRole.USER.value)
|
||||
|
||||
|
||||
class items(MainTableMixin, MAIN_BASE):
|
||||
|
||||
@@ -53,6 +53,11 @@ class ErrorType(Enum):
|
||||
# 협상카드 관련 에러
|
||||
CARD_NOT_FOUND = 1700
|
||||
|
||||
# 이미지 업로드 관련 에러
|
||||
IMAGE_INVALID_TYPE = 1800
|
||||
IMAGE_TOO_LARGE = auto()
|
||||
IMAGE_UPLOAD_FAILED = auto()
|
||||
|
||||
|
||||
# ErrorType 의 HTTP_* 값과 status_code 를 맞춰 router 단에서 raise 한다.
|
||||
EXCEPTION_INVALID_CLIENT_REQUEST = HTTPException(status_code=ErrorType.HTTP_INVALID_CLIENT_REQUEST.value, detail=ErrorType.HTTP_INVALID_CLIENT_REQUEST.name)
|
||||
@@ -110,25 +115,27 @@ class QuotationType(Enum):
|
||||
class QuotationStatus(Enum):
|
||||
"""quotations.status 코드값(SMALLINT). 프론트 견적상태 뱃지와 매핑된다."""
|
||||
|
||||
CREATED = 1 # 견적생성
|
||||
ACTIVE = 2 # 견적진행중
|
||||
CLOSED = 3 # 견적마감
|
||||
ON_HOLD = 4 # 협상보류
|
||||
CREATED = 1
|
||||
ACTIVE = 2
|
||||
CLOSED = 3
|
||||
ON_HOLD = 4
|
||||
|
||||
|
||||
class SessionStatus(Enum):
|
||||
"""negotiation.sessions.status 코드값. 협력사별 협상 세션 진행 상태."""
|
||||
|
||||
NEGOTIATING = 1 # 협상중
|
||||
COMPLETED = 2 # 협상종료
|
||||
REJECTED = 3 # 협상거부
|
||||
CREATED = 1
|
||||
IN_PROGRESS = 2
|
||||
DONE = 3
|
||||
NOT_PARTICIPATED = 4
|
||||
REJECTED = 5
|
||||
|
||||
|
||||
class ChatSender(Enum):
|
||||
"""negotiation.chats.sender 코드값. 채팅 발신 주체."""
|
||||
|
||||
BOT = 1 # 구매대행 봇
|
||||
PARTNER = 2 # 협력사
|
||||
BOT = 1
|
||||
USER = 2
|
||||
|
||||
|
||||
class DeliveryType(Enum):
|
||||
@@ -160,11 +167,13 @@ ENUM_LABELS = {
|
||||
QuotationStatus.ACTIVE: "견적진행중",
|
||||
QuotationStatus.CLOSED: "견적마감",
|
||||
QuotationStatus.ON_HOLD: "협상보류",
|
||||
SessionStatus.NEGOTIATING: "협상중",
|
||||
SessionStatus.COMPLETED: "협상종료",
|
||||
SessionStatus.CREATED: "협상생성",
|
||||
SessionStatus.IN_PROGRESS: "협상중",
|
||||
SessionStatus.DONE: "협상완료",
|
||||
SessionStatus.NOT_PARTICIPATED: "미참여",
|
||||
SessionStatus.REJECTED: "협상거부",
|
||||
ChatSender.BOT: "봇",
|
||||
ChatSender.PARTNER: "협력사",
|
||||
ChatSender.USER: "협력사",
|
||||
DeliveryType.PARTNER: "협력사배송",
|
||||
DeliveryType.COURIER: "지정택배배송",
|
||||
DeliveryType.PICKUP: "픽업배송",
|
||||
|
||||
Reference in new issue
Block a user