-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-프로바이더 적용 Related to:#30
- Loading branch information
Showing
25 changed files
with
1,444 additions
and
1,379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
import 'package:cloud_firestore/cloud_firestore.dart'; | ||
|
||
import '../model/user_model.dart'; | ||
|
||
|
||
Future<void> saveUser(UserModel user) async { | ||
await FirebaseFirestore.instance.collection('userData').add({ | ||
"user_idx": user.userIdx, | ||
"login_type": user.loginType, | ||
"user_account": user.userAccount, | ||
"user_nickname": user.userNickname, | ||
"user_birth": user.userBirth, | ||
"user_profileImage": user.userProfileImage, | ||
"lover_user_idx": user.loverUserIdx, | ||
"lover_nickname": user.loverNickname, | ||
"home_preset_type": user.homePresetType, | ||
"top_bar_type": user.topBarType, | ||
"profile_message": user.profileMessage, | ||
"alarms_allow": user.alarmsAllow, | ||
"app_lock_state": user.appLockState, | ||
"top_bar_activate": user.topBarActivate, | ||
"lock_password": user.lockPassword, | ||
"user_state": user.lockPassword, | ||
"love_dDay": user.loveDday, | ||
}); | ||
} | ||
|
||
Future<void> setUserIndexx(int idx) async { | ||
await FirebaseFirestore.instance | ||
.collection('Sequence') | ||
.doc('DiarySequence') | ||
.set({'value': idx}); | ||
} | ||
|
||
// // 지금 뜨는 콘텐츠 정보를 가져온다. | ||
// Future<int> getUserIndex() async { | ||
// import 'package:cloud_firestore/cloud_firestore.dart'; | ||
// | ||
// var querySnapshot = await FirebaseFirestore.instance.collection('userData').where("user_idx").get(); | ||
// import '../model/user_model.dart'; | ||
// | ||
// List<int> results = List<int>.from(querySnapshot.docs[0].data()['hot_movie_idx']); | ||
// | ||
// return results; | ||
// } | ||
// Future<void> saveUser(UserModel user) async { | ||
// await FirebaseFirestore.instance.collection('userData').add({ | ||
// "user_idx": user.userIdx, | ||
// "login_type": user.loginType, | ||
// "user_account": user.userAccount, | ||
// "user_nickname": user.userNickname, | ||
// "user_birth": user.userBirth, | ||
// "user_profileImage": user.userProfileImage, | ||
// "lover_user_idx": user.loverUserIdx, | ||
// "lover_nickname": user.loverNickname, | ||
// "home_preset_type": user.homePresetType, | ||
// "top_bar_type": user.topBarType, | ||
// "profile_message": user.profileMessage, | ||
// "alarms_allow": user.alarmsAllow, | ||
// "app_lock_state": user.appLockState, | ||
// "top_bar_activate": user.topBarActivate, | ||
// "lock_password": user.lockPassword, | ||
// "user_state": user.lockPassword, | ||
// "love_dDay": user.loveDday, | ||
// }); | ||
// } | ||
// | ||
// Future<void> setUserIndexx(int idx) async { | ||
// await FirebaseFirestore.instance | ||
// .collection('Sequence') | ||
// .doc('DiarySequence') | ||
// .set({'value': idx}); | ||
// } | ||
// | ||
// // // 지금 뜨는 콘텐츠 정보를 가져온다. | ||
// // Future<int> getUserIndex() async { | ||
// // | ||
// // var querySnapshot = await FirebaseFirestore.instance.collection('userData').where("user_idx").get(); | ||
// // | ||
// // List<int> results = List<int>.from(querySnapshot.docs[0].data()['hot_movie_idx']); | ||
// // | ||
// // return results; | ||
// // } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.