2024-12-30 08:26:40 +08:00
|
|
|
import { Injectable } from '@nestjs/common';
|
|
|
|
import {
|
|
|
|
db,
|
|
|
|
ObjectType,
|
|
|
|
Prisma,
|
2025-01-06 08:45:23 +08:00
|
|
|
} 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() {
|
|
|
|
super(db, "appConfig");
|
|
|
|
}
|
|
|
|
async clearRowCache() {
|
|
|
|
await deleteByPattern("row-*")
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
}
|