17 lines
554 B
Go
17 lines
554 B
Go
|
package entity
|
||
|
|
||
|
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||
|
|
||
|
type RememberMe struct {
|
||
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
|
||
|
UID string `bson:"uid"`
|
||
|
BookingInfo *BookingInfo `bson:"booking_info,omitempty"` // 寄送資訊
|
||
|
InvoiceInfo *InvoiceInfo `bson:"invoice_info,omitempty"` // 寄送資訊
|
||
|
UpdateTime int64 `bson:"update_time"`
|
||
|
CreateTime int64 `bson:"create_time"`
|
||
|
}
|
||
|
|
||
|
func (p *RememberMe) CollectionName() string {
|
||
|
return "remember_me"
|
||
|
}
|