Compare commits
2 Commits
043d45862c
...
develop/fr
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c1b71fca64 | ||
![]() |
08642a2bf6 |
@@ -1146,46 +1146,47 @@ model EventReview {
|
|||||||
|
|
||||||
// NOTE: need to consider with Event
|
// NOTE: need to consider with Event
|
||||||
// mapped to IEventItem
|
// mapped to IEventItem
|
||||||
|
// a.k.a. PartyEvent party-event
|
||||||
model EventItem {
|
model EventItem {
|
||||||
id String @id @default(uuid())
|
id String @id @default(uuid())
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
updatedAt DateTime @updatedAt
|
updatedAt DateTime @updatedAt
|
||||||
//
|
//
|
||||||
sku String
|
|
||||||
name String
|
|
||||||
code String
|
|
||||||
price Float
|
|
||||||
taxes Float
|
|
||||||
tags String[]
|
|
||||||
sizes String[]
|
|
||||||
publish String
|
|
||||||
gender String[]
|
|
||||||
coverUrl String
|
|
||||||
images String[]
|
|
||||||
colors String[]
|
|
||||||
quantity Int
|
|
||||||
category String
|
|
||||||
available Int
|
available Int
|
||||||
totalSold Int
|
category String
|
||||||
|
code String
|
||||||
|
colors String[]
|
||||||
|
coverUrl String
|
||||||
description String
|
description String
|
||||||
|
gender String[]
|
||||||
|
images String[]
|
||||||
|
inventoryType String
|
||||||
|
name String
|
||||||
|
newLabel Json
|
||||||
|
price Float
|
||||||
|
priceSale Float?
|
||||||
|
publish String
|
||||||
|
quantity Int
|
||||||
|
ratings Json[]
|
||||||
|
saleLabel Json
|
||||||
|
sizes String[]
|
||||||
|
sku String
|
||||||
|
subDescription String
|
||||||
|
tags String[]
|
||||||
|
taxes Float
|
||||||
totalRatings Float
|
totalRatings Float
|
||||||
totalReviews Int
|
totalReviews Int
|
||||||
inventoryType String
|
totalSold Int
|
||||||
subDescription String
|
|
||||||
priceSale Float?
|
|
||||||
newLabel Json
|
|
||||||
saleLabel Json
|
|
||||||
ratings Json[]
|
|
||||||
//
|
//
|
||||||
eventDate DateTime @default(now())
|
|
||||||
joinMembers Json[]
|
|
||||||
title String
|
|
||||||
currency String
|
|
||||||
duration_m Float
|
|
||||||
ageBottom Float
|
ageBottom Float
|
||||||
ageTop Float
|
ageTop Float
|
||||||
location String
|
|
||||||
avatar String[]
|
avatar String[]
|
||||||
|
currency String
|
||||||
|
duration_m Float
|
||||||
|
eventDate DateTime @default(now())
|
||||||
|
joinMembers Json[]
|
||||||
|
location String
|
||||||
|
title String
|
||||||
//
|
//
|
||||||
reviews EventReview[]
|
reviews EventReview[]
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,16 @@
|
|||||||
|
import type { NextRequest, NextResponse } from 'next/server';
|
||||||
|
|
||||||
|
import { STATUS, response, handleError } from 'src/utils/response';
|
||||||
|
|
||||||
|
/**
|
||||||
|
***************************************
|
||||||
|
* GET - helloworld
|
||||||
|
***************************************
|
||||||
|
*/
|
||||||
|
export async function GET(req: NextRequest, res: NextResponse) {
|
||||||
|
try {
|
||||||
|
return response({ helloworld: 'product' }, STATUS.OK);
|
||||||
|
} catch (error) {
|
||||||
|
return handleError('Helloworld - Get all', error);
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,4 @@
|
|||||||
|
###
|
||||||
|
GET /api/product/helloworld HTTP/1.1
|
||||||
|
Host: localhost:7272
|
||||||
|
|
Reference in New Issue
Block a user