import { HTTPBody } from '@fastify-modular/route'; import { pito } from 'pito'; import { NeedLogin } from '../defines'; // ========================================================================== export const UpdateProductMatchBySellerParam = pito.Obj({ prodId: pito.Num(), }); export type UpdateProductMatchBySellerParam = pito.Type; // ========================================================================== export const UpdateProductMatchBySellerInput = pito.Obj({}); export type UpdateProductMatchBySellerInput = pito.Type; // ========================================================================== export const UpdateProductMatchBySellerOption = pito.Obj({}); export type UpdateProductMatchBySellerOption = pito.Type; // ========================================================================== export const UpdateProductMatchBySellerOutput = pito.Obj({}); export type UpdateProductMatchBySellerOutput = pito.Type; // ========================================================================== export const UpdateProductMatchBySeller = HTTPBody('PATCH', '/api/v1/product/product-match/seller/:prodId', 'product') .params(UpdateProductMatchBySellerParam) .body(UpdateProductMatchBySellerInput) .query(UpdateProductMatchBySellerOption) .response(UpdateProductMatchBySellerOutput) .presets(NeedLogin) .build(); // ==========================================================================