|
@@ -0,0 +1,34 @@
|
|
|
+package cn.iselab.mooctest.user.service.impl;
|
|
|
+
|
|
|
+import cn.iselab.mooctest.user.mapper.UserThirdPartyDao;
|
|
|
+import cn.iselab.mooctest.user.model.UserThirdParty;
|
|
|
+import cn.iselab.mooctest.user.service.UserThirdPartyService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @Description: 第三方帐号相关业务
|
|
|
+ * @Author: xuexb
|
|
|
+ * @CreateDate: 19-1-4$ 上午9:23$
|
|
|
+ */
|
|
|
+public class UserThirdPartyServiceImpl implements UserThirdPartyService {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ UserThirdPartyDao userThirdPartyDao;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public UserThirdParty findByThirdIdAndFrom(String identity, String from) {
|
|
|
+ return userThirdPartyDao.findByThirdPartyIdentityAndFrom(identity, from);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public UserThirdParty save(UserThirdParty userThirdParty) {
|
|
|
+ return userThirdPartyDao.save(userThirdParty);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<UserThirdParty> findByUserId(Long userId) {
|
|
|
+ return userThirdPartyDao.findByUserId(userId);
|
|
|
+ }
|
|
|
+}
|