com.github.shoothzj.sdk.distribute.impl.mongo.repo.MongoLockRepo Maven / Gradle / Ivy
package com.github.shoothzj.sdk.distribute.impl.mongo.repo;
import com.github.shoothzj.sdk.distribute.impl.mongo.dao.MongoLock;
import org.springframework.data.mongodb.repository.MongoRepository;
/**
* @author hezhangjian
*/
public interface MongoLockRepo extends MongoRepository, MongoLockRepoCustom {
/**
* 根据唯一主键查询MongoLock对象
* @param scene
* @return
*/
MongoLock findMongoLockByScene(String scene);
Long deleteBySceneAndUniqId(String scene, String uniqId);
}