♻️ refactor: add schema to all controllers in internal module

This commit is contained in:
2026-03-08 14:50:54 +07:00
parent 9f47f8f298
commit 595a79de34
8 changed files with 269 additions and 84 deletions

View File

@ -1,11 +1,10 @@
import { Static } from "elysia";
import { SystemAccountId } from "../../../../config/account/system";
import { ErrorForwarder } from "../../../../helpers/error/instances/forwarder";
import { CreateVideoServiceInternalBodyRequest } from "../../controllers/createVideoService.controller";
import { createVideoServiceInternalRepository } from "../../repositories/createVideoService.repository";
import { createVideoServiceInternalSchema } from "../../schemas/createVideoServiceInternal.schema";
export const createVideoServiceInternalService = async (
body: CreateVideoServiceInternalBodyRequest,
) => {
export const createVideoServiceInternalService = async (body: Static<typeof createVideoServiceInternalSchema.body>) => {
try {
return await createVideoServiceInternalRepository({
name: body.name,