add allMethod #3

Merged
lqhoang99 merged 2 commits from feature/AllMethod into master 2021-11-05 10:28:54 +00:00
lqhoang99 commented 2021-11-05 09:58:01 +00:00 (Migrated from github.com)
No description provided.
namhq1989 (Migrated from github.com) reviewed 2021-11-05 10:11:23 +00:00
namhq1989 (Migrated from github.com) commented 2021-11-05 10:11:22 +00:00

dùng 1 model để public ra thôi. Dùng cái Device luôn đi

dùng 1 model để public ra thôi. Dùng cái Device luôn đi
namhq1989 (Migrated from github.com) reviewed 2021-11-05 10:12:09 +00:00
namhq1989 (Migrated from github.com) commented 2021-11-05 10:12:09 +00:00

cái user id sao phải đưa qua mongo id, nó chỉ là string thôi mà, đã note ở PR cũ rồi

cái user id sao phải đưa qua mongo id, nó chỉ là string thôi mà, đã note ở PR cũ rồi
namhq1989 (Migrated from github.com) reviewed 2021-11-05 10:12:42 +00:00
@ -17,8 +17,10 @@ type Device struct {
Language string `bson:"language" json:"language"` // vi, en
IsMobile bool `bson:"isMobile" json:"isMobile"`
LastActivatedAt time.Time `bson:"lastActivatedAt" json:"lastActivatedAt"`
namhq1989 (Migrated from github.com) commented 2021-11-05 10:12:42 +00:00

không cần omitempty, default bằng empty string là được rồi

không cần omitempty, default bằng empty string là được rồi
namhq1989 (Migrated from github.com) reviewed 2021-11-05 10:12:58 +00:00
@ -17,8 +17,10 @@ type Device struct {
Language string `bson:"language" json:"language"` // vi, en
IsMobile bool `bson:"isMobile" json:"isMobile"`
LastActivatedAt time.Time `bson:"lastActivatedAt" json:"lastActivatedAt"`
namhq1989 (Migrated from github.com) commented 2021-11-05 10:12:58 +00:00

bỏ cái này đi, dùng cái Device

bỏ cái này đi, dùng cái Device
lqhoang99 (Migrated from github.com) reviewed 2021-11-05 10:24:19 +00:00
lqhoang99 (Migrated from github.com) commented 2021-11-05 10:24:19 +00:00

done

done
lqhoang99 (Migrated from github.com) reviewed 2021-11-05 10:24:26 +00:00
lqhoang99 (Migrated from github.com) commented 2021-11-05 10:24:26 +00:00

done

done
lqhoang99 (Migrated from github.com) reviewed 2021-11-05 10:24:34 +00:00
@ -17,8 +17,10 @@ type Device struct {
Language string `bson:"language" json:"language"` // vi, en
IsMobile bool `bson:"isMobile" json:"isMobile"`
LastActivatedAt time.Time `bson:"lastActivatedAt" json:"lastActivatedAt"`
lqhoang99 (Migrated from github.com) commented 2021-11-05 10:24:34 +00:00

done

done
lqhoang99 (Migrated from github.com) reviewed 2021-11-05 10:24:40 +00:00
@ -17,8 +17,10 @@ type Device struct {
Language string `bson:"language" json:"language"` // vi, en
IsMobile bool `bson:"isMobile" json:"isMobile"`
LastActivatedAt time.Time `bson:"lastActivatedAt" json:"lastActivatedAt"`
lqhoang99 (Migrated from github.com) commented 2021-11-05 10:24:40 +00:00

done

done
namhq1989 (Migrated from github.com) approved these changes 2021-11-05 10:28:50 +00:00
Sign in to join this conversation.
No description provided.