mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
- 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>
26 lines
651 B
Python
26 lines
651 B
Python
"""门店值对象"""
|
||
|
||
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
|