mirror of
https://gitlab.com/mobicoop/v3/service/ad.git
synced 2026-01-03 08:22:41 +00:00
adding migration and update proto
This commit is contained in:
@@ -54,21 +54,15 @@ message Address {
|
||||
int32 position =1;
|
||||
float lon = 2;
|
||||
float lat = 3;
|
||||
string houseNumber = 4;
|
||||
string street = 5;
|
||||
string locality = 6;
|
||||
string postalCode = 7;
|
||||
string country = 8;
|
||||
AddressType type = 9;
|
||||
optional string name =4;
|
||||
optional string houseNumber = 5;
|
||||
optional string street = 6;
|
||||
optional string locality = 7;
|
||||
optional string postalCode = 8;
|
||||
optional string country = 9;
|
||||
optional string countryCode = 10;
|
||||
}
|
||||
|
||||
enum AddressType {
|
||||
HOUSE_NUMBER = 1;
|
||||
STREET_ADDRESS = 2;
|
||||
LOCALITY = 3;
|
||||
VENUE = 4;
|
||||
OTHER = 5;
|
||||
}
|
||||
|
||||
enum Frequency {
|
||||
PUNCTUAL = 1;
|
||||
|
||||
@@ -5,16 +5,13 @@ import {
|
||||
IsBoolean,
|
||||
IsDate,
|
||||
IsInt,
|
||||
ValidateIf,
|
||||
IsEnum,
|
||||
IsNumber,
|
||||
ValidateNested,
|
||||
IsLongitude,
|
||||
IsLatitude,
|
||||
} from 'class-validator';
|
||||
import { Frequency } from '../entities/frequency.enum';
|
||||
import { Transform, Type } from 'class-transformer';
|
||||
import { AddressType } from '../entities/address.enum';
|
||||
|
||||
export class CreateAdRequest {
|
||||
@IsString()
|
||||
|
||||
Reference in New Issue
Block a user