测试
This commit is contained in:
parent
c53b5e8f7b
commit
39e56533ae
@ -53,32 +53,32 @@ type AddressRequest struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type ProfileRequest struct {
|
type ProfileRequest struct {
|
||||||
ProfileBase *ProfileBase `json:"base,optional,omitempty"` // 基础的个人消息, 姓名 公司等
|
ProfileBase *ProfileBase `json:"base,optional"` // 基础的个人消息, 姓名 公司等
|
||||||
SubscriptionStatus *SubscriptionStatus `json:"sub_status,optional,omitempty"` // 订阅的通知状态
|
SubscriptionStatus *SubscriptionStatus `json:"sub_status,optional"` // 订阅的通知状态
|
||||||
}
|
}
|
||||||
|
|
||||||
type ProfileBase struct {
|
type ProfileBase struct {
|
||||||
FirstName *string `json:"first_name,optional,omitempty"` // 首名
|
FirstName *string `json:"first_name,optional"` // 首名
|
||||||
LastName *string `json:"last_name,optional,omitempty"` // 后名
|
LastName *string `json:"last_name,optional"` // 后名
|
||||||
Email *string `json:"email,optional,omitempty"` // email
|
Email *string `json:"email,optional"` // email
|
||||||
Mobile *string `json:"mobile,optional,omitempty"` // 电话
|
Mobile *string `json:"mobile,optional"` // 电话
|
||||||
Resetaurant *string `json:"resetaurant,optional,omitempty"` // 不知道干什么
|
Resetaurant *string `json:"resetaurant,optional"` // 不知道干什么
|
||||||
Company *string `json:"company,optional,omitempty"` // 公司
|
Company *string `json:"company,optional"` // 公司
|
||||||
}
|
}
|
||||||
|
|
||||||
type SubscriptionStatus struct {
|
type SubscriptionStatus struct {
|
||||||
NotificationEmail NotificationEmail `json:"notification_email,optional,omitempty"`
|
NotificationEmail NotificationEmail `json:"notification_email,optional"`
|
||||||
NotificationPhone NotificationPhone `json:"notification_phone,optional,omitempty"`
|
NotificationPhone NotificationPhone `json:"notification_phone,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type NotificationEmail struct {
|
type NotificationEmail struct {
|
||||||
OrderUpdate bool `json:"order_update,optional,omitempty"`
|
OrderUpdate bool `json:"order_update,optional"`
|
||||||
Newseleter bool `json:"newseleter,optional,omitempty"`
|
Newseleter bool `json:"newseleter,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type NotificationPhone struct {
|
type NotificationPhone struct {
|
||||||
OrderUpdate bool `json:"order_update,optional,omitempty"`
|
OrderUpdate bool `json:"order_update,optional"`
|
||||||
Newseleter bool `json:"newseleter,optional,omitempty"`
|
Newseleter bool `json:"newseleter,optional"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type QueryProfileRequest struct {
|
type QueryProfileRequest struct {
|
||||||
|
@ -104,35 +104,34 @@ type (
|
|||||||
}
|
}
|
||||||
|
|
||||||
ProfileRequest {
|
ProfileRequest {
|
||||||
ProfileBase *ProfileBase `json:"base,optional,omitempty"` // 基础的个人消息, 姓名 公司等
|
ProfileBase *ProfileBase `json:"base,optional"` // 基础的个人消息, 姓名 公司等
|
||||||
SubscriptionStatus *SubscriptionStatus `json:"sub_status,optional,omitempty"` // 订阅的通知状态
|
SubscriptionStatus *SubscriptionStatus `json:"sub_status,optional"` // 订阅的通知状态
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ProfileBase {
|
ProfileBase {
|
||||||
FirstName *string `json:"first_name,optional,omitempty"` // 首名
|
FirstName *string `json:"first_name,optional"` // 首名
|
||||||
LastName *string `json:"last_name,optional,omitempty"` // 后名
|
LastName *string `json:"last_name,optional"` // 后名
|
||||||
// UserName *string `json:"user_name,optional,omitempty"` // 用户名
|
// UserName *string `json:"user_name,optional"` // 用户名
|
||||||
Email *string `json:"email,optional,omitempty"` // email
|
Email *string `json:"email,optional"` // email
|
||||||
Mobile *string `json:"mobile,optional,omitempty"` // 电话
|
Mobile *string `json:"mobile,optional"` // 电话
|
||||||
Resetaurant *string `json:"resetaurant,optional,omitempty"` // 不知道干什么
|
Resetaurant *string `json:"resetaurant,optional"` // 不知道干什么
|
||||||
Company *string `json:"company,optional,omitempty"` // 公司
|
Company *string `json:"company,optional"` // 公司
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SubscriptionStatus {
|
SubscriptionStatus {
|
||||||
NotificationEmail NotificationEmail `json:"notification_email,optional,omitempty"`
|
NotificationEmail NotificationEmail `json:"notification_email,optional"`
|
||||||
NotificationPhone NotificationPhone `json:"notification_phone,optional,omitempty"`
|
NotificationPhone NotificationPhone `json:"notification_phone,optional"`
|
||||||
} // 订阅的通知状态
|
} // 订阅的通知状态
|
||||||
|
|
||||||
NotificationEmail {
|
NotificationEmail {
|
||||||
OrderUpdate bool `json:"order_update,optional,omitempty"`
|
OrderUpdate bool `json:"order_update,optional"`
|
||||||
Newseleter bool `json:"newseleter,optional,omitempty"`
|
Newseleter bool `json:"newseleter,optional"`
|
||||||
} // 邮件通知设置
|
} // 邮件通知设置
|
||||||
|
|
||||||
NotificationPhone {
|
NotificationPhone {
|
||||||
OrderUpdate bool `json:"order_update,optional,omitempty"`
|
OrderUpdate bool `json:"order_update,optional"`
|
||||||
Newseleter bool `json:"newseleter,optional,omitempty"`
|
Newseleter bool `json:"newseleter,optional"`
|
||||||
} // 电话通知设置
|
} // 电话通知设置
|
||||||
|
|
||||||
QueryProfileRequest {
|
QueryProfileRequest {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user