import { HTTPBody } from '@fastify-modular/route'; import { pito } from 'pito'; import { NeedLogin } from '../defines'; // ========================================================================== export const DeleteProductMatchBySellerParam = pito.Obj({ prodId: pito.Num(), }); export type DeleteProductMatchBySellerParam = pito.Type; // ========================================================================== export const DeleteProductMatchBySellerInput = pito.Obj({}); export type DeleteProductMatchBySellerInput = pito.Type; // ========================================================================== export const DeleteProductMatchBySellerOption = pito.Obj({}); export type DeleteProductMatchBySellerOption = pito.Type; // ========================================================================== export const DeleteProductMatchBySellerOutput = pito.Obj({}); export type DeleteProductMatchBySellerOutput = pito.Type; // ========================================================================== export const DeleteProductMatchBySeller = HTTPBody('DELETE', '/api/v1/product/product-match/seller/:prodId', 'product') .params(DeleteProductMatchBySellerParam) .body(DeleteProductMatchBySellerInput) .query(DeleteProductMatchBySellerOption) .response(DeleteProductMatchBySellerOutput) .presets(NeedLogin) .build(); // ==========================================================================