xiaozhi-esp32-server/main/feedback-backend/app/domain/store/value_objects.py
kobe fae932d022 feat: add CRM feedback system and test environment
- add feedback backend, H5/admin UI, CRM services, and deployment docs
- add isolated local test compose on port 18007 with separate data paths
- remove committed LLM secret and support provider-specific env overrides

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-28 16:46:32 +08:00

26 lines
651 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""门店值对象"""
from dataclasses import dataclass
from typing import Optional
@dataclass(frozen=True)
class StoreCode:
"""门店编码值对象 - 6位数字,不可变"""
value: str
def __post_init__(self):
if not self.value or not self.value.isdigit() or len(self.value) != 6:
raise ValueError(f"门店编码必须为6位数字,当前值: {self.value}")
def __str__(self) -> str:
return self.value
@dataclass(frozen=True)
class StoreInfo:
"""门店基本信息值对象"""
store_code: str
store_name: str
manager: Optional[str] = None
shareholders: Optional[str] = None