(ctx context.Context, provider string, name string, excludeId string)
| 69 | } |
| 70 | |
| 71 | func (i *imlProviderModelService) CheckNameDuplicate(ctx context.Context, provider string, name string, excludeId string) bool { |
| 72 | v, _ := i.store.First(ctx, map[string]interface{}{"provider": provider, "name": name}) |
| 73 | if v == nil { |
| 74 | return false |
| 75 | } else { |
| 76 | if excludeId == "" { |
| 77 | return true |
| 78 | } else { |
| 79 | return v.UUID != excludeId |
| 80 | } |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | func (i *imlProviderModelService) OnComplete() { |
| 85 | i.IServiceGet = universally.NewGet[ProviderModel, ai.ProviderModel](i.store, FromEntity) |
nothing calls this directly
no outgoing calls
no test coverage detected