|
|
@ -13,7 +13,7 @@ import java.util.List;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Repository
|
|
|
|
@Repository
|
|
|
|
public interface ChatAppRepository extends CosmosRepository<ChatApp, String> {
|
|
|
|
public interface ChatAppRepository extends CosmosRepository<ChatApp, String> {
|
|
|
|
@Query("SELECT * FROM c WHERE c.code = 'ChatApp' AND (c.schoolId = @schoolId OR c.schoolId = 'public'))")
|
|
|
|
@Query("SELECT * FROM c WHERE c.code = 'ChatApp' AND (c.schoolId = @schoolId OR c.schoolId = 'public')")
|
|
|
|
List<ChatApp> findAllByCodeAndSchoolId(String schoolId);
|
|
|
|
List<ChatApp> findAllByCodeAndSchoolId(String schoolId);
|
|
|
|
|
|
|
|
|
|
|
|
@Query("SELECT c.id, c.schoolId, c.prompt FROM c WHERE c.code = 'ChatApp' AND c.id = @id")
|
|
|
|
@Query("SELECT c.id, c.schoolId, c.prompt FROM c WHERE c.code = 'ChatApp' AND c.id = @id")
|
|
|
|