feat(assoc): v4.0.1 合伙人关联码、分佣账单与 H5 用户管理

订单佣金只认关联用户;合伙人备注写入独立表;H5 增加用户管理与首页统计。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 14:35:39 +08:00
parent 3b669f7e38
commit 9c8d5f2cad
125 changed files with 6355 additions and 1436 deletions
@@ -0,0 +1,52 @@
import { Type } from 'class-transformer';
import {
ArrayMaxSize,
IsArray,
IsInt,
IsNotEmpty,
IsOptional,
IsString,
Max,
MaxLength,
Min,
} from 'class-validator';
import {
STORE_RATING_MAX_COMMENT,
STORE_RATING_MAX_IMAGES,
type SubmitStoreRatingRequest,
} from '@dukang/shared-types';
export class SubmitStoreRatingDto implements SubmitStoreRatingRequest {
@IsString()
@IsNotEmpty()
redeemRecordId: string;
@Type(() => Number)
@IsInt()
@Min(1)
@Max(5)
serviceScore: number;
@Type(() => Number)
@IsInt()
@Min(1)
@Max(5)
envScore: number;
@IsOptional()
@IsString()
@MaxLength(STORE_RATING_MAX_COMMENT)
comment?: string;
@IsOptional()
@IsArray()
@ArrayMaxSize(8)
@IsString({ each: true })
tags?: string[];
@IsOptional()
@IsArray()
@ArrayMaxSize(STORE_RATING_MAX_IMAGES)
@IsString({ each: true })
imageUrls?: string[];
}