import { BadRequestException, Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { In, LessThan, Like, MoreThan, Repository } from 'typeorm';
import { Menu } from '@/modules/menu/menu.entity';
import { SharedService } from '@/shared/shared.service';
import { Article } from '@/modules/article/article.entity';
import { Category } from '@/modules/category/category.entity';
import { getTopMenuFragment } from '@/common/utils';
import { CustomException, ErrorCode } from '@/common/exceptions/custom.exception';
@Injectable()
export class WebService {
constructor(
@InjectRepository(Menu)
private menuRepo: Repository