import { HTTPBody } from '@fastify-modular/route'; import { pito } from 'pito'; import { NeedLogin } from '../defines'; // ========================================================================== export const CreateProductMatchBySellerParam = pito.Obj({ prodId: pito.Num(), }); export type CreateProductMatchBySellerParam = pito.Type; // ========================================================================== export const CreateProductMatchBySellerInput = pito.Obj({}); export type CreateProductMatchBySellerInput = pito.Type; // ========================================================================== export const CreateProductMatchBySellerOption = pito.Obj({}); export type CreateProductMatchBySellerOption = pito.Type; // ========================================================================== export const CreateProductMatchBySellerOutput = pito.Obj({}); export type CreateProductMatchBySellerOutput = pito.Type; // ========================================================================== export const CreateProductMatchBySeller = HTTPBody('POST', '/api/v1/product/product-match/seller/:prodId', 'product') .params(CreateProductMatchBySellerParam) .body(CreateProductMatchBySellerInput) .query(CreateProductMatchBySellerOption) .response(CreateProductMatchBySellerOutput) .presets(NeedLogin) .build(); // ==========================================================================