|
|
|
@ -501,6 +501,38 @@ fastify.post("/api/qccheckpumpswitch/:motorId", {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.put("/api/getpumpswitchqc/:storeId", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Store-Data"],
|
|
|
|
|
description: "This is to Get Quality Check Details Of Motor Switch",
|
|
|
|
|
summary: "This is to Get Quality Details Of Motor Switch",
|
|
|
|
|
params: {
|
|
|
|
|
required: ["storeId"],
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
storeId: {
|
|
|
|
|
type: "string",
|
|
|
|
|
description: "storeId",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
body: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
motorId: { type: "string" },
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
security: [
|
|
|
|
|
{
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
// preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
handler: storeController.getpumpswitchqc,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.post("/api/installmotorswitch/:storeId", {
|
|
|
|
|
schema: {
|
|
|
|
|