This commit is contained in:
eson
2023-11-23 17:30:22 +08:00
parent c53b5e8f7b
commit 39e56533ae
2 changed files with 29 additions and 30 deletions

View File

@@ -53,32 +53,32 @@ type AddressRequest struct {
}
type ProfileRequest struct {
ProfileBase *ProfileBase `json:"base,optional,omitempty"` // 基础的个人消息, 姓名 公司等
SubscriptionStatus *SubscriptionStatus `json:"sub_status,optional,omitempty"` // 订阅的通知状态
ProfileBase *ProfileBase `json:"base,optional"` // 基础的个人消息, 姓名 公司等
SubscriptionStatus *SubscriptionStatus `json:"sub_status,optional"` // 订阅的通知状态
}
type ProfileBase struct {
FirstName *string `json:"first_name,optional,omitempty"` // 首名
LastName *string `json:"last_name,optional,omitempty"` // 后名
Email *string `json:"email,optional,omitempty"` // email
Mobile *string `json:"mobile,optional,omitempty"` // 电话
Resetaurant *string `json:"resetaurant,optional,omitempty"` // 不知道干什么
Company *string `json:"company,optional,omitempty"` // 公司
FirstName *string `json:"first_name,optional"` // 首名
LastName *string `json:"last_name,optional"` // 后名
Email *string `json:"email,optional"` // email
Mobile *string `json:"mobile,optional"` // 电话
Resetaurant *string `json:"resetaurant,optional"` // 不知道干什么
Company *string `json:"company,optional"` // 公司
}
type SubscriptionStatus struct {
NotificationEmail NotificationEmail `json:"notification_email,optional,omitempty"`
NotificationPhone NotificationPhone `json:"notification_phone,optional,omitempty"`
NotificationEmail NotificationEmail `json:"notification_email,optional"`
NotificationPhone NotificationPhone `json:"notification_phone,optional"`
}
type NotificationEmail struct {
OrderUpdate bool `json:"order_update,optional,omitempty"`
Newseleter bool `json:"newseleter,optional,omitempty"`
OrderUpdate bool `json:"order_update,optional"`
Newseleter bool `json:"newseleter,optional"`
}
type NotificationPhone struct {
OrderUpdate bool `json:"order_update,optional,omitempty"`
Newseleter bool `json:"newseleter,optional,omitempty"`
OrderUpdate bool `json:"order_update,optional"`
Newseleter bool `json:"newseleter,optional"`
}
type QueryProfileRequest struct {