Merge pull request 'feature/seller-add-field-planPackage' (#52) from feature/seller-add-field-planPackage into master
Reviewed-on: #52
This commit is contained in:
commit
5b77344442
|
@ -79,7 +79,6 @@ func (s Seller) GetListSellerInfoSupportChatByIDs(p model.GetListSellerSupportCh
|
||||||
if err := json.Unmarshal(msg.Data, &r); err != nil {
|
if err := json.Unmarshal(msg.Data, &r); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if r.Error != "" {
|
if r.Error != "" {
|
||||||
return nil, errors.New(r.Error)
|
return nil, errors.New(r.Error)
|
||||||
|
|
||||||
|
|
|
@ -21,16 +21,25 @@ type ResponseListSellerInfoSupportChat struct {
|
||||||
|
|
||||||
// ResponseSellerInfoSupportChat ...
|
// ResponseSellerInfoSupportChat ...
|
||||||
type ResponseSellerInfoSupportChat struct {
|
type ResponseSellerInfoSupportChat struct {
|
||||||
ID string `json:"_id"`
|
ID string `json:"_id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Code string `json:"code"`
|
Code string `json:"code"`
|
||||||
Membership SellerMembershipInfo `json:"membership"`
|
Membership SellerMembershipInfo `json:"membership"`
|
||||||
Info SellerContactInfo `json:"info"`
|
Info SellerContactInfo `json:"info"`
|
||||||
Team *TeamInfo `json:"team,omitempty"`
|
Team *TeamInfo `json:"team,omitempty"`
|
||||||
Statistic SellerStatistic `json:"statistic"`
|
Statistic SellerStatistic `json:"statistic"`
|
||||||
TrackingTime *SellerTrackingTime `json:"trackingTime"`
|
TrackingTime *SellerTrackingTime `json:"trackingTime"`
|
||||||
Invitee *InviteeInfo `json:"invitee"`
|
Invitee *InviteeInfo `json:"invitee"`
|
||||||
CreatedAt time.Time `json:"createdAt"`
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
|
PlanPackage *SellerPlanPackageInfo `json:"planPackage"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// SellerPlanPackageInfo ...
|
||||||
|
type SellerPlanPackageInfo struct {
|
||||||
|
ID string `json:"_id"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
Level int `json:"level"`
|
||||||
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SellerTrackingTime ...
|
// SellerTrackingTime ...
|
||||||
|
|
Loading…
Reference in New Issue