forked from xiangwang25/whale-town-end-v2
Initial WhaleTown V2 backend
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { IsString, Length, Matches } from 'class-validator';
|
||||
|
||||
export class ResignCafeCompanionEmploymentDto {
|
||||
@IsString({ message: '服务点ID必须是字符串' })
|
||||
@Length(1, 80, { message: '服务点ID长度需在1-80字符之间' })
|
||||
@Matches(/^[A-Za-z0-9_:-]+$/, { message: '服务点ID格式不正确' })
|
||||
service_point_id!: string;
|
||||
}
|
||||
Reference in New Issue
Block a user