class-validator#IsLongitude TypeScript Examples
The following examples show how to use
class-validator#IsLongitude.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: create-survey-point.dto.ts From aqualink-app with MIT License | 5 votes |
@ApiProperty({ example: -21.2233 })
@IsOptional()
@IsLongitude()
readonly longitude?: number;
Example #2
Source File: update-survey-point.dto.ts From aqualink-app with MIT License | 5 votes |
@ApiProperty({ example: 94.22121 })
@IsOptional()
@IsLongitude()
readonly longitude?: number;
Example #3
Source File: create-site.dto.ts From aqualink-app with MIT License | 5 votes |
@ApiProperty({ example: 132.51651 })
@IsLongitude()
readonly longitude: number;
Example #4
Source File: update-site.dto.ts From aqualink-app with MIT License | 5 votes |
@ApiProperty({ example: -1.456 })
@IsLongitude()
readonly longitude: number;
Example #5
Source File: place.model.ts From life-helper-backend with MIT License | 5 votes |
/** 经度,浮点数,范围为-180~180,负数表示西经。使用 gcj02 国测局坐标系 */
@IsLongitude()
longitude: number