mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 10:55:27 +00:00
refactor(authz): move to domain-based authz and flatten routes
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user