Refactor: begin reorganizing services dir.

- Renamed files and directories to reflect the new structure
- Moved comment-related services to the 'comments' directory
- Moved image-related services to the 'images' directory
- Moved like-related services to the 'likes' directory
- Moved post-related services to the 'posts' directory
- Moved user-related services to the 'users' directory
This commit is contained in:
Aaron William Po
2023-12-10 14:11:49 -05:00
parent 830e9dc845
commit fd641c36ab
163 changed files with 177 additions and 177 deletions

View File

@@ -1,13 +1,13 @@
import ServerError from '@/config/util/ServerError';
import DBClient from '@/prisma/DBClient';
import editBeerCommentById from '@/services/BeerComment/editBeerCommentById';
import findBeerCommentById from '@/services/BeerComment/findBeerCommentById';
import editBeerCommentById from '@/services/comments/BeerComment/editBeerCommentById';
import findBeerCommentById from '@/services/comments/BeerComment/findBeerCommentById';
import APIResponseValidationSchema from '@/validation/APIResponseValidationSchema';
import { NextApiResponse } from 'next';
import { NextHandler } from 'next-connect';
import { z } from 'zod';
import createNewBeerComment from '@/services/BeerComment/createNewBeerComment';
import getAllBeerComments from '@/services/BeerComment/getAllBeerComments';
import createNewBeerComment from '@/services/comments/BeerComment/createNewBeerComment';
import getAllBeerComments from '@/services/comments/BeerComment/getAllBeerComments';
import {
CommentRequest,
EditAndCreateCommentRequest,

View File

@@ -1,14 +1,14 @@
import ServerError from '@/config/util/ServerError';
import DBClient from '@/prisma/DBClient';
import updateBeerStyleCommentById from '@/services/BeerStyleComment/updateBeerStyleCommentById';
import updateBeerStyleCommentById from '@/services/comments/BeerStyleComment/updateBeerStyleCommentById';
import APIResponseValidationSchema from '@/validation/APIResponseValidationSchema';
import { NextApiResponse } from 'next';
import { NextHandler } from 'next-connect';
import { z } from 'zod';
import CommentQueryResult from '@/services/schema/CommentSchema/CommentQueryResult';
import createNewBeerStyleComment from '@/services/BeerStyleComment/createNewBeerStyleComment';
import getAllBeerStyleComments from '@/services/BeerStyleComment/getAllBeerStyleComments';
import createNewBeerStyleComment from '@/services/comments/BeerStyleComment/createNewBeerStyleComment';
import getAllBeerStyleComments from '@/services/comments/BeerStyleComment/getAllBeerStyleComments';
import {
CommentRequest,

View File

@@ -1,13 +1,13 @@
import ServerError from '@/config/util/ServerError';
import DBClient from '@/prisma/DBClient';
import getBreweryCommentById from '@/services/BreweryComment/getBreweryCommentById';
import getBreweryCommentById from '@/services/comments/BreweryComment/getBreweryCommentById';
import APIResponseValidationSchema from '@/validation/APIResponseValidationSchema';
import { NextApiResponse } from 'next';
import { NextHandler } from 'next-connect';
import { z } from 'zod';
import CommentQueryResult from '@/services/schema/CommentSchema/CommentQueryResult';
import createNewBreweryComment from '@/services/BreweryComment/createNewBreweryComment';
import getAllBreweryComments from '@/services/BreweryComment/getAllBreweryComments';
import createNewBreweryComment from '@/services/comments/BreweryComment/createNewBreweryComment';
import getAllBreweryComments from '@/services/comments/BreweryComment/getAllBreweryComments';
import {
CommentRequest,
EditAndCreateCommentRequest,