2024-12-30 08:26:40 +08:00
|
|
|
import { Injectable } from '@nestjs/common';
|
2025-02-24 20:53:22 +08:00
|
|
|
import { db, ObjectType, Prisma } from '@nice/common';
|
2024-12-30 08:26:40 +08:00
|
|
|
|
|
|
|
import { BaseService } from '../base/base.service';
|
|
|
|
import { deleteByPattern } from '@server/utils/redis/utils';
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class AppConfigService extends BaseService<Prisma.AppConfigDelegate> {
|
|
|
|
constructor() {
|
2025-02-24 20:53:22 +08:00
|
|
|
super(db, 'appConfig');
|
2024-12-30 08:26:40 +08:00
|
|
|
}
|
|
|
|
async clearRowCache() {
|
2025-02-24 20:53:22 +08:00
|
|
|
await deleteByPattern('row-*');
|
|
|
|
return true;
|
2024-12-30 08:26:40 +08:00
|
|
|
}
|
|
|
|
}
|