parent
12bf2c7468
commit
ec58f867e4
@ -0,0 +1,10 @@
|
||||
package com.luoo.music.dao;
|
||||
|
||||
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
import mongodb.UserCollect;
|
||||
|
||||
public interface UserCollectDao extends MongoRepository<UserCollect, String> {
|
||||
public long countByUserIdAndObjectIdAndCollectType(String userId, String objectId, Integer collectType);
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
package com.luoo.user.dao;
|
||||
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
import com.luoo.user.pojo.UserCollect;
|
||||
import org.springframework.data.mongodb.repository.MongoRepository;
|
||||
|
||||
public interface UserCollectDao extends JpaRepository<UserCollect, Integer>, JpaSpecificationExecutor<UserCollect> {
|
||||
import mongodb.UserCollect;
|
||||
|
||||
public interface UserCollectDao extends MongoRepository<UserCollect, String> {
|
||||
public UserCollect findByUserIdAndObjectIdAndCollectType(String userId, String objectId, Integer collectType);
|
||||
public long deleteByUserIdAndObjectIdAndCollectType(String userId, String objectId, Integer collectType);
|
||||
}
|
||||
|
Loading…
Reference in new issue