refactor(authz): move to domain-based authz and flatten routes

This commit is contained in:
yiling
2026-05-25 23:51:37 +08:00
parent 35fd5c78ce
commit 9f9549255d
61 changed files with 1646 additions and 1147 deletions
+6
View File
@@ -65,6 +65,12 @@ export class ProviderService {
}))
}
async getById(id: string) {
return this.prismaClient.provider.findUnique({
where: { id },
})
}
async listModelsByProvider(teamId: string, providerId: string) {
return this.prismaClient.model.findMany({
where: {