2023-08-29 06:19:47 +00:00
|
|
|
package gmodel
|
|
|
|
|
|
|
|
func FsString(v string) *string {
|
|
|
|
return &v
|
|
|
|
}
|
|
|
|
|
|
|
|
func FsInt(v int) *int {
|
|
|
|
return &v
|
|
|
|
}
|
|
|
|
|
|
|
|
func FsInt32(v int32) *int32 {
|
|
|
|
return &v
|
|
|
|
}
|
|
|
|
|
|
|
|
func FsInt64(v int64) *int64 {
|
|
|
|
return &v
|
|
|
|
}
|
|
|
|
|
|
|
|
func FsUint(v uint) *uint {
|
|
|
|
return &v
|
|
|
|
}
|
|
|
|
|
|
|
|
func FsUint32(v uint32) *uint32 {
|
|
|
|
return &v
|
|
|
|
}
|
|
|
|
|
|
|
|
func FsUint64(v uint64) *uint64 {
|
|
|
|
return &v
|
|
|
|
}
|
|
|
|
|
|
|
|
func FsFloat(v float64) *float64 {
|
|
|
|
return &v
|
|
|
|
}
|
|
|
|
|
|
|
|
func FsBool(v bool) *bool {
|
|
|
|
return &v
|
|
|
|
}
|
2023-09-26 07:02:09 +00:00
|
|
|
|
2023-10-16 07:19:25 +00:00
|
|
|
func FsBytes(v string) *[]byte {
|
|
|
|
bs := []byte(v)
|
|
|
|
return &bs
|
|
|
|
}
|
|
|
|
|
2023-09-26 07:02:09 +00:00
|
|
|
// SubscriptionStatus 订阅状态
|
|
|
|
type SubscriptionStatus struct {
|
2023-10-11 03:25:38 +00:00
|
|
|
NotificationEmail struct {
|
2023-09-28 05:25:06 +00:00
|
|
|
OrderUpdate bool `json:"order_update"`
|
|
|
|
Newseleter bool `json:"newseleter"`
|
|
|
|
} `json:"notification_email"`
|
|
|
|
|
2023-10-11 03:25:38 +00:00
|
|
|
NotificationPhone struct {
|
2023-10-11 06:10:44 +00:00
|
|
|
OrderUpdate bool `json:"order_update"`
|
|
|
|
Newseleter bool `json:"newseleter"`
|
2023-09-28 05:25:06 +00:00
|
|
|
} `json:"notification_phone"`
|
2023-09-26 07:02:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type UserProfile struct {
|
|
|
|
ProfileBase UserProfileBase `json:"base"`
|
|
|
|
SubStatus SubscriptionStatus `json:"sub_status"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// UserProfileBase 个人信息
|
|
|
|
type UserProfileBase struct {
|
2023-09-28 06:42:26 +00:00
|
|
|
FirstName string `json:"first_name"` // 首名
|
|
|
|
LastName string `json:"last_name"` // 后名
|
|
|
|
Email string `json:"email"` // email
|
2023-09-26 07:02:09 +00:00
|
|
|
Mobile string `json:"mobile"` // 电话
|
|
|
|
Resetaurant string `json:"resetaurant"` // 不知道干什么
|
|
|
|
Company string `json:"company"` // 公司
|
|
|
|
}
|
2023-10-08 03:55:06 +00:00
|
|
|
|
|
|
|
type FsAddressWithDefault struct {
|
2023-10-08 04:04:02 +00:00
|
|
|
*FsAddress
|
2023-10-08 03:55:06 +00:00
|
|
|
IsDefault int64 `json:"is_default"`
|
|
|
|
}
|