feat(store): separate login phone from public contactPhone

Store.phone stays login/boss; contactPhone is C-end dial. Public store APIs keep phone compat via publicDial mapping.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-09 07:50:40 +08:00
parent a598d1cd30
commit 07630c9046
11 changed files with 265 additions and 67 deletions
@@ -38,6 +38,11 @@ export class CreateStoreDto {
@IsNotEmpty()
phone: string;
/** 对外联系电话(店长);不传则默认与登录手机号相同 */
@IsOptional()
@IsString()
contactPhone?: string;
@IsString()
@IsNotEmpty()
categoryId: string;
@@ -162,6 +167,11 @@ export class UpdateStoreDto {
@IsString()
phone?: string;
/** 对外联系电话(店长) */
@IsOptional()
@IsString()
contactPhone?: string;
@IsOptional()
@IsString()
intro?: string;