feat(store): dual business hours, avg price, and status lock
CI / verify (pull_request) Has been cancelled
CI / verify (pull_request) Has been cancelled
Support 1-2 hour segments and optional avgPrice; show bank settlement on HQ store detail; enforce pickup min 2 bottles; Chinese order statuses; block shop reopen after permanent close. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -94,6 +94,27 @@ export class CreateStoreDto {
|
||||
@IsNumber()
|
||||
@Min(0)
|
||||
settlementRate?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
openTime?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
closeTime?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
openTime2?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
closeTime2?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
@Min(0)
|
||||
avgPrice?: number;
|
||||
}
|
||||
|
||||
export class UpdateStoreDto {
|
||||
@@ -125,6 +146,27 @@ export class UpdateStoreDto {
|
||||
@IsNumber()
|
||||
@Min(0)
|
||||
settlementRate?: number;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
openTime?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
closeTime?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
openTime2?: string | null;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
closeTime2?: string | null;
|
||||
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
@Min(0)
|
||||
avgPrice?: number | null;
|
||||
}
|
||||
|
||||
export class CreateStoreAccountDto {
|
||||
|
||||
Reference in New Issue
Block a user